itHyperoX Posted June 19, 2017 Posted June 19, 2017 can i edit the /login command? I want that, when i type /login but no acc name or pw then outputChatBox("use /login accname pw")
kikos500 Posted June 20, 2017 Posted June 20, 2017 local ErrorMessage = "Error: /login <user> <pass>" function login(p, _, user, pass) if not user or not pass then outputChatBox(ErrorMessage, p) end end addCommandHandler("login", login) its worth a try but the login command doesn't it normally do that when u don't type a username or password?
itHyperoX Posted June 20, 2017 Author Posted June 20, 2017 11 hours ago, kikos500 said: local ErrorMessage = "Error: /login <user> <pass>" function login(p, _, user, pass) if not user or not pass then outputChatBox(ErrorMessage, p) end end addCommandHandler("login", login) its worth a try but the login command doesn't it normally do that when u don't type a username or password? nothing...
DNL291 Posted June 21, 2017 Posted June 21, 2017 (edited) You can use the event "onPlayerCommand" with the command "login", and check if the player is logged in or not, so you assume that he couldn't log into their account. Not sure if that will work, but you can try it yourself. Edited June 21, 2017 by DNL291
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