okay... i have a problem. In the German Forum cant me help.
I have AMXX 1.50 an have written a mini-plugin.
This plugin must load a sound after the time i have definied in the amxx.cfg.
Problem: Plugin is loaded and running by AMXX. I cant hear the Sound in-Game after 60 seconds. Why? Plz help me
Code:
#include <amxmodx>
new sound[] = "change.wav"
public plugin_init()
{
register_plugin("TimeSound","1.0","Mulan")
register_cvar("amx_time_sound", "60")
return PLUGIN_CONTINUE
}
public time_sound(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE
if(!get_cvar_float("mp_timelimit"))
return PLUGIN_CONTINUE
new timeleft = (get_timeleft()+1)
if(timeleft == get_cvar_num("amx_time_sound")) {
client_cmd(id,"play sound/misc/%s",sound)
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}