ZSpawn: Fix slight bug?

This shouldve probably been here from the start, just fixing this cause its my oversight.
This commit is contained in:
zaCade 2019-09-20 12:18:42 +02:00
parent d4ae0358e5
commit e4b208a27a

View File

@ -122,6 +122,12 @@ ZSpawnOnClientDeath(client)
*/ */
ZSpawnOnClientClassPost(client) ZSpawnOnClientClassPost(client)
{ {
// If client isn't on a team, then stop.
if (!ZRIsClientOnTeam(client))
{
return;
}
// If zspawn is disabled, then stop. // If zspawn is disabled, then stop.
new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]); new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]);
if (!zspawn) if (!zspawn)