From e4b208a27ac094a178f00ea9c8864534e5410a3c Mon Sep 17 00:00:00 2001 From: zaCade Date: Fri, 20 Sep 2019 12:18:42 +0200 Subject: [PATCH] ZSpawn: Fix slight bug? This shouldve probably been here from the start, just fixing this cause its my oversight. --- src/zr/zspawn.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index eb4234e..dd16edd 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -122,6 +122,12 @@ ZSpawnOnClientDeath(client) */ ZSpawnOnClientClassPost(client) { + // If client isn't on a team, then stop. + if (!ZRIsClientOnTeam(client)) + { + return; + } + // If zspawn is disabled, then stop. new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]); if (!zspawn)