Hi, i run a 16vs server and before the update from Feb. 5th this code killed every SI PZ and then granted all of them (max. 8 players) a tank. (Well, in l4d1 it worked like a charm, but in L4D2 it only spawns 6 tanks at most, dunno why this difference happens). However, point is that since the update the code generates TONS of ADDITIONAL bot tanks now:
Code:
for (new i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i))
{
continue;
}
if (GetClientTeam(i) == 3) //check if player is infected
{
FakeClientCommand(i, "kill"); //if yes, kill player
FakeClientCommand(i, "z_spawn tank auto"); // make player a tank
}
}
AFTER the update: additional tanks get spawned, all bot tanks. They do not attack, just stand on same spot. Instead of 8 player tanks I now have these + additional 15 bot tanks

I havenīt changed any code or installed a new plugin, itīs just since the l4d2 update. What can I do to only give ingame players a tank, without spawning additional bot tanks ? Some extra check before actually spawning the tanks ?