Change this
PHP Code:
iWeapons &= ~get_pdata_int(iItem, m_iId, XO_CBASEPLAYERITEM)
to this
PHP Code:
iWeapons &= ~( 1 << get_pdata_int(iItem, m_iId, XO_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 locally, details: wiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29 \
4. Install compiled plugin, details: wiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing
#endif
#endif
__________________