Works fine for me.
Code:
#include <amxmodx>
#include <fakemeta>
#define STRIP_ENTITIES 9
new nobombhos
new game_entity[STRIP_ENTITIES][] =
{
"func_bomb_target", "func_escapezone", "func_hostage_rescue", "func_vip_safetyzone",
"info_bomb_target", "info_hostage_rescue","info_vip_start", "hostage_entity",
"monster_scientist"
}
public plugin_precache()
{
register_plugin("No bomb/hostages", "1.40", "NL)Ramon(NL")
nobombhos = register_cvar("amx_nobombhos", "1")
if(get_pcvar_num(nobombhos))
{
register_forward(FM_Spawn, "Spawn")
}
}
public Spawn(pent)
{
if(pev_valid(pent))
{
new classname[32]
pev(pent, pev_classname, classname, 31)
for(new i = 0; i < STRIP_ENTITIES; ++i)
{
if(equali(classname, game_entity[i]))
{
engfunc(EngFunc_RemoveEntity, pent)
break
}
}
}
}
No plugin_init()