27.07.2012, 07:24
for now i have this
do you think it work?
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 15, 286.03, 1820.46, 19.94))
{
AutoTor1P=playerid;
MoveObject(ArmyGate1,286.03, 1833.72, 19.94, 3, 0.00, 0.00, 90.00);//offen Gate1
AutoTor1S = SetTimer("AutoTor1",1000,true);
}
return 1;
}
pawn Код:
forward AutoTor1();
public AutoTor1()
{
if(!IsPlayerInRangeOfPoint(AutoTor1P,15,286.03, 1820.46, 19.94))
{
MoveObject(ArmyGate1,286.03, 1820.46, 19.94, 3, 0.00, 0.00, 90.00);//zu Gate1
KillTimer(AutoTor1S);
}
}