Oh, that's what you want, ok. I'll edit this when I'm done it.
EDIT: try this
Code:
#include <amxmodx>
new sound[] = "misc/change.wav"
public plugin_init()
{
register_plugin("TimeSound","1.0","Mulan");
register_cvar("amx_time_sound", "60.0");
register_cvar("amx_time_freqcheck","5.0");
set_task(get_cvar_float("amx_time_checkfreq"),"check_tl",_,_,_,"b");
return PLUGIN_CONTINUE;
}
public plugin_precache()
{
precache_sound(sound);
}
public time_sound()
{
client_cmd(0,"spk %s",sound);
return PLUGIN_CONTINUE;
}
public check_tl()
{
new timeleft = get_timeleft();
if(timeleft <= get_cvar_num("amx_time_sound"))
{
time_sound();
}
}
__________________