09.07.2015, 12:42
#include <zcmd>
#include <sscanf2>
new Count;
new CountTimer;
CMD:count(playerid,params[])
{
new seconds;
if(sscanf(params,"i",seconds)) return SendClientMessage(playerid,-1,"Usage: /count [Seconds]");
Count=seconds;
CountTimer = SetTimer("Counting",1000,true);
return 1;
}
forward Counting();
public Counting()
{
Count --;
if(Count == 0){
KillTimer(CountTimer);
GameTextForAll("GO GO GO",1000,3);
}else{
new string[20];
format(string,sizeof(string),"%d",Count);
GameTextForAll(string,1000,3);
}
}
#include <sscanf2>
new Count;
new CountTimer;
CMD:count(playerid,params[])
{
new seconds;
if(sscanf(params,"i",seconds)) return SendClientMessage(playerid,-1,"Usage: /count [Seconds]");
Count=seconds;
CountTimer = SetTimer("Counting",1000,true);
return 1;
}
forward Counting();
public Counting()
{
Count --;
if(Count == 0){
KillTimer(CountTimer);
GameTextForAll("GO GO GO",1000,3);
}else{
new string[20];
format(string,sizeof(string),"%d",Count);
GameTextForAll(string,1000,3);
}
}

