19.06.2016, 09:49
PHP код:
new bool: Esperando[MAX_PLAYERS];
CMD:teste(playerid, params[])
{
if(Esperando[playerid] == true)
return SendClientMessage(playerid, 0xFF0000FF, "Aguarde 30 segundos para usar o comando!");
Esperando[playerid] = true;
SetTimerEx("ResetarTempo", 30000, false, "i", playerid);
return 1;
}
forward ResetarTempo(playerid);
public ResetarTempo(playerid)
{
Esperando[playerid] = false;
return 1;
}