Forum

> > CS2D > Scripts > Shop menu + slot
Forums overviewCS2D overview Scripts overviewLog in to reply

English Shop menu + slot

No replies
To the start Previous 1 Next To the start

old Shop menu + slot

Precel97
User Off Offline

Quote
Hi! I was searching script with slot +
Example : menu(shop,inventory,blaballba)
When i buy something in shop like candy then candy go to inventory. Help plz

1
2
3
4
5
6
7
8
9
10
11
12
13
my_menu = "Title" -- global declaration
-- assuming that you have totable/string.split

-- Menu builder
addhook("say", "menu_cmds")
function menu_cmds(id, txt)
     txt = txt:split()
     if txt[1] == "!addslot" then
          my_menu = my_menu .. "," .. txt:sub(#"!addslot")
     elseif txt[1] == "!showmenu" then
          menu(id, my_menu)
     end
end
This is script from lee. It's work but it's not that what i need.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview