timer nuke
hi,i have a small problem and i don't know how to fix
[html]iniNuke()
{
self endon ( "disconnect" );
self endon ( "death" );
setDvar( "scr_nuketimer", 600 );
}
doNuke()
{
self endon ( "disconnect" );
self endon ( "death" );
self maps\mp\killstreaks\_nuke::doNuke();
}[/html]
when a player connects the timer resets and starts again the countdown (10 min)
where is the mistake and how to fix?
thanks.
2nd question:
can someone make a script for nuke sound?
setDvar( "scr_nuketimer", 600 ); for ten(or more) minutes is too much for players to hear the sound of nuke(not the sound "tactical nuke incoming:it's over")