Raised This Month: $ Target: $400
 0% 

[REQ] Block C4 Drop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 05-21-2015 , 02:52   [REQ] Block C4 Drop
Reply With Quote #1

Can someone please make a small plugin which block dropping c4 (drop command)
Please note also make it block even if ct has bomb
Awesome_man is offline
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 05-21-2015 , 06:29   Re: [REQ] Block C4 Drop
Reply With Quote #2

Quote:
Originally Posted by xPaw View Post
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 my work is here
xxxperts is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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