GetPlayerTrespass
The trespass level a player’s game shows now.
With what set it: "level" - the level’s own areas (their game’s word: "public" until it has reported), "area" - one of the
map’s areas (its name third), "player" - SetPlayerTrespass.
Syntax
Section titled “Syntax”GetPlayerTrespass(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”string, string, string|nil - the level, the source and the area; nil when the player is not connected
Example
Section titled “Example”local level, source, area = GetPlayerTrespass(pid)if level == "personal" and source == "area" then Log(GetPlayerName(pid) .. " is in " .. area) endSee also
Section titled “See also”OnPlayerTrespassChange · the The map’s areas group of the index
