[SOLVED] CountDown..
#1

I've a drift script, that i made witch you can invite somebody to a drift.. after he confirm that
you teleport with him to some place and there is a count down

new Count = 6;

Код:
forward CountDown();
public CountDown()
{
	new String[256];
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
		if (Drift[i] == 1)
		{
       format(String, 256,"~r~~h~%d",Count);
       GameTextForPlayer(i,String,1000,6);
       if (Count > 0)
       {
			   Count --;
			   CountDown();
	     }
       else
       {
         format(String, 256,"~g~~h~GO");
         GameTextForPlayer(i,String,1000,6);
       }
    }
  }
	UnFreeze();
	Count = 6;
}

forward UnFreeze();
public UnFreeze()
{
	for (new i = 0; i < MAX_PLAYERS; i++)
  {
		if (Drift[i] == 1)
    {
      TogglePlayerControllable(i, 1);
    }
	}
	Count = 6;
}
why the count down won't work?
Reply


Messages In This Thread
[SOLVED] CountDown.. - by borisblat - 06.07.2009, 17:51
Re: [Help] CountDown.. - by dice7 - 06.07.2009, 17:58
Re: [Help] CountDown.. - by Jefff - 06.07.2009, 18:03
Re: [Help] CountDown.. - by borisblat - 06.07.2009, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)