13.08.2011, 21:21
pawn Код:
public StartRace()
{
SetTimer("Three", 3000, 0);
SetTimer("Two", 6000, 0);
SetTimer("One", 9000, 0);
SetTimer("GoGoGo", 12000, 0);
}
forward Three();
public Three()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
GameTextForAll("~w~- ~r~ 3 ~w~- ~r~ 3 ~w~- ~r~ 3 ~w~ -", 4000, 3);
//SendClientMessageToAll(0x008000FF, "3");
TogglePlayerControllable(i,1);
}
return 1;
}
forward Two();
public Two()
{
GameTextForAll("~n~~n~~w~- ~r~ 2 ~w~- ~r~ 2 ~w~- ~r~ 2 ~w~ -", 4000, 3);
//SendClientMessageToAll(0x008000FF, "2");
return 1;
}
forward One();
public One()
{
GameTextForAll("~n~~n~~n~~n~~w~- ~r~ 1 ~w~- ~r~ 1 ~w~- ~r~ 1 ~w~ -", 4000, 3);
//SendClientMessageToAll(0x008000FF, "1");
return 1;
}
forward GoGoGo(playerid);
public GoGoGo(playerid)
{
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);
//SendClientMessageToAll(0x008000FF, "go");
TogglePlayerControllable(i,0);
}
return 1;
}