Forum

> > CS2D > Servers > dont know hoh to add server menu
Forums overviewCS2D overview Servers overviewLog in to reply

English dont know hoh to add server menu

1 reply
To the start Previous 1 Next To the start

old Re: dont know hoh to add server menu

Bowlinghead
User Off Offline

Quote
Link off-topic

Link 2 off-topic

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- UNTESTET
function your_menu(id)
menu (id,"Titel,Name|Describtion,Name|Describtion")
end

addhook("serveraction","thisisnotlong")
function thisisnotlong(id,b)
if b==1 then -- 1= F2; 2=F3; 3=F4
your_menu(id)
end
end

addhook("menu","thisisnotlongparttwo")
function thisisnotlongparttwo(id,title,b)
if title=="Titel" then
if b==1 then
-- Here the function if you press the first in your Menu
end
if b==2 then
-- Here the function if you press the second in your Menu
end
end
end
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview