will it work or its not how i need to do it :
PHP Code:
public event_round_start()
{
new minutes = vote_timeleft / 60;
new seconds = vote_timeleft % 60;
vote_timeleft = 1200;
ColorChat( 0, "Timeleft for vote next map: %i:%i", minutes, seconds );
if( vote_timeleft <= 0.0 )
{
Timer = 7;
ActionPrepare();
}
}
public ActionPrepare()
{
if( Timer >= 0 )
{
new szVox[ 32 ];
num_to_word( Timer, szVox, charsmax( szVox ) );
client_cmd( 0, "spk vox/%s", szVox );
Timer -= 1;
}
else if( Timer <= 0 )
{
remove_task( 197 );
ActionSpecial( );
}
}