Best-Killer Posted December 8, 2016 Share Posted December 8, 2016 is there way to getPlayerName From playeraccountname ? if Yes, How ? what functions i have to use Link to comment
Best-Killer Posted December 8, 2016 Author Share Posted December 8, 2016 i won't get account name i want get PlayerName Link to comment
Savannah Posted December 8, 2016 Share Posted December 8, 2016 You can't get their name but you could store their name when they login For example: addEventHandler("onPlayerLogin",root, function(_,playerAcc) setAccountData(playerAcc,"name",getPlayerName(source)) end ) then get it elsewhere: local playerName = getAccountData(playerAcc,"name") Link to comment
Sticmy Posted December 8, 2016 Share Posted December 8, 2016 is getAccountName(getPlayerAccount("name")) or getPlayerFromName("name") Link to comment
Addlibs Posted December 8, 2016 Share Posted December 8, 2016 getPlayerName(getAccountPlayer(getAccount("accountname"))) This will only work if the player is logged in onto that account. Link to comment
KariiiM Posted December 8, 2016 Share Posted December 8, 2016 Make a check if the player is logged in then get his account name, otherwise you will need to store it the player name somewhere each time logged / left the game and get it later. 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