StefanKsV Posted May 29, 2015 Share Posted May 29, 2015 Hey, I got one admin lvl script, There's a command /setlvl [user] (2-11) But there's a problem, it's not working. I can only set lvl from panel/resource/Manage acl. I want to give them rights typing /setlvl blabla 11 and boom.. done! I Would be happy if someone helps me to fix it. Thanks! Link to comment
Walid Posted May 29, 2015 Share Posted May 29, 2015 Hey, I got one admin lvl script, I can give lvls by typing the command /setlvl [user] (2-11)But there's a problem. I can only set lvl from panel/resource/Manage acl. I want to give them rights typing /setlvl blabla 11 and boom.. done! I Would be happy if someone helps me to fix it. Thanks! You don't need to stop the server just use aclReload () Link to comment
StefanKsV Posted May 29, 2015 Author Share Posted May 29, 2015 Hey, I got one admin lvl script, I can give lvls by typing the command /setlvl [user] (2-11)But there's a problem. I can only set lvl from panel/resource/Manage acl. I want to give them rights typing /setlvl blabla 11 and boom.. done! I Would be happy if someone helps me to fix it. Thanks! You don't need to stop the server just use aclReload () The resource works good, it types '' ACL: [Mk1]Stefan^ added [Mk1]RealFix to admin group: 11 "" But when I go to Manage Acl and look at lvl 11 users I see that he's not added I tried ''refresh'' on console and he's still not added Link to comment
Walid Posted May 29, 2015 Share Posted May 29, 2015 The resource works good, it types '' ACL: [Mk1]Stefan^ added [Mk1]RealFix to admin group: 11 "" But when I go to Manage Acl and look at lvl 11 users I see that he's not added I tried ''refresh'' on console and he's still not added I told you need to use aclReload() because refresh can't reload your ACL.xml file. Example function reload (player, command ) local reloadAcl = aclReload() if ( reloadAcl ) then outputChatBox ( "ACL was successfully reloaded.", player, 255, 0, 0 ) end end addCommandHandler ( "reload", reload ) Link to comment
StefanKsV Posted May 29, 2015 Author Share Posted May 29, 2015 The resource works good, it types '' ACL: [Mk1]Stefan^ added [Mk1]RealFix to admin group: 11 "" But when I go to Manage Acl and look at lvl 11 users I see that he's not added I tried ''refresh'' on console and he's still not added I told you need to use aclReload() because refresh can't reload your ACL.xml file. Example function reload (player, command ) local reloadAcl = aclReload() if ( reloadAcl ) then outputChatBox ( "ACL was successfully reloaded.", player, 255, 0, 0 ) end end addCommandHandler ( "reload", reload ) I reloaded and tried the command again Link to comment
StefanKsV Posted May 29, 2015 Author Share Posted May 29, 2015 Nvm Fixed The script had no premission to the ACL.Meta file Thx for the support Walid! Link to comment
Walid Posted May 29, 2015 Share Posted May 29, 2015 Nvm Fixed The script had no premission to the ACL.Meta file Thx for the support Walid! np. 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