English Click on image then show menu

4 replies
Goto Page
To the start Previous 1 Next To the start
21.04.17 09:48:18 am
Up
Hidder
BANNED
Offline Off
Hello guys, i just need script if we clicked on HUDImage, we will get menu

HUDImage Example:
HUDImage = image('gfx/test.png',340,450,2)
Menu Example:
menu(id,"test,test")

Sry for my bad english
21.04.17 11:18:47 am
Up
Gaiyos
Security Supporter
Offline Off
You can use file cs2d VisualLua [v1.3] (59) as framework.
Maybe I will publish my OOP Visual Lua, but who knows.
IMG:http://i.imgur.com/YFN2ICK.png
IMG:http://i.imgur.com/TCHCwEk.png
IMG:http://i.imgur.com/i2Kif0O.png
21.04.17 11:26:07 am
Up
Bowlinghead
User
Offline Off
You will need cs2d lua cmd reqcld , cs2d lua cmd image , cs2d lua cmd menu at least.
You spawn your image with the image command.
You can check if someone shoots with the cs2d lua hook attack hook.
Then you check the mouse position with cs2d lua cmd reqcld and check if they are on the position of your image.
Share time limited free games here
21.04.17 11:53:46 am
Up
Joni And Friends
User
Offline Off
Use cs2d lua cmd reqcld to get mouse position and use cs2d lua hook attack to show the menu when you clicking on position of the button image area
Web | file File does not exist (15501) | file File does not exist (15463) | file cs2d [JAF] Adventure (18) | file File does not exist (15919)
21.04.17 01:26:14 pm
Up
Pagyra
User
Offline Off
... or you can equip player lasermineor mine to use cs2d lua hook buildattempt
So if your player equip knife or claw or wrench then you can use 2 hooks (cs2d lua hook attack or cs2d lua hook attack2 or cs2d lua hook buildattempt) for right or left click on screen
To the start Previous 1 Next To the start