01.11.2016, 08:40
PHP код:
SetTimerEx("Timer",1000, false, "ii", playerid, 100);
PHP код:
forward Timer(playerid, time);
public Timer(playerid, time)
{
if(time != 0)
{
new string[5];
format(string, sizeof(string), "%d", time);
GameTextForPlayer(playerid, string, 1000, 5);
SetTimerEx("Timer", 1000, false, "ii", playerid, time-1);
}
else
{
GameTextForPlayer(playerid, "~g~GO!", 2500, 3); // or replace with anything else
}
return true;
}