Raised This Month: $ Target: $400
 0% 

detect if client hold and release button


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-16-2013 , 16:15   Re: detect if client hold and release button
Reply With Quote #1

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.
__________________
fysiks is online now
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode