Forum

> > CS2D > Scripts > Menu inside a menu?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Menu inside a menu?

16 replies
To the start Previous 1 Next To the start

old closed Menu inside a menu?

J4x
User Off Offline

Quote
Hello users, can anyone help me with this? I want to make a menu inside another menu, but I have no idea how.. Can someone give a base script please?

old Re: Menu inside a menu?

J4x
User Off Offline

Quote
I want something simple, like if a press a button on the menu it opens another menu.

old Re: Menu inside a menu?

Cure Pikachu
User Off Offline

Quote
Oh, that. Something like this, then.
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("menu","_menu")
function _menu(id,title,button)
	if title == "Menu 1" then
		if button == 1 then
			menu(id,"Menu 2,1")
		end
	end
	if title == "Menu 2" then
		if button == 1 then
			menu(id,"Menu 1,1")
		end
	end
end

old Re: Menu inside a menu?

EP
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
addhook("serveraction","a")
function a(id,a)
	if a == 1 then
		menu(id,"Example menu,Go to another menu")
	end
end

addhook("menu","b")
function b(id,t,b)
	if t == "Example menu" then
		if b == 1 then
			menu(id,"Another menu,Click here to msg -Lol-")
		end
	elseif t == "Another menu" then
		if b == 1 then
			msg("Lol")
		end
	end
end

old Re: Menu inside a menu?

Avo
User Off Offline

Quote
@user J4x: If you don't want public fails and "humiliations" like this, remember there are private messages.

old Re: Menu inside a menu?

omg
User Off Offline

Quote
except in gaming
why r we still posting on this anyway? didnt u figure out how to make a menu by now?

old Re: Menu inside a menu?

Avo
User Off Offline

Quote
Please, stop. I hoped this thread would be left with user J4x's beautiful sentecion:

Asking for help is never humilation or fail.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview