Jump to content

/login


Recommended Posts

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?

Link to comment
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...

Link to comment
  • Moderators

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 by DNL291
Link to comment

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