Hub menu

Asked by Nick

How to make the context menu hub was available to certain levels of users?

Question information

Language:
English Edit question
Status:
Answered
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Toast (swetoast-deactivatedaccount) said :
#1

Not possible yet but feel free to request it on the bug tracker

Revision history for this message
Pirre (pierreparys) said :
#2

In your command table in the lua scripts you have a line in the bottom like "protected = is_op, this variable "is_op" is defined in access.lua.

You are able to make different is_*** levels there that you then can asign to your commands like

like first declaring

            local level_stats = 5

and then the function

            local function is_stats(c)
     return has_level(c, level_stats)
            end

gives you a new "level" is_stats that you can use to protect and show commands to all users with level 5 and above :)

Revision history for this message
Nick (games) said :
#3

I just want to remove all ADCH + + menu for ordinary users and make your own menu

Can you help with this problem?

Provide an answer of your own, or ask Nick for more information if necessary.

To post a message you must log in.