06.12.2012, 13:18
Tenta ae, nem testei
PHP код:
new TimerTE[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/contar", true))
{
GameTextForAll("~g~Go Go Go", 3000, 6);
TimerTE[playerid] = SetTimerEx("TheEnd", 1000*60, false, "i", playerid);
return true;
}
return false;
}
forward TheEnd(playerid);
public TheEnd(playerid)
{
KillTimer(TimerTE[playerid]);
return SendClientMessage(playerid, -1, "The End");
}