13.08.2011, 21:07
hello all here is a bug with me here is code when race start only oneplayer unfreeze other still freeze plz tell me and help here!
pawn Код:
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");
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,true);
return 1;
}