Jump to content

[Help]Remove Give admin right


HunT

Recommended Posts

Open: server\mods\deathmatch\resources\admin\client\gui\admin_main.lua

Search for this keyword: "Give admin rights" .

Under this line: aTab1.Admin = guiCreateButton ( 0.71, 0.305, 0.27, 0.04, "Give admin rights", true, aTab1.Tab, "setgroup" )

Add another line where you type: guiSetVisible(aTab1.Admin, false)

Should do the trick on removing the button alone.

Of course there are other ways, you could even remove the function that creates the button, but I'm unsure whether it'll break anything else in the code afterwards :) This way, you'll surely break nothing

Link to comment

you can also use

guiSetEnabled (atab1.Admin,false) 

so theres no bad looking empty spot

or you could just remove the right in acl.(then you would need also remove the right to change the acl)

but its a bad decision to give admin at all for ppl u don't trust

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...