02.10.2010, 20:12
I made a command that allows to close and open a random barrier now it works but It has a massive delay when I open it I have to wait some time and then I'll be able to close it back.
How can I solve it ?
How can I solve it ?
pawn Код:
if(!strcmp(cmdtext, "/barrier", true))
{
if(IsPlayerConnected(playerid)
)
{
if(IsPlayerInRangeOfPoint(playerid, 15, 1544.700317,-1630.735717,12.924660)){
if(!gate) SetObjectRot( pdgate2, 0,0.0,90.0);
else SetObjectRot( pdgate2, 0,90,90.0);
}
}
return 1;
}