#include <amxmodx> #include <fakemeta> #define USE_TIME 0.3 new Float: g_fUseTime[ 33 ] public plugin_init( ) { register_plugin( "Block Spam +Use", "1.0", "internet provider" ) register_forward( FM_EmitSound, "block_sound" ) } public client_putinserver( id ) { g_fUseTime[ id ] = 0.0 } public block_sound( entity, channel, const sound[] ) //Alucard^ credits { if( equali( sound, "common/wpn_denyselect.wav" ) && get_gametime() - g_fUseTime[ entity ] < USE_TIME ) { g_fUseTime[ entity ] = get_gametime() return FMRES_SUPERCEDE } g_fUseTime[ entity ] = get_gametime() return FMRES_IGNORED }