GetZonePlayers
The players inside a zone right now.
Syntax
Section titled “Syntax”GetZonePlayers(id)| Parameter | Type | |
|---|---|---|
id |
number | the zone |
Returns
Section titled “Returns”table - a list of pids
Example
Section titled “Example”for _, pid in ipairs(GetZonePlayers(arena)) do GameText(pid, "Fight!", 1500) endSee also
Section titled “See also”IsPlayerInZone · GetPlayerZones · the Zones group of the index
