If the zombie team is empty, one of survivors will be switched to zombie randomly.
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("second","checkzombie") function checkzombie() for _,id in ipairs(player(0,"team2")) local zombies=player(0,"team1") if zombies<=0 then parse("maket "..id) break end end end
It's not like I imagine well, it's not randomly. May someone give me the code?