[SOLVED] CountDown..
#3

Код:
forward CountDown();
public CountDown()
{
	new String[64];
	for(new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i))
	{
		if(Drift[i] == 1)
		{
			format(String, 64,"~r~~h~%d",Count);
			GameTextForPlayer(i,String,1000,6);
		}
	}
	Count--;
	if(Count > 0)
	{
		SetTimer("CountDown",1000,false);
	}
	else
	{
		format(String, 64,"~g~~h~GO");
		for(new i = 0; i < GetMaxPlayers(); i++)
		{
			if(Drift[i] == 1)
			{
				TogglePlayerControllable(i, 1);
				GameTextForPlayer(i,String,1000,6);
			}
		}
		Count = 6;
	}
}
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)