public FwdThinkTimer( ent ) {
if( !CheckPlayers( 1 ) ) // Maybe someone left or died
g_iTimer = 0;
if( g_iTimer ) {
for( new id = 1; id <= g_iMaxPlayers; id++ ) {
if( g_bAlive[ id ] && g_iTeam[ id ] == CS_TEAM_CT ) {
engfunc( EngFunc_SetClientMaxspeed, id, 0.0000001 );
set_pev( id, pev_maxspeed, 0.0000001 );
MakeScreenFade( id, 1 );
}
}
set_hudmessage( 0, 100, 255, -1.0, 0.82, 0, 0.0, 1.1, 0.0, 0.0, 1 );
show_hudmessage( 0, "%i seconds to hide..", g_iTimer );
/*
new szSeconds[ 10 ];
num_to_word( g_iTimer, szSeconds, 9 );
client_cmd( 0, "spk ^"SoUlFaThEr/%s^"", szSeconds );
*/
set_pev( ent, pev_nextthink, get_gametime( ) + 1.0 );
g_iTimer--; // Make the timer decrease
} else {
client_cmd( 0, "spk ^"misc/cow.wav^"");
for( new id = 1; id <= g_iMaxPlayers; id++ ) {
if( !g_bAlive[id] ) // Ignore deadies
continue;
switch( g_iTeam[ id ] ) {
case CS_TEAM_T: Task_GiveGrenades( id );
case CS_TEAM_CT: {
engfunc( EngFunc_SetClientMaxspeed, id, 250.0 );
set_pev( id, pev_maxspeed, 250.0 );
MakeScreenFade( id );
}
}
}
set_hudmessage( 0, 100, 255, -1.0, 0.82, 0, 0.0, 2.0, 0.0, 0.4, 1 );
show_hudmessage( 0, "Ready or not, here we come !" );
}
}