Here's a very simple test I was trying
Code:
public voice_exterminate(id) {
if (is_user_connected(id) && is_user_alive(id) && !is_user_bot(id) && !is_user_hltv(id)) {
emit_sound(id,CHAN_VOICE, "misc/exterminate.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("blah", "blah", "blah")
register_clcmd("voice_exterminate","voice_exterminate")
precache_sound("misc/exterminate.wav")
return PLUGIN_CONTINUE
}
When I try voice_exterminate in game nothing happens when I think it should play misc/exterminate.wav
The wav file is 92.6kb, 352kbps, 16bit, mono and 22khz and it plays fine via the spk command.
Any idea what I'm doing wrong?
Pyro
__________________