AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Remove C4 (https://forums.alliedmods.net/showthread.php?t=332003)

Stefanos 04-17-2021 22:53

Remove C4
 
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?

Bugsy 04-17-2021 23:24

Re: Remove C4
 
Search

https://forums.alliedmods.net/showthread.php?t=201341
https://forums.alliedmods.net/showpo...08&postcount=8

killer999 04-18-2021 01:16

Re: Remove C4
 
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;



Bugsy 04-18-2021 01:48

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

killer999 04-19-2021 00:11

Re: Remove C4
 
Quote:

Originally Posted by Bugsy (Post 2744402)
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 :)

DJEarthQuake 04-19-2021 08:10

Re: Remove C4
 
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]); }

tarsisd2 04-19-2021 12:03

Re: Remove C4
 
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 


CryWolf 04-20-2021 05:27

Re: Remove C4
 
In
.../moddir/addons/amxmodx/configs/csdm.cfg
Code:

;Sets whether the bomb is removed
remove_bomb = 1


Stefanos 04-20-2021 11:18

Re: Remove C4
 
we dont use csdm plugins and modules, cuz they suck :P


All times are GMT -4. The time now is 17:13.

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