Ok, you try this:
http://www.amxmodx.lt/viewtopic.php?p=19893#p19893
PHP Code:
public OnEntSpawn(ent)
{
if (g_MapStripFlags & MAPSTRIP_HOSTAGE)
{
new classname[32]
pev(ent, pev_classname, classname, 31)
if (equal(classname, "hostage_entity"))
{
engfunc(EngFunc_RemoveEntity, ent)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}
->
PHP Code:
public OnEntSpawn(ent)
{
if (g_MapStripFlags & MAPSTRIP_HOSTAGE && pev_valid(ent))
{
new classname[32]
pev(ent, pev_classname, classname, 31)
if (equal(classname, "hostage_entity"))
{
engfunc(EngFunc_RemoveEntity, ent)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}