well i want this script to use config file which contains list of map to remove weapon entities from.
weapon_stripper.cfg
Weapons Stripper
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Weapons Stripper"
#define AUTHOR "Jim"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_precache()
{
register_forward(FM_Spawn, "fwd_spawn")
}
public fwd_spawn(ent)
{
new classname[32]
pev(ent, pev_classname, classname, 31)
if(classname[0] == 'a' && classname[1] == 'r')
{
engfunc(EngFunc_RemoveEntity, ent)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
thanks in advanced and +1 karma