26.02.2010, 17:09
From what I understand, you do not know where put?
Try:
In your script top:
In "OnFilterScriptInit":
In any place of your script
Try:
In your script top:
pawn Код:
#include <a_samp>
new gate;
forward gateTimer(playerid);
pawn Код:
gate = CreateObject(976, 211.22889709473, -1447.3885498047, 12.159649848938, 0, 0, 230.97595214844);
SetTimer("gateTimer", 1000, 1);
pawn Код:
public gateTimer(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10, 211.22889709473, -1447.3885498047, 12.159649848938))
{
MoveObject(gate, 205.57905578613, -1454.2342529297, 12.159649848938, 5);
}else{
MoveObject(gate, 211.22889709473, -1447.3885498047, 12.159649848938, 5);
}
}