31.07.2015, 16:26
Then do the same with gametexts:
PHP код:
//In the script:
const time = 10; //This would be 10sec
GameTextForPlayer(playerid,!"10",1000,5);
@countdown(playerid,time);
//at the end of the script:
@countdown(playerid,x);@countdown(playerid,x) {
if(--x == 0) return GameTextForPlayer(playerid,!"Los Los Los!",1000,5);
new str[8];
valstr(str,x);
GameTextForPlayer(playerid,str,1000,5);
return SetTimerEx(!"@countdown",999,0,!"ii",playerid,x);
}