Jump to content

Login/register command


Recommended Posts

Posted
function preventCommandSpam(commandName) 
if commandName == "login" or commandName == "register" or commandName == "logout" then 
cancelEvent() 
end 
end 
addEventHandler("onPlayerCommand", root, preventCommandSpam)

 

Posted

Another way (using acl.xml rights):

<right name="command.login" access="false"></right>
<right name="command.register" access="false"></right>

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