Jump to content

Disable /login /register


Rob0

Recommended Posts

Posted

I wrote my own log in system that of course uses

logIn(source,account,pass) 

addAccount(account,pass) 

removeAccount(account) 

and a spiders web of xml but being unfamiliar with MTAs native /register /login system I did not disable these and am having trouble with more seasoned users presuming this is our method to, which causes our system to never log them in. Our solution is to delete the /priv/ folder of course which fixes it. But how do I disable the commands /register and /login so they never bother me again?

Posted

This should work, at least it does for me:

function onPlayerCommand(command) 
  
    if command == "logout" or command == "login" then cancelEvent() return end 
  
end 
addEventHandler("onPlayerCommand", root, onPlayerCommand) 

Same for other commands.

Posted

good solutions thanks i'll try both... but i did not find the ACL commands for log or reg? what exactly should i do there.

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