Jump to content

About ACL


Recommended Posts

Hi everyone

Well i have a qustion. How i can edit a ACL gropus

For example

Mods and smods cant set Money

then i need change acces to false, right?

Now, this is only to command? if i want disable the setMoney button in admin panel, How i can do?

something like this?

I need a little help. Please

Link to comment
if you disable the command, the button will disable too.

That's right, Lil Toady did this:

_guiCreateButton = guiCreateButton 
function guiCreateButton ( x, y, w, h, text, relative, parent, right ) 
    local button = _guiCreateButton ( x, y, w, h, text, relative, parent ) 
    if ( button ) then 
        if ( right ) then 
            right = "command."..right 
            if ( not hasPermissionTo ( right ) ) then 
                guiSetEnabled ( button, false ) 
                _guiprotected[right] = button 
            end 
        end 
        guiSetFont ( button, "default-bold-small" ) 
        return button 
    end 
    return false 
end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...