21.01.2009, 15:15
ehm, can i get an countdown cmd for ma admin script (plz help in my "cant compile my admin script forum")? i rly need it, a announce countdown
new cd_timer;
new cd_sec;
if(strcmp(cmd,"/count",true)==0)
{
cd_sec = 5;
cd_timer = SetTimer("countdown", 999, 1);
return true;
}
public countdown()
{
if(cd_sec == 0)
{
GameTextForAll("~r~Go!",1000,3);
KillTimer(cd_timer);
}
else
{
new string[8];
format(string,sizeof(string),"~g~%d",cd_sec);
GameTextForAll(string,1000,3);
}
cd_sec = cd_sec-1;
return 1;
}
Originally Posted by Shadowww
in header:
pawn Код:
pawn Код:
pawn Код:
|
Originally Posted by Shadowww
format(string,sizeof(string),"~g~%d",cd_sec);
GameTextForAll(string,1000,3); ^^^ This is gametext which shows 5... 4... 3... 2... 1... go You can change it to (e.g.): format(string,sizeof(string),"~g~%d~w~seconds left!",cd_sec); GameTextForAll(string,1000,3); |
Originally Posted by Shadowww
Khem, what?
|