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
addhook("serveraction","buyweapons")
function buyweapons(id,act)
if act==1 then
menu(id,"Buy,Buy Advance Weapons")
	end
end
addhook("menu","buymenu")
function buymenu(id,title,buton)
if title=="Buy" then
if buton==1 then
menu(id,"Buy,Laser|5000$,Flamethrower|4000$,Rocket Launcher|3500$,Grenade Launcher|3000$,Light Armor|2200$,Armor|2500$")
end
if title=="Buy" then
if buton==1 then
	if player(id,"money")>=5000 then
		parse("equip "..id.." 45")
		msg2(id,"©000255000You successfully bought Laser!@C")
		parse("setmoney "..id.." "..(player(id,"money")-5000))
	else
		msg2(id,"©255000000You have insufficient funds!@C")
end
elseif buton==2 then
	if player(id,"money")>=4000 then
		parse("equip "..id.." 46")
		msg2(id,"©000255000You successfully bought Flamethrower!@C")
		parse("setmoney "..id.." "..(player(id,"money")-4000))
	else
		msg2(id,"©255000000You have insufficient funds!@C")
end
elseif buton==3 then
	if player(id,"money")>=3500 then
		parse("equip "..id.." 48")
		msg2(id,"©000255000You successfully bought Rocket Launcher!@C")
		parse("setmoney "..id.." "..(player(id,"money")-3500))
	else
		msg2(id,"©255000000You have insufficient funds!@C")
end
elseif buton==4 then
	if player(id,"money")>=3000 then
		parse("equip "..id.." 49")
		msg2(id,"©000255000You successfully bought Grenade Launcher!@C")
		parse("setmoney "..id.." "..(player(id,"money")-3000))
	else
		msg2(id,"©255000000You have insufficient funds!@C")
end
elseif buton==5 then
	if player(id,"money")>=2200 then
		parse("equip "..id.." 79")
		msg2(id,"©000255000You successfully bought Light Armor!@C")
		parse("setmoney "..id.." "..(player(id,"money")-2200))
	else
		msg2(id,"©255000000You have insufficient funds!@C")
end
elseif buton==6 then
	if player(id,"money")>=2500 then
		parse("equip "..id.." 80")
		msg2(id,"©000255000You successfully bought Five Seven!@C")
		parse("setmoney "..id.." "..(player(id,"money")-2500))
	else
		msg2(id,"©255000000You have insufficient funds!@C")
end
end
end