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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
--[[
	Classes Script
	Made from MC_Bowlinghead for chocolate2d
	Problems? Ask me -> USGN 51028
]]--
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
classes = initArray(32)
-- Serveraction
addhook("serveraction","classesepic")
function classesepic(id,b)
	if b==1 then
		menu(id,"Classes,Light Soldier|Attack Specialists,Heavy Soldier|Defend your Base,Bomber|Fire in the hole,Sniper|Make distance attack,Spy|The Agent,Enginner|Make your Base,Medic|Help with Claw,Tank|Exterminator,Anti Tank|Anti-Tank System")
	end
end
-- Menu
addhook("menu","menus")
function menus(id,t,b)
	if t=="Classes" then
		if b>=1 and b<=9 then
			classes[id]=b
			if player(id,"health")>=1 then
				parse("killplayer "..id)
			end
		end
	end
end
-- Spawn
addhook("spawn","spawns")
function spawns(id)
	if classes[id]==1 then
		parse ("setmaxhealth "..id.." 100")
		parse ("speedmod "..id.." 2")
		return "32,30,3,51,52,79";
	elseif classes[id]==2 then
		parse ("setmaxhealth "..id.." 150")
		parse ("speedmod "..id.." -8")
		return "10,40,4,51,69,80";
	elseif classes[id]==3 then
		parse ("setmaxhealth "..id.." 125")
		return "41,38,4,51,73,72";
	elseif classes[id]==4 then
		parse ("setmaxhealth "..id.." 125")
		parse ("setarmor "..id.." 125")
		return "35,34,5,51,52,53";
	elseif classes[id]==5 then
		parse ("setmaxhealth "..id.." 80")
		parse ("speedmod "..id.." 15")
		return "84,21,20,4";
	elseif classes[id]==6 then
		parse ("setmaxhealth "..id.." 120")
		parse ("setarmor "..id.." 120")
		return "74,53,3,77";
	elseif classes[id]==7 then
		parse ("setmaxhealth "..id.." 100")
		parse ("setarmor "..id.." 100")
		parse ("speedmod "..id.." 5")
		return "78";
	elseif classes[id]==8 then
		parse ("setmaxhealth "..id.." 200")
		parse ("speedmod "..id.." -15")
		return "47,51,52,73,53,3,76,80";
	elseif classes[id]==9 then
		parse ("setmaxhealth "..id.." 250")
		parse ("speedmod "..id.." -15")
		return "49,76";
	end
end
-- Heal hit
addhook("hit","healhit")
function healhit(id,source,weapon,hpdmg,apdmg)
	if classes[source]==7 then
		if weapon==78 then
			parse("sethealth "..id.." "..player(id,"health") +10)
		end
	end
end
-- Dont collect!
addhook("walkover","nowalkover")
function nowalkover(id,iid,type)
	if (type>=61 and type<=68) then
		return 0
	end
	return 1
end
-- Dont drop!
addhook("drop","nodrop")
function nodrop(id)
	msg2(id,"©255000000You can't drop!@C")
	return 1
end
-- No dead drop!
addhook("die","nodie")
function nodie()
	return 1
end
-- No Buy!
addhook("buy","nobuy")
function nobuy(id)
	msg2(id,"©255000000You can't buy!@C")
	menu(id,"Classes,Light Soldier|Attack Specialists,Heavy Soldier|Defend your Base,Bomber|Fire in the hole,Sniper|Make distance attack,Spy|The Agent,Enginner|Make your Base,Medic|Help with Claw,Tank|Exterminator,Anti Tank|Anti-Tank System")
	return 1
end