Part of TPG namespace
TPG.Protection.IsInSafezone(ply)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Is ply inside their own team's safezone? A player off a team (spectator) is always considered safe. Before any round has published spawns (map start, the pre-round wait), there is no "outside" to be on the wrong side of, so this returns true for everyone, rather than telling players their spawn protection just expired on a map they can't even build on yet.
Parameters
| Name | Type | Description |
|---|---|---|
ply | Player |
Returns
| Type | Description |
|---|---|
boolean |
Examples
No examples available.
Used In
No usages found in the codebase.