Need help with the get_user_button(id)
Anyone can tell me how to use get_user_button(id) !
I want to hook drop key when the current weapon is knife ! or can some one give me a example ! Thx !!:up: |
Re: Need help with the get_user_button(id)
get_user_button() gives you the button that a player is pressing.
See hlsdk_const.inc : Code:
#define IN_ATTACK (1<<0) |
Re: Need help with the get_user_button(id)
Thx, I know this !may be my en is so poor! I want to player press twice drop key to hook some, because I have seen a plugin can do it ! but the author did not show the code out !
so i try to write a code that like his plugin! |
Re: Need help with the get_user_button(id)
You don't need button for this.
PHP Code:
|
Re: Need help with the get_user_button(id)
Quote:
your code just once ! |
Re: Need help with the get_user_button(id)
PHP Code:
|
Re: Need help with the get_user_button(id)
thx!!
+K |
| All times are GMT -4. The time now is 17:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.