Untested code.
Countdown:
Create a variable and let it count down with a time hook
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
timeLeft = 10 -- set the timer on 10 seconds
-- note to reset this variable each round start
addhook("second","sec")
function sec()
	 -- decrement the timer every second
	timeLeft = timeLeft - 1
	-- check wether your timer has counted to zero
	if (timeLeft <= 0) then
		-- if it is then call another function
		InfectRandom()
		TeleportInfected()
	end
end
3 Infections after countdown:
Choose 3 random player and put them in T team
1
2
3
4
5
6
7
function InfectRandom()
	rndPlayer = 0
	for i = 1,3 do
		rndPlayer = player(0,"tableliving2")[math.random(1,#player(0,"tableliving2"))]
		parse("maket "..rndPlayer)
	end
end
Teleport all Infecteds:
Teleport all Terrorists with
setpos
1
2
3
function TeleportInfecteds()
	-- you shall get it done by yourself
end