xXMADEXx Posted November 29, 2012 Share Posted November 29, 2012 Hey guys, i am trying to make a command so if someone type /accountinfo that it will outputChatBox there username and password, i got this script below --server function accountinfo ( username, password ) local account = getAccount ( username, password ) if (account == false) then outputChatBox("#00FF00Login-System: Your Username is: #FFFF00" .. username .. "#00FF00, And your Password is: #FFFF00" .. password .. "#00FF00!",255,255,255,true ) elseif (account == true) then outputChatBox("#00FF00Login-System: Your Username is: #FFFF00" .. username .. "#00FF00, And your Password is: #FFFF00" .. password .. "#00FF00!",255,255,255,true ) end end addCommandHandler("accountinfo", accountinfo ) Link to comment
Anderl Posted November 30, 2012 Share Posted November 30, 2012 This code makes totally no sense. addCommandHandler( "accountinfo", function( player, command ) if ( isGuestAccount( getPlayerAccount( player ) ) ) then outputChatBox( "You are not logged in!", player, 255, 0, 0, false ); return false; end outputChatBox( "Your account's username is: " .. getAccountName( getPlayerAccount( player ) ), player, 255, 255, 255, false ); end ) I guess you can't get account passwords with default MTA account system. Link to comment
myonlake Posted November 30, 2012 Share Posted November 30, 2012 If you try to get the password, you will pretty much get their hashed password. But I don't think it is possible to fetch it 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