OnPlayerLeaveZone
A player left a zone - walked or was moved out, despawned, respawned elsewhere, disconnected.
Syntax
Section titled “Syntax”function OnPlayerLeaveZone(pid, zone) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
zone |
number | the zone |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerLeaveZone(pid, zone) if zone == arena and inDuel[pid] then SendClientMessage(pid, COLOUR_RED, "Back in the ring!") SetPlayerPos(pid, ringX, ringY, ringZ) endendSee also
Section titled “See also”OnPlayerEnterZone · the Zones group of the index
