12.11.2012, 20:24
pawn Код:
new Gate;
new bool:GateClosed;
if(!strcmp(cmdtext, "/Open", true))
{
if(GateClosed)
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 0.0, 0.0, 0.0))
{
GateClosed = false;
MoveObject(Gate, 2306.1000976563, 1383.0999755859, 12.39999961853, 3.0, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 0.0, 0.0, 0.0))
{
GateClosed = true;
MoveObject(Gate, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0);
return 1;
}
}
}
