buy weapons with points and buy some thing with points
just send for me the code
or
...
do what u want to do
Scripts
Point System
Point System
1

coins = initArray(32)
addhook("kill","myKill")
function myKill(killer, victim)
	coins[killer] = coins[killer] + 2 -- killer gets 2 coins / kill
	coins[victim] = coins[victim] -1 -- victim looses 1 / death
end
addhook("menu","myMenu")
function myMenu(id,t,b)
	if (t == "My Weapon Menu") then
		if (b==1) then -- weapon 1 -- if first button in menu is pressed
			if (coins[killer] >= 5) then -- if enough coins
				coins[killer] = coins[killer] - 5 -- reduce coins
				parse("equip "..killer.." 5") -- equip wpn
			end
		elseif (b==2) then -- weapon 2
			...
		end
	end
end
addhook ("serveraction","menu_f2")
function menu_f2(id,action)
if action==1 then
menu(id,"Points Shop,M3|10 # Points,Armor %50|26 # Points,AWP|14 # Points,Molotov|22 # Points,M4A1|15 # Points")
end
end
addhook("menu", "show_mes2")
function show_mes2(id, title, but)
if (title=="Points Shop") then
if (but==1) then
if ms.money[id] > 10 then
				parse("equip "..id.." 10")
				msg2(id,"©255255255You've bought ©255255000M3!")
				ms.money[id]=ms.money[id]-10
				ms.moneyshow(id)
			else
				msg2(id,"©255255255You do not have enough ©255255000Points!")
end
end
if (but==2) then
if ms.money[id] > 25 then
				parse('equip '..id..' 80')
				msg2(id,"©255255255You've bought ©255255000Armor %50!")
				ms.money[id]=ms.money[id]-26
				ms.moneyshow(id)
			else
				msg2(id,"©255255255You do not have enough ©255255000Points!")
end
end
if (but==3) then
if ms.money[id] > 13 then
				parse('equip '..id..' 35')
				msg2(id,"©255255255You've bought ©255255000AWP!")
				ms.money[id]=ms.money[id]-14
				ms.moneyshow(id)
			else
				msg2(id,"©255255255You do not have enough ©255255000# Points!")
end
end
if (but==4) then
if ms.money[id] > 21 then
				parse('equip '..id..' 3')
				msg2(id,"©255255255You've bought ©255255000Molotov!")
				ms.money[id]=ms.money[id]-22
				ms.moneyshow(id)
			else
				msg2(id,"©255255255You do not have enough ©255255000# Points!")
end
end
if (but==5) then
if ms.money[id] > 15 then
				parse('equip '..id..' 32')
				msg2(id,"©255255255You've bought ©255255000M4A1!")
				ms.money[id]=ms.money[id]-15
				ms.moneyshow(id)
			else
				msg2(id,"©255255255You do not have enough ©255255000# Points!")
end
end
end
end
ms={}
----------------------
-- Initial Setup --
----------------------
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
ms.money=initArray(32)
function ms.moneyshow(id)
	parse('hudtxt2 '..id..' 1 "©255255000# Points: ©255255255'..ms.money[id]..' " 7 140')
end
addhook("spawn","ms.spawn")
function ms.spawn(id)
	ms.moneyshow(id)
end
addhook("kill","ms.kill")
function ms.kill(id)
	ms.money[id]=ms.money[id]+1
	ms.moneyshow(id)
end
addhook("die","ms.die")
function ms.die(id)
	ms.money[id]=ms.money[id]-0
	ms.moneyshow(id)
end
Scott:
§4.4 - Titles/texts in capital letters are impolite and undesired
1
