Generating a large number of special infections at one time will cause the server to lag, how to optimize
Similar code
PHP Code:
for (new i = 0; i < 16; i++)
{
switch(GetRandomInt(0, 5))
{
case 0:
FakeClientCommand(client, "z_spawn_old smoker auto");
case 1:
FakeClientCommand(client, "z_spawn_old boomer auto");
case 2:
FakeClientCommand(client, "z_spawn_old hunter auto");
case 3:
FakeClientCommand(client, "z_spawn_old spitter auto");
case 4:
FakeClientCommand(client, "z_spawn_old jockey auto");
case 5:
FakeClientCommand(client, "z_spawn_old charger auto");
}
}
-google translate
-my English is not good