29.11.2009, 22:00
I am very suprised no one thought about this:
pawn Код:
new Count=5;
new Countertimer;
-----
Command: /countdown:
SendClientMessage(playerid, COLOR, "You started the count down!");
Countertimer = SetTimer("Countdown", 1000, 1);
GameTextForAll("5 Seconds", 1000, 4);
-----
forward Countdown();
public Countdown()
{
Count--;
new string[128];
format(string, sizeof(string), "%d Seconds", Count);
GameTextForAll(string, 1000, 4);
if(Count == 0)
{
GameTextForAll("GO GO GO", 2000, 4);
KillTimer(CounterTimer);
Count=5;
}