mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Improve get_map_objectives native.
This commit is contained in:
parent
d8fc093fd8
commit
850ae540a9
@ -399,7 +399,8 @@ static cell AMX_NATIVE_CALL get_map_objectives(AMX *amx, cell *params)
|
|||||||
|
|
||||||
if (!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "func_hostage_rescue")) ||
|
if (!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "func_hostage_rescue")) ||
|
||||||
!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "info_hostage_rescue")) ||
|
!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "info_hostage_rescue")) ||
|
||||||
!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "hostage_entity"))) // there are maps with only this and using team spawn as rescue zone.
|
!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "hostage_entity")) || // ) there are maps with only this and using team spawn as rescue zone.
|
||||||
|
!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "monster_scientist"))) // )
|
||||||
flags |= MapObjective_Hostage;
|
flags |= MapObjective_Hostage;
|
||||||
|
|
||||||
if (!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "func_vip_safetyzone")))
|
if (!FNullEnt(FIND_ENTITY_BY_STRING(NULL, "classname", "func_vip_safetyzone")))
|
||||||
|
Loading…
Reference in New Issue
Block a user