This will block c4_disarm.wav and c4_disarmed.wav sounds.
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin( "Disable C4 Defuse Sound" , "0.1" , "bugsy" );
new szMap[ 4 ];
get_mapname( szMap , charsmax( szMap ) );
if ( equal( szMap , "de_" ) )
register_forward( FM_EmitSound , "EmitSound" );
}
public EmitSound( id , channel , sample[] )
{
return ( sample[ 8 ] == 'c' && sample[ 9 ] == '4' && sample[ 11 ] == 'd' ) ? FMRES_SUPERCEDE : FMRES_IGNORED;
}
__________________