27.06.2009, 04:51
somethign like this
pawn Код:
//top of script
new count = 5;
new counttimer;
forward CountDown();
//after main()
public CountDown()
{
if(count <= 0)
{
GameTextForAll("~g~ Go ~n~ Go ~n~ Go!", 5000, 5);
KillTimer(counttimer);
count = 5;
return 1;
}
else
{
new str[128];
format(str, sizeof str, "~b~ %d", count);
GameTextForAll(str, 500, 5);
counttimer = SetTimer("CountDown", 1000, 0);
}
return 1;
}
//command
if(strcmp(cmdtext, "/countdown", true) == 0)
{
CountDown();
}