
adminlist = {21825}
addhook("buy")
function("buy,menu")
addhook("menu","playermenu")
function playermenu(id...,title,buton)
if title=="player...id... menu" then
if buton==1 then
menu(id,"buy times")
elseif buton=2 then
menu("id,spawn item,pistols,shotguns,rifles,laser,super armor,back")
setmoney ("player,id,-8000")
-------------------------------------------------------
This and the error
LUA ERROR: sys/lua/ads.lua:4: '<name>' expected near '('
edited 1×, last 21.04.11 08:25:57 pm