You need to set a task to make a timer. For example:
PHP Code:
public StartTimer(param[1]) {
if(!param[0]) {
// Time's up
return PLUGIN_HANDLED
}
// Set hud message
// Show hud message
param[0]--;
set_task(1.0,"StartTimer",_,param,sizeof(param));
}
And if you want to start the timer you need to give it a start point.
PHP Code:
new param[1];
param[0] = get_cvar_num("mp_freezetime") + get_cvar_num("sp_time");
StartTimer(param);