hi guys
can you help me with this code
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "hostage sound"
#define VERSION "0.1"
#define AUTHOR "checker"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_forward(FM_EmitSound, "EmitSound");
}
new CUSTOM_SOUND[] = "hostage/female/hos2.wav";
public plugin_precache()
precache_sound(CUSTOM_SOUND);
public EmitSound(entity, channel, const sound[])
{
if(pev_valid(entity))
{
if(containi(sound, "hostage/hos1.wav")!=-1 && containi(sound, "hostage/hos2.wav")!=-1 && containi(sound, "hostage/hos3.wav")!=-1 && containi(sound, "hostage/hos4.wav")!=-1 && containi(sound, "hostage/hos5.wav")!=-1)
{
emit_sound(entity, channel, CUSTOM_SOUND, 1.0, ATTN_NORM, 0, PITCH_NORM);
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}
i changed the custom spray sound by v3x, but it doesn't work.
__________________