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

Disable buymenu, but keep buy command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaBBa
Member
Join Date: Dec 2012
Old 01-12-2021 , 06:20   Disable buymenu, but keep buy command
Reply With Quote #1

Is it possible to disable buymenu, but trigger function on "buy" command

PHP Code:
register_clcmd("buy""shop_menu"

I tried but, even if buymenu is enabled, outside buyzone function is not being triggered
__________________

Last edited by SaBBa; 01-15-2021 at 04:12.
SaBBa is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 01-13-2021 , 14:10   Re: Disable buymenu, but keep buy command
Reply With Quote #2

You should use return PLUGIN_HANDLED in before closing shop_menu or some other way with BuyClose event.
AnimalMonster is offline
SaBBa
Member
Join Date: Dec 2012
Old 01-13-2021 , 16:30   Re: Disable buymenu, but keep buy command
Reply With Quote #3

nevermind, I fixed it
https://forums.alliedmods.net/showpo...1&postcount=18
this helped me a lot
__________________

Last edited by SaBBa; 01-15-2021 at 04:12.
SaBBa 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 17:04.


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