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
armusing = {}
for i = 1,32 do
armusing[i] = 0
end
addhook("serveraction","action_b")
function action_b(id,act)
if act == 2 then
menu(id,"Armor Menu,Kevlar,Kevlar + helm,Stealth Suit,Light Armor,Armor|50,Drop my armor,Remove armor")
end
end
addhook("menu","menu_b")
function menu_b(id,men,butt)
if men == "Armor Menu" then
if butt == 1 then
eq_a(id,57)
armusing[id] = 57
end
if butt == 2 then
eq_a(id,58)
armusing = 58
end
if butt == 3 then
eq_a(id,84)
armusing[id] = 84
end
if butt == 4 then
eq_a(id,79)
armusing[id] = 79
end
if butt == 5 then
eq_a(id,80)
armusing[id] = 80
end
if butt == 6 then
if armusing[id] >= 1 then
parse('spawnitem '..armusing[id]..' '..player(id,'tilex')..' '..player(id,'tiley'))
parse('setarmor '..id..' 0')
armusing[id] = 0
else
msg2(id,'©255000000You not have an armor!')
end
end
if butt == 7 then
parse('setarmor '..id..' 0')
end
end
end
function eq_a(id,itema)
parse('equip '..id..' '..itema..' ')
end