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

4 replies
Goto Page
To the start Previous 1 Next To the start
Up
PlayerQ
User
Offline Off
hello all how can i put the lua :(?
plese teach me and thank you all
if you know how
sorry for my bad engilsh
04.10.13 09:24:37 pm
Up
hunter139
User
Offline Off
Code:
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)
IMG:http://i33.servimg.com/u/f33/18/41/08/82/untitl14.jpg

Admin/mod comment:

Quote removed. You just doubled his post. /user useigor
04.10.13 11:32:57 pm
Up
Rainoth
Moderator
Offline Off
@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.
05.10.13 01:09:45 am
Up
pbeloto
User
Offline Off
'-' , use
Code:
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
05.10.13 01:47:20 am
Up
PlayerQ
User
Offline Off
ops thank you all very very thank ~~~
To the start Previous 1 Next To the start