English Hook "usebutton"

5 replies
Goto Page
To the start Previous 1 Next To the start
05.09.17 06:38:31 pm
Up
Anti
User
Offline Off
is it possible to make, when a player tries to press a button, it does not work? Return Values is none
05.09.17 07:53:36 pm
Up
Yates
Reviewer
Offline Off
You can cs2d lua hook use cs2d lua hook use instead
06.09.17 12:46:15 pm
Up
Gaiyos
Security Supporter
Offline Off
So you have to use cs2d lua hook usebutton and then use cs2d cmd trigger command to execute entities at a map.

NOTE
You have to leave empty buttons.
IMG:http://i.imgur.com/YFN2ICK.png
IMG:http://i.imgur.com/TCHCwEk.png
IMG:http://i.imgur.com/i2Kif0O.png
06.09.17 04:44:59 pm
Up
Anti
User
Offline Off
My english still sucks i meant: player tries to use button with some existing trigger, and this trigger should not work. ban on using buttons
06.09.17 04:50:28 pm
Up
Yates
Reviewer
Offline Off
Try and use the CS2D.com help page - you obviously know how to script or you would be asking for more help. Now learn how to RTFM.

cs2d lua hook triggerentity

Check the cs2d lua cmd entity that is on that location to see if it's a button or not.
06.09.17 05:21:18 pm
Up
Anti
User
Offline Off
Thank you. I did it
To the start Previous 1 Next To the start