Added additional client checks before spawning on spawn all command.
This commit is contained in:
parent
99373d5720
commit
222d13643a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user