Forum
Scripts
Menu by Use Key
Menu by Use Key
10 replies
1

you mean USE key button?
and its possible by...
luahow?
http://cs2d.com/help.php?hookcat=all&hook=trigger#hookand
http://cs2d.com/help.php?hookcat=all&hook=menu#hook 1
2
3
4
5
6
2
3
4
5
6
addhook("use","shop")
function shop(id,event,data,x,y)
	if (x == 43 and y == 62) then
		menu(id,"Shop,Weapons,Equipment,Weapon Sets")
	end
end
you have to use the server action keys and hooks.
edit: dc why you post faster!
1
2
3
4
5
6
2
3
4
5
6
addhook("use","trigger")
function trigger(id,x,y)
	if (x == 43 and y == 62) then
		menu(id,"Shop,Weapons,Equipment,Weapon Sets")
	end
end
Im not sure if it will work :))
edited 1×, last 21.12.11 01:52:00 pm
Dovahkin: Well , it did work.
1

Offline