13.08.2011, 21:20
pawn Код:
#include <a_samp>
new RaceTimer;
new RaceCount = 1;
public OnFilterScriptInit()
{
RaceTimer = SetTimer("StartRace", 1000, true);
return 1;
}
forward StartRace();
public StartRace()
{
switch(RaceCount)
{
case 2:
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
GameTextForAll("~w~- ~r~ 3 ~w~- ~r~ 3 ~w~- ~r~ 3 ~w~ -", 4000, 3);
TogglePlayerControllable(i, false);
}
}
case 4: GameTextForAll("~n~~n~~w~- ~r~ 2 ~w~- ~r~ 2 ~w~- ~r~ 2 ~w~ -", 4000, 3);
case 6: GameTextForAll("~n~~n~~n~~n~~w~- ~r~ 1 ~w~- ~r~ 1 ~w~- ~r~ 1 ~w~ -", 4000, 3);
case 8:
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
GameTextForAll("~n~~n~~n~~n~~n~~n~~w~- ~r~ Start ~w~- ~r~ Start ~w~- ~r~ Start ~w~ -", 4000, 3);
TogglePlayerControllable(i, true);
}
}
case 10: KillTimer(RaceTimer);
}
RaceCount++;
return 1;
}