From 4335828d3dc4e9c74205f6241f9d8122099f7dd5 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 31 Oct 2008 18:57:14 +0100 Subject: [PATCH] Fixed bug in zr_spawn. --- src/zr/commands.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zr/commands.inc b/src/zr/commands.inc index 23cd62f..64d4ff3 100644 --- a/src/zr/commands.inc +++ b/src/zr/commands.inc @@ -76,10 +76,10 @@ public Action:Command_Respawn(client, argc) new team; for (new x = 0; x < tcount; x++) { - team = GetClientTeam(x); + team = GetClientTeam(targets[x]); 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]); } }