19.05.2014, 19:49
pawn Код:
forward CountDown(playerid);
public CountDown(playerid)
{
CountDownVar--;
new str[128];
if(CountDownVar == 0)
{
KillTimer(CountDownTimer);
CountDownVar = 15;
}
else
{
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
//format(str, sizeof(str), "Count Down: %d", CountDownTimer);
//GameTextForPlayer(str, 1000, 1);
}
return 1;
}
pawn Код:
SetTimerEx("CountDown", 1000, true, "i", playerid);