xXMADEXx Posted November 29, 2012 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 ) The Ultimate Lua Tutorial! | MTA PHP SDK
Anderl Posted November 30, 2012 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. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
myonlake Posted November 30, 2012 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 If I helped you, please click the like button on the right Thanks!
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