Raised This Month: $32 Target: $400
 8% 

Remove Defuse Kit on the ground


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 10-12-2016 , 10:14   Remove Defuse Kit on the ground
Reply With Quote #1

I have ArmyRanks+respawn and i need me plugin to remove c4 and defuse kite and when drop on the ground to cleanup(remove) i use this for c4 but for kit nothing can make for defuse kit in this plugin two in one

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

#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin("No BombSites"VERSION"ConnorMcLeod")

    new 
iEnt
    
while( (iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname""func_bomb_target")) )
    {
        
engfunc(EngFunc_RemoveEntityiEnt)
    }
    while( (
iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname""info_bomb_target")) )
    {
        
engfunc(EngFunc_RemoveEntityiEnt)
    }

Ant1Lamer is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 10-12-2016 , 10:31   Re: Remove Defuse Kit on the ground
Reply With Quote #2

did you tested this?
When you remove info_bomb_target if i remember defuse is disabled in buy menus too.

Ps;

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

new g_sEntities[][] =
{
    "func_bomb_target",
    "info_bomb_target",
    "hostage_entity",
    "func_hostage_rescue",
    "info_hostage_rescue",
    "info_vip_start",
    "func_vip_safetyzone",
    "func_escapezone"
};

new g_sEntitiesChanged[][] =
{
    "_func_bomb_target",
    "_info_bomb_target",
    "_hostage_entity",
    "_func_hostage_rescue",
    "_info_hostage_rescue",
    "_info_vip_start",
    "_func_vip_safetyzone",
    "_func_escapezone"
};

public plugin_init()
{
    register_plugin("Map Objectives remove",AMXX_VERSION_STR,"SmileY");
}

public CS_MapObjectives(bool:bRemove)
{
    new iEnt = -1;
    
    for(new i;i < sizeof(g_sEntities);i++)
    {
        while((iEnt = engfunc(EngFunc_FindEntityByString,iEnt,"classname",bRemove ? g_sEntities[i] : g_sEntitiesChanged[i])) > 0)
        {
            set_pev(iEnt,pev_classname,bRemove ? g_sEntitiesChanged[i] : g_sEntities[i]);
        }
    }
}
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 10-12-2016 at 10:35.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 10-13-2016 , 02:53   Re: Remove Defuse Kit on the ground
Reply With Quote #3

not work :S
Ant1Lamer 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 21:18.


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