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[] = {35, 36, 38}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
RegisterHam( Ham_Touch, "weaponbox", "WeaponBox_Touch", 1 )
RegisterHam( Ham_Touch, "weapon_shield", "WeaponShield_Touch", 1 )
}
public WeaponBox_Touch(iEnt, iOther)
{
for(new i; i<3; i++)
{
if( get_pdata_cbase(iEnt, m_rgpPlayerItems_wpnbx[i], XO_WEAPONBOX) > 0 )
{
call_think( iEnt )
return
}
}
}
public WeaponShield_Touch(iEnt, iOther)
{
call_think( iEnt )
}
__________________