Raised This Month: $202 Target: $400
 50% 

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 , 07: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 05:12.
SaBBa is online now
AnimalMonster
Senior Member
Join Date: May 2020
Old 01-13-2021 , 15: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.
__________________
A little of scripting makes a MIRACLE.
=============================================
DeclineD#7346 // for everyone who wants a friend..
AnimalMonster is offline
SaBBa
Member
Join Date: Dec 2012
Old 01-13-2021 , 17: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 05:12.
SaBBa is online now
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 14:39.


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