Jump to content

[HELP] /register


SanchezArz

Recommended Posts

Kind time of days has decided to be engaged in a script for МТА:SA DM

Also has put here in what at addition in a resource of a server of a code:

function registerPlayer ( source, commandName, password )
   -- Check if the password field is blank or not (only blank if they didnt enter one)
   if ( password ~= "" and password ~= nil ) then
       local accountAdded = addAccount( getPlayerName(source), password )
       if ( accountAdded ) then
           outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source )
       else
           outputChatBox ( "Error creating account, contact the server admin", source )
       end
   else
       outputChatBox ( "Error creating account, correct syntax: /register <password>", source )
   end
end
addCommandHandler ( "register", registerPlayer )

It works, but works together with standard registration.

By resource search which is responsible for registration - has not found out

HELP!

Link to comment
  • 2 weeks later...

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