ZSpawn: Exclude SourceTV client from auto zspawn.

This commit is contained in:
zaCade 2019-03-25 00:54:28 +01:00
parent 35d7190ba2
commit b824095b82
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ public Action:EventPlayerTeam(Handle:event, const String:name[], bool:dontBroadc
ImmunityOnClientTeam(index);
// Fire post joinclass command. (Bots dont joinclass, so we fire it from here instead.)
if (IsFakeClient(index))
if (IsFakeClient(index) && !IsClientSourceTV(index))
CreateTimer(0.1, CommandPlayerClassPost, index);
return Plugin_Handled;

View File

@ -124,7 +124,7 @@ ZSpawnOnClientClassPost(client)
{
// Is auto zspawn enabled and is the client death?
new bool:autozspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN_AUTO]);
if (autozspawn && !IsPlayerAlive(client))
if (autozspawn && !IsPlayerAlive(client) && !IsClientSourceTV(client))
{
// Get our zspawn condition.
new ZSpawnCondition:condition = GetZSpawnCondition();