View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-11-2019 , 18:37   Re: Removing weapons from certains slots
Reply With Quote #5

Change this
PHP Code:
iWeapons &= ~get_pdata_int(iItemm_iIdXO_CBASEPLAYERITEM
to this
PHP Code:
iWeapons &= ~( << get_pdata_int(iItemm_iIdXO_CBASEPLAYERITEM) ) 
and you should be good.

And use this for 1.9.0 support:
PHP Code:
#if AMXX_VERSION_NUM == 190
#include <cstrike_pdatas/cbaseplayer_offsets>
#include <cstrike_pdatas/cbaseentity_offsets>
#include <cstrike_pdatas/cbaseplayerweapon_offsets>
#else
#tryinclude <cstrike_pdatas> 

#if !defined _cbaseentity_included 
        #assert Cstrike Pdatas and Offsets library required! Read the below instructions:   \ 
                
1. Download it at forums.alliedmods.net/showpost.php?p=1712101#post1712101   \ 
                
2. Put it into amxmodx/scripting/include/ folder   
                
3. Compile this plugin locallydetailswiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29   
                
4. Install compiled plugindetailswiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing 
#endif 
#endif 
__________________

Last edited by Bugsy; 01-11-2019 at 18:38.
Bugsy is offline