all freeze with me
#8

Rather try this, simplified and more efficient.

Код:
new
	Ctimer,
	tCountdown;

public StartRace()
{
    tCountdown = SetTimer("CountDown",1000, 1);
}
forward CountDown()
{
	#define SEC 1000
	Ctimer++;
	if(Ctimer == (3*SEC))
	{
	    GameTextForAll("~w~- ~r~ 3 ~w~- ~r~ 3 ~w~- ~r~ 3 ~w~ -", 4000, 3);
	}
	if(Ctimer == (5*SEC))
	{
	    GameTextForAll("~n~~n~~w~- ~r~ 2 ~w~- ~r~ 2 ~w~- ~r~ 2 ~w~ -", 4000, 3);
	}
	if(Ctimer == (7*SEC))
	{
	    GameTextForAll("~n~~n~~n~~n~~w~- ~r~ 1 ~w~- ~r~ 1 ~w~- ~r~ 1 ~w~ -", 4000, 3);
	}
	if(Ctimer == (10*SEC))
	{
	    GameTextForAll("~n~~n~~n~~n~~n~~n~~w~- ~r~ Start ~w~- ~r~ Start ~w~- ~r~ Start ~w~ -", 4000, 3);
	    Ctimer=0;
	    
	    for(new i=0; 1 < MAX_PLAYERS i++)
	    {
	        TogglePlayerControllable(i, 1);
		}

	    KillTimer(tCountdown);
	    return 1;
	}
}
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)