11.11.2013, 09:57
pawn Код:
new Num = 20;
new Countdown[MAX_PLAYERS];
forward Count(playerid);
public Count(playerid)
{
if(Num == 0)
{
KillTimer(Countdown[playerid]);
SendClientMessage(playerid,colourhere,"stringhere");
}
else
{
Num--;
new str[256];
format(str,sizeof(str),"You have %d Seconds left",Num);
SendClientMessage(playerid,color,str);
}
return 1;
}
//where you want this timer to start put this timer there
Countdown[playerid] = SetTimerEx("Count",1000,1,"d",playerid);