Why don't you block the pickup?
Code:
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
#define MAX_CLASSNAMES 3
new g_szClassNames[MAX_CLASSNAMES][] =
{
"weaponbox",
"armoury_entity",
"grenade"
};
public plugin_init()
{
register_forward(FM_Touch, "fwTouch");
RegisterHam(Ham_Spawn, "player", "hSpawn", 1);
}
public fwTouch(iEnt, iCl)
{
if (!pev_valid(iEnt) || !is_user_alive(iCl))
return FMRES_IGNORED;
new szClassName[32];
pev(iEnt, pev_classname, szClassName, 31);
for (new i = 0; i < MAX_CLASSNAMES; i++)
if (equal(szClassName, g_szClassNames[i]))
return FMRES_SUPERCEDE;
return FMRES_IGNORED;
}
public hSpawn(iCl)
{
if (!is_user_alive(iCl))
return;
fm_strip_user_weapons(iCl);
}
__________________