18.02.2010, 19:20
Uhm, im trying to make this countdown only work for people in races, I do like: CountTimer2(11); it just says "GO!" This is my code
Код:
stock CountTimer2(seconds) { for(new i=0; i < MAX_PLAYERS; i++) { if(Racing[i] == 1) { if (seconds > 0) { format(string,6,"~w~%d",seconds-1); GameTextForPlayer(i, string,1100,4); SoundForAll(1056); CountTimer2(seconds-1); break; } else if (seconds == 0) { GameTextForPlayer(i, "~r~go!",2000,4); SoundForAll(1057); break; } } } }