PHP Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin("No Weapon Pickup", "1.1", "hleV");
new const szPlayer[] = "player";
#if defined REMOVE_WEAPONS
new const szTouch[] = "fwdTouch";
#else
new const szTouch[] = "";
#endif
register_touch("weaponbox", szPlayer, szTouch);
register_touch("armoury_entity", szPlayer, szTouch);
register_touch("weapon_shield", szPlayer, szTouch);
}
#if defined REMOVE_WEAPONS
public fwdTouch(iEntity)
{
if (!is_valid_ent(iEntity))
return PLUGIN_CONTINUE;
call_think(iEntity);
return PLUGIN_HANDLED;
}
#endif
__________________