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
my = {}
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
my.players = initArray(32)
function my.classT(id)
menu(id, "Terrorist Classes!, Killer | weapon, Noob | lol")
end
function my.classCT(id)
menu(id, "CT Classes!, Police, cop, soldier")
end
addhook("team","my.team")
function my.team(id, team, look)	
if (team==1) then
my.classT(id)
elseif (team==2) then
my.classCT(id)
end
end
addhook("menu", "my.menu")
function my.menu(id, title, button)
if(title == "Terrorist Classes!") then
if(button <= 4 and button >=0) then
my.players[id] = button
if (player(id,"health")>0) then
parse("killplayer "..id)
end
end
elseif(title == "CT Classes!") then
if(button <=4 and button >=0) then--number of entries in the menu
my.players[id] = button
if (player(id,"health")>0) then
parse("killplayer "..id)
end
end
end
end
addhook("spawn","my.spawn")
function my.spawn(id)
if(player(id,"team")==1) then --terror
if(my.players[id]==1) then --killer
parse ("setmaxhealth "..id.." 150")
return "";
elseif(my.players[id]==2) then
return "";
end
elseif(player(id,"team")==2) then
if(my.players[id]==1) then --Police
parse ("setmaxhealth "..id.." 100")
return "25";
elseif(my.players[id]==2) then
return "81,24";
end
end
end