Raised This Month: $51 Target: $400
 12% 

lock button from origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mikka
Member
Join Date: Dec 2018
Old 06-21-2022 , 13:58   lock button from origin
Reply With Quote #1

Hi, how to lock button?

VV HAM_SUPERCEDE not working

RegisterHam(Ham_Use, "func_button", "ButtonUse", 1);

public ButtonUse(iEnt, id, iActivator) {
return HAM_SUPERCEDE;
}
Mikka is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 06-21-2022 , 14:54   Re: lock button from origin
Reply With Quote #2

Not tested

Code:
// Should be registered as a Pre
RegisterHam(Ham_Use, "func_button", "ButtonUse", 0);
public ButtonUse(iEnt, id, iActivator, use_type, Float:value) {     SetHamParamInteger(use_type, 0);     return HAM_HANDLED; }

https://github.com/s1lentq/ReGameDLL.../extdef.h#L112
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Mikka
Member
Join Date: Dec 2018
Old 06-21-2022 , 15:18   Re: lock button from origin
Reply With Quote #3

not working
and how to run function ButtonUse with native or command?

Last edited by Mikka; 06-21-2022 at 17:31.
Mikka is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 06-22-2022 , 09:53   Re: lock button from origin
Reply With Quote #4

* Execute params: ExecuteHam(Ham_Use, this, idcaller, idactivator, use_type, Float:value);
jimaway is offline
Mikka
Member
Join Date: Dec 2018
Old 06-22-2022 , 12:04   Re: lock button from origin
Reply With Quote #5

Thanks
Mikka is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-22-2022 , 17:33   Re: lock button from origin
Reply With Quote #6

Quote:
Originally Posted by Mikka View Post
Hi, how to lock button?

VV HAM_SUPERCEDE not working

RegisterHam(Ham_Use, "func_button", "ButtonUse", 1);

public ButtonUse(iEnt, id, iActivator) {
return HAM_SUPERCEDE;
}
Didn't you think maybe it wasn't working because you were hooking it as a Post?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 05:05.


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