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

Solved AccessForMenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-30-2020 , 05:50   AccessForMenu
Reply With Quote #1

hi. how are you. Can Someone Make Small Example For Me like This:
Quote:
1-vipmenu
2-playermenu
If user Don't Have Access I want menu be like this:
1-Vipmenu[You don't have access]
Thank You.

Last edited by ho83; 12-01-2020 at 05:24.
ho83 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-30-2020 , 07:21   Re: AccessForMenu
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=284324
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-30-2020 , 07:32   Re: AccessForMenu
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
This is not i want
ho83 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-30-2020 , 08:22   Re: AccessForMenu
Reply With Quote #4

That does exactly what you explained.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-30-2020 , 09:24   Re: AccessForMenu
Reply With Quote #5

i can make menu, But i can give it access like this. thats the problem.
ho83 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-30-2020 , 09:27   Re: AccessForMenu
Reply With Quote #6

If you can do both, I don't see a problem. The plugin does what you want.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-30-2020 , 10:03   Re: AccessForMenu
Reply With Quote #7

i give up.
ho83 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-01-2020 , 00:49   Re: AccessForMenu
Reply With Quote #8

Perhaps you should try searching and reading a little bit. If you know how to make a menu then you're probably familiar with the menu tutorial. This tutorial has an example of how to disable options based on conditions that you specify (this method is called "callbacks").

In the callback function, it can be as simple as a single access check and returning either ITEM_DISABLED or ITEM_IGNORE based on the the access check.
__________________
fysiks is offline
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 23:03.


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