Fixed bug in zr_spawn.
This commit is contained in:
parent
d8dd91c0f5
commit
4335828d3d
|
@ -76,10 +76,10 @@ public Action:Command_Respawn(client, argc)
|
||||||
new team;
|
new team;
|
||||||
for (new x = 0; x < tcount; x++)
|
for (new x = 0; x < tcount; x++)
|
||||||
{
|
{
|
||||||
team = GetClientTeam(x);
|
team = GetClientTeam(targets[x]);
|
||||||
if (team == CS_TEAM_T || team == CS_TEAM_CT)
|
if (team == CS_TEAM_T || team == CS_TEAM_CT)
|
||||||
{
|
{
|
||||||
ZR_DebugPrintToConsole(x, "ZSpawn: Spawned player");
|
if (GetConVarBool(gCvars[CVAR_DEBUG])) ZR_DebugPrintToConsole(targets[x], "ZSpawn: Spawned player");
|
||||||
RespawnPlayer(targets[x]);
|
RespawnPlayer(targets[x]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user