[SOLVED]Countdown Timer
#4

Top of the script;
Code:
new CountDownFromAmount;
forward CountDownTimer();
OnGameModeInit;
Code:
CountDownFromAmount = 480; // 8min.
SetTimer("CountDownTimer", 999, 1);
Somewhere in you're script;
Code:
public CountDownTimer()
{
	CountDownFromAmount--;
	if (CountDownFromAmount == 0)
	{
		GameTextForAll("End of round!!", 3000, 5);
	}
	return 1;
}
Edit: Use format and GameText to see the counting.
Reply


Messages In This Thread
[SOLVED]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:05
Re: [Really Need Help]Countdown Timer - by RyDeR` - 24.11.2009, 17:11
Re: [Really Need Help]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:12
Re: [Really Need Help]Countdown Timer - by RyDeR` - 24.11.2009, 17:21
Re: [Really Need Help]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:22
Re: [Really Need Help]Countdown Timer - by RyDeR` - 24.11.2009, 17:35
Re: [Really Need Help]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:36
Re: [Really Need Help]Countdown Timer - by RyDeR` - 24.11.2009, 17:39
Re: [Really Need Help]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:43
Re: [Really Need Help]Countdown Timer - by RyDeR` - 24.11.2009, 17:44
Re: [Really Need Help]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:48
Re: [Really Need Help]Countdown Timer - by Tigerbeast11 - 24.11.2009, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)