Skip to content

IsPlayerInZone

Whether the player is inside a zone, as of the last tick’s test.

IsPlayerInZone(pid, id)
Parameter Type
pid number the player
id number the zone

boolean

function OnPlayerDamage(pid, attacker, damage)
if IsPlayerInZone(pid, lobby) then return false end -- no fighting in the lobby
end

IsPointInZone · GetPlayerZones · GetZonePlayers · the Zones group of the index