Forum

> > CS2D > Scripts > Actions
Forums overviewCS2D overview Scripts overviewLog in to reply

English Actions

5 replies
To the start Previous 1 Next To the start

old Actions

Cereal Guy
User Off Offline

Quote
How to create f2, f3, f4 menu in game?
Wath is the code please?
edited 1×, last 11.06.12 08:57:27 pm

old Re: Actions

Alistaire
User Off Offline

Quote
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

old Re: Actions

omg
User Off Offline

Quote
u didnt specify anything other than "its a serveraction menu", so deal with it hes not wrong after all
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview