How to edit the code to remove defuse kit from the ground?
All weapons are removed from the ground only defuse kit don't want...
PHP Code:
#include <amxmodx>
#include <fakemeta>
new cvar_removedropped
public plugin_init()
{
register_plugin("Remove drop weapons", "1.0", "watch")
register_forward(FM_SetModel, "fw_SetModel")
cvar_removedropped = register_cvar("remove_dropped_weapons", "2")
}
public fw_SetModel(entity, const model[])
{
new len = strlen(model)
if(len < 8) return
if (get_pcvar_float(cvar_removedropped) > 0.0)
{
static classname[10]
pev(entity, pev_classname, classname, charsmax(classname))
if (equal(classname, "weaponbox"))
{
set_pev(entity, pev_nextthink, get_gametime() + get_pcvar_float(cvar_removedropped))
return
}
}
}