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!