12-05-2012, 19:11
I used this timer in zombies, it has sounds and you can configure some stuff easily with it.
Another way to make one is this one:
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( );