[pawn]#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
forward katonasagliftmozog(playerid);
new katonasaglift;
public OnFilterScriptInit()
{
katonasaglift=CreateObject(3115,-1446.79980469,481.89941406,5.89699984,0.00000000,0.00000000,270.25000000); //object(carrier_lift1_sfse) (1)
SetTimer(\"katonasagliftmozog\",1000,1);
return 1;
}
public katonasagliftmozog(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-1446.79980469,481.89941406,5.89699984)) //object (kapu) koordinata
{
MoveObject(katonasaglift, -1446.79980469,481.89941406,17.0, 6.00); //nyitott kapu koordinata a 6.00 a sebessége
}
else
{
MoveObject(katonasaglift,-1446.79980469,481.89941406,5.89699984, 6.00); //zárt kapu koordinata
}
}
#endif[/pawn]