Raised This Month: $12 Target: $400
 3% 

Remove C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stefanos
Senior Member
Join Date: May 2020
Old 04-17-2021 , 22:53   Remove C4
Reply With Quote #1

I Have Deathmatch server, and its very annoying when i get C4 in inventory, can someone create a plugin that will remove c4 from inventory, not only plant sites?
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-17-2021 , 23:24   Re: Remove C4
Reply With Quote #2

Search

https://forums.alliedmods.net/showthread.php?t=201341
https://forums.alliedmods.net/showpo...08&postcount=8
__________________
Bugsy is offline
killer999
Senior Member
Join Date: Dec 2013
Location: India
Old 04-18-2021 , 01:16   Re: Remove C4
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("Can't Plant C4""0.1""Exolent");
    
register_forward(FM_CmdStart"FwdCmdStart"0);
    
    return 
PLUGIN_CONTINUE;
}

public 
FwdCmdStart(plruc_handleseed)
{
    static 
clipammo;
    if( !
is_user_alive(plr)
    || 
get_user_weapon(plrclipammo) != CSW_C4 )
    {
        return 
FMRES_IGNORED;
    }
    
    new 
buttons get_uc(uc_handleUC_Buttons);
    if( 
buttons&IN_ATTACK )
    {
        
buttons &= ~IN_ATTACK;
        
set_uc(uc_handleUC_Buttonsbuttons);
        
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;

__________________
killer999 is offline
Send a message via Skype™ to killer999
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-18-2021 , 01:48   Re: Remove C4
Reply With Quote #4

killer999, it's much more efficient to drop/remove the C4 than to block the attack command when holding C4.
__________________

Last edited by Bugsy; 04-18-2021 at 01:48.
Bugsy is offline
killer999
Senior Member
Join Date: Dec 2013
Location: India
Old 04-19-2021 , 00:11   Re: Remove C4
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
killer999, it's much more efficient to drop/remove the C4 than to block the attack command when holding C4.
yeah that will also work
__________________
killer999 is offline
Send a message via Skype™ to killer999
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-19-2021 , 08:10   Re: Remove C4
Reply With Quote #6

Code:
#include amxmodx #include engine_stocks new const c4[][]={"weapon_c4","func_bomb_target","info_bomb_target"}; public plugin_init() {     register_plugin("c4 killer", "SPiNX", "04-2021");     for(new ent;ent < sizeof c4;++ent)         remove_entity_name(c4[ent]); }
__________________
DJEarthQuake is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-19-2021 , 12:03   Re: Remove C4
Reply With Quote #7

if you use regame you can just change this cvar

PHP Code:
// Whether this map should spawn a C4 bomb for a player or not.
// 0 - disabled
// 1 - enabled (default behaviour)
//
// Default value: "1"
mp_give_player_c4 0 

Last edited by tarsisd2; 04-19-2021 at 12:03.
tarsisd2 is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 04-20-2021 , 05:27   Re: Remove C4
Reply With Quote #8

In
.../moddir/addons/amxmodx/configs/csdm.cfg
Code:
;Sets whether the bomb is removed
remove_bomb = 1
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Stefanos
Senior Member
Join Date: May 2020
Old 04-20-2021 , 11:18   Re: Remove C4
Reply With Quote #9

we dont use csdm plugins and modules, cuz they suck
Stefanos is offline
Reply


Thread Tools
Display Modes

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 07:06.


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