11.02.2013, 09:14
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/open", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 996.29999, 1756, 12.1)){
SetTimerEx("CloseGate", 7000, false, "i", playerid);
MoveObject(Gate, 996.29999, 1756, 7, 3.0, 0.0, 0.0, 268.995);
SendClientMessage(playerid, 0x7A0000FF, "{FFFF00}[INFO] : {F5F5F5}The gate is open!");
}
}
return 0;
}
forward CloseGate(playerid);
public CloseGate(playerid)
{
MoveObject(Gate, 996.29999, 1756, 12.1, 3.0, 0.0, 0.0, 269);
SendClientMessage(playerid, "{FFFF00}[INFO] : {F5F5F5}The gate have succesfully been closed!");
return 1;
}