Results 1 to 7 of 7
  1. #1
    shotyoudie's Avatar
    Join Date
    May 2009
    Gender
    female
    Posts
    119
    Reputation
    10
    Thanks
    6
    My Mood
    Angelic

    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?

  2. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    I know how but you can't have it until I release Granny's Zombies because I am an ass >

  3. #3
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    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
    Last edited by Orichumaru; 10-08-2010 at 04:33 AM.

  4. #4
    shotyoudie's Avatar
    Join Date
    May 2009
    Gender
    female
    Posts
    119
    Reputation
    10
    Thanks
    6
    My Mood
    Angelic
    Is that setDvar possible at any time? Like when the zombies released?
    and just make a thread with

    waittill("game_end");
    in it?

  5. #5
    bomb21's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Unknown
    Posts
    57
    Reputation
    10
    Thanks
    22
    as in my mod to fix crashes, use setValue(numberHere) instead of setText()

  6. #6
    shotyoudie's Avatar
    Join Date
    May 2009
    Gender
    female
    Posts
    119
    Reputation
    10
    Thanks
    6
    My Mood
    Angelic
    Thx, but how can i use setValue with minutes and secondes? just setValue(level.min":"level.sec); how?

  7. #7
    ch40s's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    6
    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();
    }

Similar Threads

  1. [SOLVED] DemoPlayer that doesn't record hacks
    By PooPooPoower in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 06-10-2010, 03:49 AM
  2. Replies: 5
    Last Post: 10-18-2009, 09:24 PM
  3. Replies: 5
    Last Post: 04-15-2009, 03:37 PM
  4. UCE Settings so WarRock doesn't crash
    By scooby107 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 07-08-2007, 03:25 AM