English Menu!?

17 replies
Goto Page
To the start Previous 1 Next To the start
16.03.12 11:30:54 pm
Up
unlimited-
User
Offline Off
Hey guys, can please anyone help me, just show me how to do different Menus For Lua

Thanks
"Awp_grey Pro Player"
16.03.12 11:46:30 pm
Up
Jhony
User
Offline Off
user unlimited- has written:
Hey guys, can please anyone help me, just show me how to do different Menus For Lua

Thanks


Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
addhook("serveraction","lolz") -- act
function lolz(id,a) -- fuck yeah
if a == 1 then --f2
menu(id, "Settings,blablabla,blablalbal")
end
end

addhkook("menu","update")
function update(id,tittle,button) -- act == action
if tittle = "Settings" then
if button == 1 then
                              -- your act here
elseif button = 2 then 
                               -- your act here 
end
end


is example
16.03.12 11:50:55 pm
Up
unlimited-
User
Offline Off
user Jhony has written:
user unlimited- has written:
Hey guys, can please anyone help me, just show me how to do different Menus For Lua

Thanks


Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
addhook("serveraction","lolz") -- act
function lolz(id,a) -- fuck yeah
if a == 1 then --f2
menu(id, "Settings,blablabla,blablalbal")
end
end

addhkook("menu","update")
function update(id,tittle,button) -- act == action
if tittle = "Settings" then
if button == 1 then
                              -- your act here
elseif button = 2 then 
                               -- your act here 
end
end


is example


I know how to make simple menu, i wanna make differents style of menus! ty
edited 1×, last 08.03.18 04:48:14 am
"Awp_grey Pro Player"
17.03.12 01:24:06 am
Up
AbAeterno
User
Offline Off
Maybe you are searching for this: file cs2d VisualLua [v1.3] (59)
17.03.12 02:30:02 am
Up
Bowlinghead
User
Offline Off
I dont know what user unlimited- mean.

Do you mean this?
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("serveraction","lolz") -- act
function lolz(id,a) -- fuck yeah
if a == 1 then --f2
menu(id, "Settings,blablabla,blablalbal")
elseif a == 2 then --f3
menu(id,"Bla,bla") -- Note: You need a different name
end
end

addhkook("menu","update")
function update(id,tittle,button) -- act == action
if tittle == "Settings" then
if button == 1 then
-- your act here
elseif button == 2 then
-- your act here
end
elseif tittle == "Bla" then
if button == 1 then
-- your act here
end
end
end

God damn, I hate untabbed codes...
edited 1×, last 17.03.12 03:54:14 am
Share time limited free games here
17.03.12 04:04:02 am
Up
unlimited-
User
Offline Off
user Bowlinghead has written:
I dont know what user unlimited- mean.

Do you mean this?
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("serveraction","lolz") -- act
function lolz(id,a) -- fuck yeah
if a == 1 then --f2
menu(id, "Settings,blablabla,blablalbal")
elseif a == 2 then --f3
menu(id,"Bla,bla") -- Note: You need a different name
end
end

addhkook("menu","update")
function update(id,tittle,button) -- act == action
if tittle == "Settings" then
if button == 1 then
-- your act here
elseif button == 2 then
-- your act here
end
elseif tittle == "Bla" then
if button == 1 then
-- your act here
end
end
end

God damn, I hate untabbed codes...


No, I just wanna know how to make Different Styles Of Menus!
edited 1×, last 08.03.18 04:47:29 am
"Awp_grey Pro Player"
17.03.12 04:16:51 am
Up
Bowlinghead
User
Offline Off
Aaahhhh....
I understand.

You can't make other styles except the big menu.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
addhook("serveraction","lolz") -- act
function lolz(id,a) -- fuck yeah
if a == 1 then --f2
menu(id, "Settings@b,blablabla,blablalbal") -- Note
end
end

