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
function array(m,v)
local a = {}
for i = 1, m do
a[i] = v
end
return a
end
gold = array(32,0)
addhook("kill","kills")
function kills(id)
gold[id]=gold[id]+1
end
addhook("ms100","Gold")
function Gold(id)
for _,id in pairs (player(0, "table")) do
parse('hudtxt2 '..id..' 0 "\169255195100Gold: '..gold[id]..' " 400 308')
	 end
end
addhook("say","help")
function help(id,txt)
	if txt=="!help" then
parse("sv_msg2 "..id.." say !buy to buy items at the cost of gold")
return 1
	elseif txt=="!buy" then
menu(id,"Special Items,Supply Drop|Cost-2,Airstrike|Cost-5,Bombing Run|Cost-8")
return 1
	end
end
addhook("menu","buyM1")
function buyM1(id,title,button)
if title == "Special Items" then
if button == 1 then
parse("equip "..id.." 76")
end
end
end
I haven't made menu buy s**t, i think you can do by yourself..