Back to TPG

TPG.Protection.IsInSafezone

S🏷️ Protection

Part of TPG namespace

TPG.Protection.IsInSafezone(ply)
View on GitHub|gamemode/player/sv_protection.lua:32-44
📋 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

NameTypeDescription
plyPlayer

Returns

TypeDescription
boolean

Examples

No examples available.

Used In

No usages found in the codebase.