Thanks.
I try this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new g_soundlist[64] = "items/flashlight1.wav";
public plugin_init()
{
register_forward(FM_EmitSound, "block_sound");
}
public block_sound(entity, channel, const sound[])
{
if(equali(sound, g_soundlist)){
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
It works.
But when I replace flashlight.wav to weapons/usp_unsil-1.wav, its not working...
Maybe cs use another sound-file?