1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if default==nil then default={settings={["Zombie Time"]=10},colors={["red]="\169255000000"}} end
if bvs==nil then bvs={} end
function bvs.start()
	for id=1,32 do
		if player(id,"exists") then
			parse("makect "..id)
		end
	end
	for _,survivors in ipairs(player(0,"team2")) do
		local ammount=#player(0,"team2")
		local target=math.random((player(0,"team2")[1]),ammount)
		local time=default.settings["Zombie Time"]*1000
		timer(time,"parse","maket "..target)
		msg(""..default.colors["red"].."First zombie is "..player(target,"name"))
		if ammount>1 then
			local ammount=#player(0,"team2")
			local target=math.random(((player(0,"team2")[1]),ammount)
			local time=default.settings["Zombie Time"]*1000
			timer(time,"parse","maket "..target)
			msg(""..default.colors["red"].."Second zombie is "..player(target,"name"))
		end
	end
end
addhook("startround","bvs.start")