HunT Posted May 26, 2011 Share Posted May 26, 2011 Hi guyz.Please help me for remove for ever this function/button. This. Please guys Link to comment
BinSlayer1 Posted May 26, 2011 Share Posted May 26, 2011 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
karlis Posted May 26, 2011 Share Posted May 26, 2011 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
HunT Posted May 26, 2011 Author Share Posted May 26, 2011 Fixed change the true/false aTab1.Admin = guiCreateButton ( 0.71, 0.305, 0.27, 0.04, "Give admin rights", true/false, aTab1.Tab, "setgroup" ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now