Siberhecy Posted March 14, 2018 Share Posted March 14, 2018 As the title, what is the default login system for default server? I deleted all resource load from mtaserver.conf but still /login /register works.. Thanks. Link to comment
Noki Posted March 14, 2018 Share Posted March 14, 2018 Those commands are built-in to MTA. If you want to remove the ability for people to use them, you can do so by adding these lines in acl.xml under the Everyone and Default groups: <right name="command.login" access="false"></right> <right name="command.register" access="false"></right> I may be wrong and you only need to add these in one of the aforementioned groups, but to be safe, add them in both. 1 Link to comment
MIKI785 Posted March 14, 2018 Share Posted March 14, 2018 Not entirely true, MTA server only includes the login command. register is actually provided by the admin resource. Link to comment
koragg Posted March 15, 2018 Share Posted March 15, 2018 Try this: https://wiki.multitheftauto.com/wiki/OnPlayerCommand It has a string parameter which is the command name. So just check if the executed command is either login or register and use cancelEvent() Not tested though, just an idea 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