Part of the script:
1
2
3
4
2
3
4
sample.classes.class=initArray(32) function sample.classes.classmenu(id) 	menu(id,"Something,Somebody1,Somebody2,Somebody3,Somebody4,(Somebody5)")	 end
Thanks for advices.
sample.classes.class=initArray(32) function sample.classes.classmenu(id) 	menu(id,"Something,Somebody1,Somebody2,Somebody3,Somebody4,(Somebody5)")	 end
addhook("menu","a") function a(id,t,b) 	if t == "Something" then 		if b == 5 then 			if player(id,"money") >=4999 then 				parse("setmoney "..id.." "..player(id,"money")-5000) 			end 		end 	end end