I need help with this it doesn't work right but i want it to make that sound when a person dies can anyone help?
PHP Code:
#include <amxmodx>
#define PLUGIN "Death sounds"
#define VERSION "1.0"
#define AUTHOR "purple nurple"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","event_death","a")
}
public event_death(id)
{
emit_sound(id, CHAN_VOICE,"zombie/zombie_die3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
public plugin_precache()
{
precache_sound("zombie/zombie_die3.wav")
}
Can anyone help?