Raised This Month: $32 Target: $400
 8% 

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
Location: Bruh
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
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2020 , 08:16   Re: What do these do?
Reply With Quote #3

https://www.amxmodx.org/api/engine_s...et_user_button
https://www.amxmodx.org/api/engine_s...user_oldbutton
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
thEsp
BANNED
Join Date: Aug 2017
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



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 03:47.


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