Skip to content

OnPlayerLeaveZone

A player left a zone - walked or was moved out, despawned, respawned elsewhere, disconnected.

function OnPlayerLeaveZone(pid, zone)
-- ...
end
Parameter Type
pid number the player
zone number the zone

nothing

function OnPlayerLeaveZone(pid, zone)
if zone == arena and inDuel[pid] then
SendClientMessage(pid, COLOUR_RED, "Back in the ring!")
SetPlayerPos(pid, ringX, ringY, ringZ)
end
end

OnPlayerEnterZone · the Zones group of the index