Hello!I have one problem with plugin "Remove Drop Weapons".This plugin dropped all weapons including C4.I want to this plugin do not dropped C4.How can i realised?
Sma code:
Code:
#include <amxmodx>
#include <fakemeta>
new PLUGIN[] = "Remove Drop Weapons"
new VERSION[] = "0.0.2"
new AUTHOR[] = "Athix"
new Pcvar_Remove;
new Pcvar_TimeRemove;
new DeleteWeapons;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
Pcvar_Remove = register_cvar("amx_remove_item_dropped", "1")
Pcvar_TimeRemove = register_cvar("amx_time_to_remove","1.0")
register_forward(FM_SetModel, "Fw_SetModel")
DeleteWeapons = get_pcvar_num(Pcvar_Remove)
}
public Fw_SetModel(entity, const model[])
{
static Float:Timetoremove
Timetoremove = get_pcvar_float(Pcvar_TimeRemove)
if (DeleteWeapons > 0)
{
set_task(Timetoremove, "RemoveItems", entity)
return;
}
}
public RemoveItems(entity)
{
static Class[10]
pev(entity, pev_classname, Class, sizeof Class - 1)
if (equal(Class, "weaponbox"))
{
set_pev(entity, pev_nextthink, get_gametime() + DeleteWeapons)
return;
}
}