Forum

> > CS2D > Scripts > Actions
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Actions

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Actions

Cereal Guy
User Off Offline

Zitieren
How to create f2, f3, f4 menu in game?
Wath is the code please?
1× editiert, zuletzt 11.06.12 20:57:27

alt Re: Actions

Alistaire
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
addhook('serveraction', 'functionblabla')
addhook('menu', 'menubla')

function functionblabla(id, action)
	if action == 1 then --f2
		menu(id, 'title, option1, option2')
	elseif action == 2 then --f3
		etc
	elseif action == 3 then --f4
		etc
	end
end

function menubla(id, title, buton)
	if title == 'title' then
		if buton == 1 then
			parse('equip '..id..' 1') --equip usp
		elseif buton == 2 then
			etc
		end
	end
end

alt Re: Actions

omg
User Off Offline

Zitieren
u didnt specify anything other than "its a serveraction menu", so deal with it hes not wrong after all
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht