OnPlayerEnterZone
A player’s position of record entered a zone.
Syntax
Section titled “Syntax”function OnPlayerEnterZone(pid, zone) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
zone |
number | the zone |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerEnterZone(pid, zone) if zone == spawnZone then GameText(pid, "The spawn", 1500, GAMETEXT_LOWER) end if GetZoneData(zone, "safe") then SendClientMessage(pid, COLOUR_GREEN, "You are safe here.") endendSee also
Section titled “See also”OnPlayerLeaveZone · CreateZone · IsPlayerInZone · the Zones group of the index
