I am trying to remove one entity in particular in on particular map...
whats my problem ?
Code:
#include <amxmodx>
#include <fakemeta>
new curmap[32]
curmap[] = get_mapname(curmap, 31) //problem on this line
public plugin_init()
{
register_plugin("Ent Remover", "1.1", "CSL")
register_event("REMOVE", "event_remove", "a", "1=0", "2=0")
}
public event_remove()
{
remove_entity_by_classname("func_breakable")
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(curmap[] = "de_aztec2") //problem on this line as well
{
if(pev(ent, pev_model) == 105) //SPECIFIC MODEL
{
engfunc(EngFunc_RemoveEntity, ent)
}
}
else if(pev(ent, pev_spawnflags) != 1)
{
engfunc(EngFunc_RemoveEntity, ent)
}
}
}
I am trying to remove a specific model on a specific map. In this case model # 105 on map de_aztec2. The only problem is that its labeled as a wall...i want to remove just this one...not all the walls. LOL

help would be +karma'd