Added additional client checks before spawning on spawn all command.

This commit is contained in:
richard 2008-11-15 19:11:36 +01:00
parent 99373d5720
commit 222d13643a

View File

@ -354,9 +354,12 @@ public ZRInfectHandle(Handle:zr_infect_menu, MenuAction:action, client, slot)
ZRSpawnAll(client) ZRSpawnAll(client)
{ {
for (new c = 1; c < maxclients; c++) for (new c = 1; c < maxclients; c++)
{
if (IsClientConnected(c) && IsClientInGame(c))
{ {
ZSpawn(c); ZSpawn(c);
} }
}
ZRAdminMenu(client); ZRAdminMenu(client);
} }