AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Block C4 Drop (https://forums.alliedmods.net/showthread.php?t=263219)

Awesome_man 05-21-2015 02:52

[REQ] Block C4 Drop
 
Can someone please make a small plugin which block dropping c4 (drop command)
Please note also make it block even if ct has bomb

xxxperts 05-21-2015 06:29

Re: [REQ] Block C4 Drop
 
Quote:

Originally Posted by xPaw (Post 1117053)
Here's better:
Code:
#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; }



All times are GMT -4. The time now is 20:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.