Improved handling of invalid handle errors (maybe not fixed). Added a debug switch and a log function. Added debug messages on zspawn. Fixed zr_spawn not spawning spectactors (when using @all).
This commit is contained in:
@ -73,9 +73,15 @@ public Action:Command_Respawn(client, argc)
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
new team;
|
||||
for (new x = 0; x < tcount; x++)
|
||||
{
|
||||
RespawnPlayer(targets[x]);
|
||||
team = GetClientTeam(client);
|
||||
if (team == CS_TEAM_T || team == CS_TEAM_CT)
|
||||
{
|
||||
ZR_DebugPrintToConsole(x, "ZSpawn: Spawned player");
|
||||
RespawnPlayer(targets[x]);
|
||||
}
|
||||
}
|
||||
|
||||
return Plugin_Handled;
|
||||
|
Reference in New Issue
Block a user