1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
addhook('startround','_startround',-22)
function _startround()
	if math.random(1,100) <= 20 then
		local weaponList = {30,3} -- here enter all weapons that can be spawned for Terrorists
		local howManyDoors = 0 -- in Func_DynWall set name for doors like: prison_door1, prison_door2 ... prison_door10
		local customDoors = {'example','test'} -- here just enter names of Func_DynWall that another than prison_door
		
		for _, id in pairs(player(0,'team1living')) do
			parse('spawnitem '..weaponList[math.random(1,#weaponList)]..' '..player(id,'tilex')..' '..player(id,'tiley'))
		end
		for i = 1, howManyDoors do
			parse('trigger prison_door'..i)
		end
		for _, i in pairs(customDoors) do
			parse('trigger '..i)
		end
		msg("\169255000000Freeday, kill em' all @C")
	end
end