diff --git a/src/zr/infect.inc b/src/zr/infect.inc index 81cd77e..3ea10bd 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -698,6 +698,7 @@ public Action:InfectMotherZombie(Handle:timer) // Infect players. new infected = 0; + new infected_human_to_zombie_failed = 0; while (infected < mothercount) { // Infect one of the main candidates. @@ -759,6 +760,15 @@ public Action:InfectMotherZombie(Handle:timer) { infected++; } + else + { + infected_human_to_zombie_failed++; + if (infected_human_to_zombie_failed > 100) + { + break; + //doing testround on dev server would cause script time execution, hence this was added. + } + } } else {