19.10.2012, 05:25
PHP код:
new gatestatus;
CMD:gate(playerid,poparams[])
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2294.39990234,2499.00000000,10.39999962))
{
if(gatestatus != 1)
{
MoveObject(gate,2294.39990234,2499.00000000,10.399 99962,3);
gatestatus = 1;
}
else if(gatestatus == 1)
{
MoveObject(gate,2294.39990234,2499.00000000,5.0999 9990,3);
gatestatus = 0;
}
}
return 1;
}