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
----------Menu Open with F2-------
if sample==nil then sample={} end
classesopt={}
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
scriptclassmenu=initArray(32)
function scriptclassesmenu(id)
menu(id,"Select your Class,Killer|AK+M4+Medic Armor,Pwner|AK+M4+Medic armor+Kevlar+Helm,Destroyer|RPG+Grenade Launcher+Medic Armor,Haxer|Secret")
end
addhook("serveraction","class")
function class(id,actionbutton)
	if (actionbutton==1) then
		getaction1(id)
	end
end
----------------------------
addhook("team","classesopt")
function classesopt(id,team)
if (team>0) then
scriptclassesmenu(id)
end
end
-----------------------------------------------------------------
addhook("menu","Classes")
function classesoptsel(id,menu,sel)
	if (menu=="SMD Classes") then
		if (sel>=0 and sel<=4) then
			scriptclassmenu[id]=sel
if (player(id,"health")>0) then
				parse('killplayer '..id)
			end
end
end
end
-------------Spawn only Melee------------
addhook("spawn","nowep")
function nowep(id)
	return 1
end
----------------------------------------------------
---------------------------
function getaction1(id)
	menu(id,"SDM Classes,Pwner,Killer,Destroyer,Haxer")
end
---------------------------
addhook("menu","menuaction")
function menuaction(id,m,b)
	if m=="SDM Classes" then
		if b==1 then ------Pwner--------
			parse('equip '..id..' 32 ')
			parse('equip '..id..' 82 ')
			parse('equip '..id..' 30 ')
		elseif b==2 then ---Killer---
			parse('equip '..id..' 34 ')
			parse('equip '..id..' 30 ')
			parse('equip '..id..' 59 ')
			parse('equip '..id..' 82 ')
		elseif b==3 then ------destroyer--------
			parse('equip '..id..' 49 ')
			parse('equip '..id..' 47 ')
			parse('equip '..id..' 82 ')
		elseif b==4 then ------Haxer--------
			parse('equip '..id..' 20 ')
			parse('equip '..id..' 21 ')
			parse('equip '..id..' 22 ')
			parse('setmaxhealth '..id..' 250 ')
			parse('equip '..id..' 47 ')
			parse('equip '..id..' 81 ')
			parse('equip '..id..' 41 ')
			parse('equip '..id..' 40 ')
			parse('equip '..id..' 82 ')
		end
	end
end
addhook("second","heal")
function heal(id)
	parse('setmaxhealth '..id..' 5 ')
end