all freeze with me
#5

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;
}
@Riddick your code wont work, you have your count in your for loop.
Reply


Messages In This Thread
all freeze with me - by Honest_Player - 13.08.2011, 21:07
Re: all freeze with me - by Honest_Player - 13.08.2011, 21:13
Re: all freeze with me - by CoLLYY - 13.08.2011, 21:16
Re: all freeze with me - by Riddick94 - 13.08.2011, 21:19
Re: all freeze with me - by PrawkC - 13.08.2011, 21:20
Re: all freeze with me - by 0_o - 13.08.2011, 21:21
Re: all freeze with me - by Honest_Player - 13.08.2011, 21:26
Re: all freeze with me - by Intoxicated - 13.08.2011, 21:28
Re: all freeze with me - by Riddick94 - 13.08.2011, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)