this?
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#define PLUGIN "Remove func_breakable"
#define VERSION "1.0"
#define AUTHOR "Rowan"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
new Entity = -1;
while ( ( Entity = find_ent_by_class( Entity, "func_breakable" ) ) )
{
engfunc(EngFunc_RemoveEntity,Entity)
}
}
@EDIT
Use:
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#define PLUGIN "Remove func_breakable"
#define VERSION "1.0"
#define AUTHOR "Rowan"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
new Entity = -1;
new target[32]
while ( ( Entity = find_ent_by_class( Entity, "func_breakable" ) ) )
{
pev(Entity,pev_targetname,target,charsmax(target))
if(equal(target,""))
engfunc(EngFunc_RemoveEntity,Entity)
}
}
Remove all breakable entities that is not given by another entity ...
Ex: Button 4 uses the entity 5 (breakable) does not remove the entity
if the entity 5 without any buttons, does not remove the map.