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
function menu_la
menu (id,"Menü Name,Bild1")
end
addhook ("serveraction","act")
function act (id,b)
	if b==1 then
	menu_la(id)
	end
end
addhook ("menu","menu_lala")
function menu_lala(id,title,btn)
	if title=="Menü Name" then
	global money = player(id,"money")
		if btn==1 then
			if money>=1500
		freeimage(id)
		id1=image("gfx/[PFAD]",1,1,200+id)
		parse("setmoney "..id.." "..(player(id,"money") - 1500))
			end
		end
	end
end
-- Ich hoffe das konnte dir helfen!