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
addhook ("serveraction","playermenu")
function playermenu(id,action)
if action == 2 then
playmenu(id)
end
end
function playmenu(id)
menu(id,"player menu,speed|20 speedmod,health|sets helth to 30,weapon|menu,say !broadcast(text)|broadcast")
end
addhook ("menu","playerfunc")
function playerfunc(id,menu,sel)
if (menu=="player menu") then
if sel>=1 and sel<=9 then
playermenu(id)
end
end
if sel==1 then
parse("speedmod "..id.." 20")
end
if sel==2 then
parse("sethealth "..id.." 30")
end
if sel==3 then
weaponmenu(id)
end
end
function weaponmenu(id)
menu(id,"weapon menu,p228,m3,tmp,tactical shield,he")
end
addhook ("menu","wpnfunc")
function wpnfunc(id,menu,wpn)
if (menu=="weapon menu") then
if wpn>=1 and wpn<=9 then
weaponmenu(id)
end
end
if wpn==1 then
parse("strip "..id.." 1")
parse("strip "..id.." 2")
parse("strip "..id.." 3")
parse("strip "..id.." 5")
parse("equip "..id.." 4")
end
if wpn==2 then
parse("strip "..id.." ..weapon")
parse("equip "..id.." 10")
end
if wpn==3 then
parse("strip "..id.." ..weapon")
parse("equip "..id.." 21")
end
if wpn==4 then
parse("strip "..id.." ..weapon")
parse("equip "..id.." 41")
end
if wpn==5 then
parse("equip "..id.." 51")
end
end