Forum

> > CS2D > Servers > dont know hoh to add server menu
ForenübersichtCS2D-Übersicht Servers-ÜbersichtEinloggen, um zu antworten

Englisch dont know hoh to add server menu

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: dont know hoh to add server menu

Bowlinghead
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Servers-ÜbersichtCS2D-ÜbersichtForenübersicht