ZSpawn: Exclude SourceTV client from auto zspawn.
This commit is contained in:
parent
35d7190ba2
commit
b824095b82
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user