1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ggwpn = {45,48,49,30,38,20,21,10,4,50}
parse("sv_gamemode 1")
parse("mp_randomspawn 1")
parse("mp_infammo 1")
addhook("startround", "start")
function start()
	for pl in players() do
		pl.level = 1
		pl.kills = 0
		pl.weapons = ggwpn[1]
	end
end
function join(pl)
	pl.level = 1
	pl.kills = 0
end
addhook("join", join)
function spawn(pl)
	if pl.level < #ggwpn then
		pl:strip(50)
	end
	return ggwpn[pl.level]
end
addhook("spawn", spawn)
function kill(pl)
	pl.kills = pl.kills + 1
	if pl.kills >= 3 then
		pl.kills = 0
		pl.level = pl.level + 1
		if pl.level >= #ggwpn then
			msg{pl.name, " has won the game!", color = {0,255,0},
				center= true}
			parse("restart")
		else
			pl:equip(ggwpn[pl.level])
			pl:setweapon(ggwpn[pl.level])
			pl:strip(ggwpn[pl.level-1])
		end
	end
	if pl.level < #ggwpn then
		pl:msg{"Level:", pl.level, "Kills:", pl.kills}
	end
end
addhook("kill", kill)
function ret1()
	return 1
end
function walkover(pl, iid, type)
	if type >= 61 and type <= 68 then
		return 0
	end
	return 1
end
addhook("buy", "ret1")
addhook("drop", "ret1")
addhook("die", "ret1")