• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GSC Timers
#11
I used this timer in OMA zombies, it has sounds and you can configure some stuff easily with it.

Code:
    level.counter = createServerFontString( "default", 2, "allies" );
    level.counter setPoint( "", "", 0, -190 );
    level.counter.color = ( 1, 1, 1 );
    level.counter.glowcolor = ( 1, 0, 0 );
    level.counter.glowalpha = 1;
    level.ctime = 30; //Number of seconds
    for ( i = level.ctime; i > 0; i -- )
    {
        level.counter setText( "Zombies coming in: " + i );
        if ( i < 11 )
            foreach ( player in level.players )
                player playSound( "ui_mp_timer_countdown" );
        wait 1;
    }
    level.counter destroy();

Another way to make one is this one:

Code:
self.timer = self createTimer( "default", 4 );
self.timer SetTimer( 10 );
wait 10;
self.timer destroy( );
[Image: veovuq.png]
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)