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