Ja aha jó hozzá 1 kis help:
#define FILTERSCRIPT
#include <a_samp>
#include <a_objects>
#include <streamer>
#if defined FILTERSCRIPT
forward GateCheck(playerid);
new kapu;
public OnFilterScriptInit()
{
kapu = CreateDynamicObject(980,2442.8999023,-1658.9000244,15.1000004,0.0000000,0.0000000,90.0000000);//Zárt kapui koorditána
SetTimer(\"ajtotimer\", 500, true);
return 1;
}
public GateCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,7.5,2442.8999023,-1658.9000244,15.1000004)) //object (kapu) koordinata
{
MoveDynamicObject(kapu,2442.8999023,-1658.9000244,9.3000001907349,6); //nyitott kapu koordinata a 6.00 a sebessége
}
else
{
MoveDynamicObject(kapu,2442.8999023,-1658.9000244,15.1000004,6); //zárt kapu koordinata
}
}
#endif