01.07.2009, 05:22
hi im looking for a script that will alow me to to creat a race where someone starts on the line (only need 1 person to go on the line) then it trigiers a count down witch i have here.....
and when that count down end it starts the race and there is gonna be aleast 10 checkpoints so could some help plz
thx for ur time
Код:
new count = 5;
new counttimer;
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);
count--;
}
return 1;
}
if(strcmp(cmdtext, "/countdown", true) == 0)
{
CountDown();
}
thx for ur time

