Как-то так в общем, там только энтити нужные поставь в коде)
(не проверял)
Код:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new g_fwd_FM_Spawn
public plugin_precache()
g_fwd_FM_Spawn = register_forward( FM_Spawn, "fwd_spawn" )
public plugin_init()
{
register_plugin( "Remove Ents (biohzrd)", "1.0", "cheap_suit/andrewz" )
unregister_forward( FM_Spawn, g_fwd_FM_Spawn )
}
public fwd_spawn( iEnt )
{
if( !pev_valid( iEnt ) )
return FMRES_IGNORED
new i, szClassName[ 32 ]
new szRemovingEntities[][] =
{
"func_bomb_target",
"info_bomb_target",
"hostage_entity",
"monster_scientist",
"func_hostage_rescue",
"info_hostage_rescue",
"info_vip_start",
"func_vip_safetyzone",
"func_escapezone",
"func_buyzone",
"func_tank",
"func_tankcontrols",
"armoury_entity",
"func_healthcharger",
"func_recharge"
}
pev( iEnt, pev_classname, szClassName, charsmax( szClassName ) )
for( i = 0; i < sizeof szRemovingEntities; ++i )
{
if( equal( szClassName, szRemovingEntities[ i ] ) )
{
engfunc( EngFunc_RemoveEntity, iEnt )
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}