Reference:
http://forums.alliedmods.net/showthread.php?t=42159
Note: Untested
PHP Code:
#include <amxmodx>
#include <fakemeta>
static const PLUGIN_NAME[] = "Remove Breakable Stuff & Hostages"
static const PLUGIN_AUTHOR[] = "Cheap_Suit"
static const PLUGIN_VERSION[] = "1.0"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_cvar(PLUGIN_NAME, PLUGIN_VERSION, FCVAR_SPONLY|FCVAR_SERVER)
register_event("HLTV", "event_hltv", "a", "1=0", "2=0")
}
public event_hltv()
{
remove_entity_by_classname("func_breakable")
remove_entity_by_classname("hostage_entity")
remove_entity_by_classname("scientist_entity")
}
stock remove_entity_by_classname(const classname[])
{
new ent = -1
while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", classname)))
engfunc(EngFunc_RemoveEntity, ent)
}
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.