I have trouble with blocking fire in the hole sound
here is a code
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <cstrike>
#include <fakemeta>
//global name
new g_soundFIH[] = "radio/ct_fireinhole.wav"
public plugin_init() {
//some code here
register_forward(FM_EmitSound, "block_sound")
//some code here
}
public block_sound(entity, channel, const sound[]) {
// Use equali to check strings against each other because
// they are technically arrays
if ( equali(sound, g_soundFIH) )
{
return FMRES_SUPERCEDE
}
//else
return FMRES_IGNORED
}
when a throw granate i here sound 'fire in the hole'
Here is a question: How block that anoyed sound and how block chat message?