Raised This Month: $ Target: $400
 0% 

question about button detections


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 05-16-2016 , 14:25   question about button detections
Reply With Quote #1

public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3]


Can this be used on any button/function?
checkster is offline
abgar
Senior Member
Join Date: Apr 2015
Old 05-18-2016 , 07:25   Re: question about button detections
Reply With Quote #2

Yep, just about

An example below:
PHP Code:
bool bDucking[MAXPLAYERSCUSTOM];

public 
Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    if(
IsPlayerAlive(client))
    {
        
bDucking[client]=(buttons IN_DUCK)?true:false;
    }
    return 
Plugin_Continue;


Last edited by abgar; 05-18-2016 at 07:26.
abgar is offline
Requiesta
Senior Member
Join Date: May 2012
Location: Texas
Old 05-18-2016 , 11:00   Re: question about button detections
Reply With Quote #3

I believe there are a few buttons that don't transmit server-side but I have no idea what they are and if I did I wouldn't tell anyone
__________________
YouTuber, Modder, Accountant, and somehow I still enjoy programming after all that.

Check out my YouTube Channel.
Requiesta is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 05-19-2016 , 14:33   Re: question about button detections
Reply With Quote #4

Thanks for the responses, but I found a better way to get this, +- jump related. Since I'm not sure I really wont come with details atm.
checkster is offline
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 10:31.


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