Raised This Month: $ Target: $400
 0% 

Remove dropped entities except C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-10-2011 , 17:41   Re: Remove dropped entities except C4
Reply With Quote #1

Try checking
Code:
if (cs_get_weapon_id(iEntity) == CSW_C4)     return HAM_IGNORED;
__________________
hleV is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 12-11-2011 , 08:48   Re: Remove dropped entities except C4
Reply With Quote #2

Quote:
Originally Posted by hleV View Post
Try checking
Code:
if (cs_get_weapon_id(iEntity) == CSW_C4)     return HAM_IGNORED;
Does not work
reinert is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-11-2011 , 10:15   Re: Remove dropped entities except C4
Reply With Quote #3

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

#define VERSION "0.0.1"
#define PLUGIN "Remove Weapons"

#define XO_WEAPONBOX 4
new const m_rgpPlayerItems_wpnbx[] = {353638}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")

    
RegisterHamHam_Touch"weaponbox""WeaponBox_Touch")
    
RegisterHamHam_Touch"weapon_shield""WeaponShield_Touch")
}

public 
WeaponBox_Touch(iEntiOther)
{
    for(new 
ii<3i++)
    {
        if( 
get_pdata_cbase(iEntm_rgpPlayerItems_wpnbx[i], XO_WEAPONBOX) > )
        {
            
call_thinkiEnt )
            return
        }
    }
}

public 
WeaponShield_Touch(iEntiOther)
{
    
call_thinkiEnt )

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 12:00.


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