addhkook("menu","update")
function update(id,tittle,button) -- act == action
if tittle = "Settings" then
if button == 1 then
-- your act here
elseif button = 2 then
-- your act here
end
end
Share time limited free games here
17.03.12 05:13:38 am
Up
unlimited-
User
Offline Off
user Bowlinghead has written:
Aaahhhh....
I understand.

You can't make other styles except the big menu.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
addhook("serveraction","lolz") -- act
function lolz(id,a) -- fuck yeah
if a == 1 then --f2
menu(id, "Settings@b,blablabla,blablalbal") -- Note
end
end

addhkook("menu","update")
function update(id,tittle,button) -- act == action
if tittle = "Settings" then
if button == 1 then
-- your act here
elseif button = 2 then
-- your act here
end
end


Fixed :
More >


Thanks It Really Worked, Does we have any other Style?
"Awp_grey Pro Player"
17.03.12 08:16:11 am
Up
Alistaire
User
Offline Off
user unlimited- has written:
Does we have any other Style?


Invisible menu.
IMG:http://i.imgur.com/5zhwOTP.png
17.03.12 12:40:37 pm
Up
unlimited-
User
Offline Off
user Alistaire has written:
user unlimited- has written:
Does we have any other Style?


Invisible menu.


Dhaaa... And how to do it?! Nana
"Awp_grey Pro Player"
17.03.12 12:41:53 pm
Up
Alistaire
User
Offline Off
menu(id, 'menuname@i,button1|comment,button2,button3)
IMG:http://i.imgur.com/5zhwOTP.png
17.03.12 12:50:00 pm
Up
Suprise
BANNED
Offline Off
user Alistaire has written:
menu(id, 'menuname@i,button1|comment,button2,button3)


Wow! I dont saw anything! Idi0t menu the invisible!
17.03.12 12:50:33 pm
Up
unlimited-
User
Offline Off
user Alistaire has written:
menu(id, 'menuname@i,button1|comment,button2,button3)


Fixed:
Code:
1
2
3
4
5
6
addhook("serveraction","Oo")
function Oo(id,a)
if a == 1 then
menu(id, "menuname@i,button1|comment,button2,button3") 
end
end


Like, its really Invisible?! Oo I just Cant See Nothing... But When i press F2 I cant change Weapon like when we open a normal menu...

So why we need buton names?
Code:
1
button1|comment,button2,button3


Oo
"Awp_grey Pro Player"
17.03.12 01:04:52 pm
Up
Yates
Reviewer
Offline Off
He's trolling you, there is no way you can change how the menu looks like (You can only make it bigger with @b) other than in your own settings. Where you can only change the colour.

So stop being idiots, why in the world would DC add an invisible menu!?
17.03.12 01:08:20 pm
Up
Alistaire
User
Offline Off
user Yates has written:
why in the world would DC add an invisible menu!?


For passwords and to register when people click a number key.
IMG:http://i.imgur.com/5zhwOTP.png
17.03.12 01:09:47 pm
Up
unlimited-
User
Offline Off
user Yates has written:
He's trolling you, there is no way you can change how the menu looks like (You can only make it bigger with @b) other than in your own settings. Where you can only change the colour.

So stop being idiots, why in the world would DC add an invisible menu!?


Quote:
But When i press F2 I cant change Weapon like when we open a normal menu...


Test it on your server and answer me!
"Awp_grey Pro Player"
18.03.12 09:21:04 am
Up
Happy eyes
User
Offline Off
Invisible menu exists, also bigger menu, menu with disabled buttons and menus with spaces. Check lua command menu
cs2d lua cmd menu
18.03.12 10:05:47 am
Up
Alistaire
User
Offline Off
user Happy eyes has written:
Invisible menu exists, also bigger menu, menu with disabled buttons and menus with spaces. Check lua command menu
cs2d lua cmd menu


Thanks for repeating everything already posted here, mister obvious.
IMG:http://i.imgur.com/5zhwOTP.png
To the start Previous 1 Next To the start