
addhook("menu", "mymenu")
function shit(id, sht)
if(sht==1) then
menu(id,"New Shop,Go to Items,Go to Armors")
end
end
function mymenu(id,a,b)
if a=="New Shop" then
if b==1 then
menu(id,"Go to Items,Gas Grenade,Flare,Rpg,He")
end
elseif a == "Go to Item" then
local mon = player(id,"money")
if b==1 and mon>=500 then
parse("equip "..id.." 72")
parse("setmoney "..id.." "..mon-500)
elseif mon<500 then
msg("©000255255You don't have money to buy this")
end
elseif a == "Go to Item" then
local mon = player(id,"money")
if b==2 and mon>=600 then
parse("equip "..id.." 54")
parse("setmoney "..id.." "..mon-600)
elseif mon<600 then
msg("©000255255You don't have money to buy this")
end
elseif a == "Go to Item" then
local mon = player(id,"money")
if b==3 and mon>=700 then
parse("equip "..id.." 47")
parse("setmoney "..id.." "..mon-700)
elseif mon<700 then
msg("©000255255You don't have money to buy this")
end
local mon = player(id,"money")
if b==4 and mon>=900 then
parse("equip "..id.." 51")
parse("setmoney "..id.." "..mon-900)
elseif mon<700 then
msg("©000255255You don't have money to buy this")
end
addhook("serveraction","lick")
addhook("nenu","mynenu")
function lick(id, lck)
if(lck==1) then
menu(id,"Armors,Power Armor/500$")
end
end
function mynenu(id,c,p)
if c=="Armors" then
if p==1 then
menu(id,"Go to Armors,Power Armor,Rpg,He!")
end
elseif c == "Go to Armors" then
local mon = player(id,"money")
if p==1 and mon>=500 then
parse("equip "..id.." 72")
parse("setmoney "..id.." "..mon-500)
elseif mon<500 then
msg("©000255255You don't have money to buy this")
end
end
end