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
addhook('serveraction','serveraction_buymenu')
function serveraction_buymenu(id,act)
	if act==1 then
		menu(id,'Buy guns,Weapon')
	end
end
addhook('menu','menu_buymenu')
function menu_buymenu(id,title,buton)
	if title=='Buy guns' then
		if buton==1 then
			menu(id,'Weapon,Deagle|$100,M3|$100,M4A1|$100,AWP|$100')
		end
	end
	if title=='Weapon' then
		if buton==1 then
			if player(id,'money')>=100 then
				parse('setmoney '..id..' '..player(id,'money')-100)
				parse('equip '..id..' 3')
				parse('setweapon '..id..' 3')
			else
				msg('©255000000Money is low@C')
			end
		elseif buton==2 then
			if player(id,'money')>=100 then
				parse('setmoney '..id..' '..player(id,'money')-100)
				parse('equip '..id..' 10')
				parse('setweapon '..id..' 10')
			else
				msg('©255000000Money is low@C')
			end
		elseif buton==3 then
			if player(id,'money')>=100 then
				parse('setmoney '..id..' '..player(id,'money')-100)
				parse('equip '..id..' 32')
				parse('setweapon '..id..' 32')
			else
				msg('©255000000Money is low@C')
			end
		elseif buton==4 then
			if player(id,'money')>=100 then
				parse('setmoney '..id..' '..player(id,'money')-100)
				parse('equip '..id..' 35')
				parse('setweapon '..id..' 35')
			else
				msg('©255000000Money is low@C')
			end
		end
	end
end