This code removes the USP whenever it's dropped, because someone can drop it advisedly on the block and cause the problem again.
PHP Code:
#include <amxmodx>
#include <fakemeta>
new const WMODEL[] = "models/w_usp.mdl"
public plugin_init()
{
register_plugin("Remove Dropped xm1014", "1.0", "Flicker")
register_forward(FM_SetModel, "fwdSetModel")
}
public fwdSetModel(ent, model[])
{
if(!pev_valid(ent))
return FMRES_IGNORED
new id = pev(ent, pev_owner)
if(!pev_valid(id) || !equali(model, WMODEL))
return FMRES_IGNORED
set_task(0.1, "delayedRemove", ent)
return FMRES_IGNORED
}
public delayedRemove(ent)
engfunc(EngFunc_RemoveEntity, ent)
__________________