#include < amxmodx > #include < hamsandwich > new g_pEnabled; public plugin_init( ) { register_plugin( "", "", "" ); g_pEnabled = register_cvar( "sv_block_c4_drop", "1" ); RegisterHam( Ham_CS_Item_CanDrop, "weapon_c4", "FwdHamC4Drop" ); } public FwdHamC4Drop( const iEntity ) { if( get_pcvar_num( g_pEnabled ) ) { SetHamReturnInteger( 0 ); return HAM_SUPERCEDE; } return HAM_IGNORED; }