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
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
function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=0 	end 	return array end HP = initArray(32) AP = initArray(32) addhook("spawn","spawn") function spawn(id) 	HP[id]=1000 	AP[id]=1000 end addhook("always","always") function always() 	for id = 1, 32 do 		if HP[id]>0 then 			parse("setmaxhealth "..id.." 250") 			parse('hudtxt2 '..id..' 1 "©000500000Health: '..HP[id]..'" 10 440') 		elseif HP[id]<1 then 			parse("sethealth "..id.." 1") 			parse('hudtxt2 '..id..' 1 "©000500000Health: 0" 10 440') 		end 		if AP[id]>0 then 			parse("setarmor "..id.." 200 ") 			parse('hudtxt2 '..id..' 2 "©000500000Armor: '..AP[id]..'" 10 460') 		elseif AP[id]<1 then 			parse("setarmor "..id.." 0 ") 			parse('hudtxt2 '..id..' 2 "©000500000Armor: 0" 10 460') 		end 	end end addhook("hit","hit") function hit(id,source,wpn,hpdmg,apdmg) 	if HP[id]>0 then 		HP[id]=HP[id]-hpdmg 	end 	if AP[id]>0 then 		AP[id]=AP[id]-apdmg 	end end