SanchezArz Posted December 12, 2009 Share Posted December 12, 2009 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
AeroXbird Posted December 25, 2009 Share Posted December 25, 2009 The resource responsible for registers is admin u should search in commands.xml in the admin resource to disable that command Link to comment
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