Forum

> > CS2D > Scripts > how can press E buy house and f2 = menu?
Forums overviewCS2D overview Scripts overviewLog in to reply

English how can press E buy house and f2 = menu?

4 replies
To the start Previous 1 Next To the start

old Re: how can press E buy house and f2 = menu?

hunter139
User Off Offline

Quote
1
2
3
4
5
6
addhook("serveraction","mymemu")
function mymenu (id,act)
	if act == 1 then
		menu (id,"Menu title,button1,button2,button3,button4,button5,button6,button7,button8,button9")
	end
end

for more info about the menu (link)

Admin/mod comment

Quote removed. You just doubled his post. /user useigor

old Re: how can press E buy house and f2 = menu?

Rainoth
Moderator Off Offline

Quote
@user hunter139: You made it in serveraction, not use. And he wants to do it with X Y (I assume) because he mentions buying a house.

Nobody's going to do that for you. You could try searching file archive for house scripts or something like that.

old Re: how can press E buy house and f2 = menu?

pbeloto
User Off Offline

Quote
'-' , use
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
addhook("use","_use")
function _use(id,event,data,x,y)
if x == 1 and y == 1 then -- you position have buton
menu(id,"Menu Config, Buton 1,Buton 2|Laser,Buton 3|Laser,Buton 4|Laser,Buton 5|Laser,Buton 6|Laser,Buton 7|Laser,Buton 8|Laser,Buton 9|Laser")
end
end

addhook("menu","_menu")
function _menu(id,title,buton)
if tible == "Menu Config" then
if buton == 1 then -- Buton 1 Menu
parse (" COMAND ") or COMAND -- here use you comand buton 1
elseif buton == 2 then
parse ("equip "..id.." 45")
elseif buton == 3 then 
parse ("equip "..id.." 45")
elseif buton == 4 then 
parse ("equip "..id.." 45")
elseif buton == 5 then 
parse ("equip "..id.." 45")
elseif buton == 6 then 
parse ("equip "..id.." 45")
elseif buton == 7 then 
parse ("equip "..id.." 45")
elseif buton == 8 then 
parse ("equip "..id.." 45")
elseif buton == 9 then
parse ("equip "..id.." 45")
end
end
end
edited 1×, last 05.10.13 01:29:58 am

Admin/mod comment

Quote removed. You just doubled the first post. /user useigor
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview