22.05.2011, 18:43
pawn Код:
forward One();
forward Two();
//etc..
public Two()
{
GameTextForAll("~y~2",3000,4);
SoundForAll(1056);
return 1;
}
public One()
{
GameTextForAll("~r~1",3000,4);
SoundForAll(1056);
return 1;
}
// up to go
COMMAND:countdown(playerid, params[])
{
if(Countdown == 1) return SendClientMessage(playerid, Red, "countdown already on");
SendClientMessage(playerid, Green, "count started");
SetTimer("Three", 1000, 0);
SetTimer("Two", 2000, 0);
SetTimer("One", 3000, 0);
SetTimer("Go", 4000, 0);
Countdown = 1;
return 1;
}