IsPlayerInZone
Whether the player is inside a zone, as of the last tick’s test.
Syntax
Section titled “Syntax”IsPlayerInZone(pid, id)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number | the zone |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”function OnPlayerDamage(pid, attacker, damage) if IsPlayerInZone(pid, lobby) then return false end -- no fighting in the lobbyendSee also
Section titled “See also”IsPointInZone · GetPlayerZones · GetZonePlayers · the Zones group of the index
