AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disable buymenu, but keep buy command (https://forums.alliedmods.net/showthread.php?t=329896)

SaBBa 01-12-2021 06:20

Disable buymenu, but keep buy command
 
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

AnimalMonster 01-13-2021 14:10

Re: Disable buymenu, but keep buy command
 
You should use return PLUGIN_HANDLED in before closing shop_menu or some other way with BuyClose event.

SaBBa 01-13-2021 16:30

Re: Disable buymenu, but keep buy command
 
nevermind, I fixed it
https://forums.alliedmods.net/showpo...1&postcount=18
this helped me a lot


All times are GMT -4. The time now is 14:14.

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