Raised This Month: $2 Target: $400
 0% 

What do these do?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 05-14-2020 , 08:12   What do these do?
Reply With Quote #1

i was looking at a plugin and i saw these two :
Code:
get_user_button(id)     get_user_oldbutton(id)
what do these 2 do?

thanks!
__________________
Grovliom is offline
elmedin
Senior Member
Join Date: Nov 2013
Old 05-14-2020 , 08:14   Re: What do these do?
Reply With Quote #2

We cant know if we dont see the plugin, share the plugin
elmedin is offline
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
Old 05-14-2020 , 10:29   Re: What do these do?
Reply With Quote #4

pev_button (eq: EV_INT_button) = Buttons a client is pressing in the current frame.
pev_oldbuttons (eq: EV_INT_oldbuttons) = Buttons a client has pressed (released) in the last frame.

Generally both functionalities are hooked via FM_CmdStart and FM_CmdStop, afaik. Tho take in mind that both functions return a bitwise value, which means you can hook multiple buttons in this case.

https://www.amxmodx.org/api/hlsdk_co...buttons-values

Last edited by thEsp; 05-14-2020 at 10:35.
thEsp is offline
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 05-14-2020 , 17:57   Re: What do these do?
Reply With Quote #5

Ok, i got it. Thank you all!
__________________
Grovliom is offline
Reply


Thread Tools
Display Modes

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:15.


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