11.12.2010, 14:26
Command:
And the timer that gets called to close the gate:
Have fun.
pawn Код:
if(!strcmp(cmdtext, "/open", true,5))
{
if(!strcmp(cmdtext[5], "password"))
{
//Move gate
SetTimerEx("CloseMyGate", 10000, 0); // This will cale the 'CloseMyGate' after 10 seconds.
}
else return SendClientMessage(playerid, RED, "Usage: /open [PASSWORD]");
}
pawn Код:
forward CloseMyGate();
public CloseMyGate()
{
//Move gate back ...
return 1;
}
