detect if client hold and release button
Hello i want to detect if client hold and release(unhold) a button , as en exemple , i want to know if this player pressed "S" backwards button... i want to know easiest way xD
|
Re: detect if client hold and release button
You can't detect a specific key, but you can detect actions ( Jump, crouch ... ).
<engine> + <fakemeta>: PHP Code:
|
Re: detect if client hold and release button
You cannot detect if a player has pressed a particular keyboard key. You can detect if they use a command that is sent to the server. So, to detect if they send the backwards command, you will use IN_DUCK constant. Look for threads that use other IN_* constants to see who they are used with pev buttons. See hlsdk_const.inc for all the IN_* constants.
|
| All times are GMT -4. The time now is 23:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.