For doors and vents someone told me to try this code but didnt work for me...
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")
remove_entity_by_classname("func_door_rotating")
remove_entity_by_classname("func_door")
}
stock remove_entity_by_classname(const classname[])
{
new ent = -1
while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", classname)))
{
if(pev(ent, pev_spawnflags) == 1)
{
engfunc(EngFunc_RemoveEntity, ent)
}
}
}