Timer that doesn't Crash

Posts 1–7 of 7 · Page 1 of 1
Timer that doesn't Crash
Hey,

I want to make a timer that counts down from 5 minutes. But i made one but it always crashes due overflow of the text. How can i fix this ? In de the new prophunt mod is a custom timer to that never crashes. How?
I know how but you can't have it until I release Granny's Zombies because I am an ass >
Quote Originally Posted by [WhA]4FunPlayin View Post
I know how but you can't have it until I release Granny's Zombies because I am an ass >

z0mg total ass whooping... still when it's going to get released

Psss
Code:
setDvar("scr_sd_timelimit", "5");
still this was made for SnD just change the "sd" for your gamemode
Is that setDvar possible at any time? Like when the zombies released?
and just make a thread with

waittill("game_end");
in it?
as in my mod to fix crashes, use setValue(numberHere) instead of setText()
Thx, but how can i use setValue with minutes and secondes? just setValue(level.min":"level.sec); how?
I'm not sure if you mean this, but i made a spawnprotection with a countdown timer. Here it is modified for your needs, just call the thread whenever you need it (im assuming you want the game to end when the timer expires)
Code:
spawnProtection() //called on spawn
{
	self.protectiontimer = createTimer( "hudsmall", 1.0 );
	self.protectiontimer setPoint( "CENTER", "BOTTOM", 0, -100);
	self.protectiontimer setTimer( 600 );
	self.protectiontimer.color = (0.8,0.8,0.8);
	self.protectiontimer.foreground = true;
	
	self.protectionTimerText = self createFontString( "default", 1.5);
	self.protectionTimerText setParent( self.protectiontimer );
	self.protectionTimerText setPoint( "BOTTOM", "TOP" );
	self.protectionTimerText setText("Game ending in:");
	
	wait 600;
	self.protectionTimerText destroy();
	self.protectiontimer destroy();
	level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us