Jump to content

Login Account Name


Karuzo

Recommended Posts

  • MTA Team

Not Tested:

  
addEventHandler ( 'onPlayerLogin', root, 
    function ( _, theCurrentAccount ) 
    local acc = getAccountName(theCurrentAccount) 
    setPlayerName ( source, acc ) 
end 
) 
function nickChangeHandler() 
        cancelEvent() 
end 
addEventHandler("onPlayerChangeNick", root, nickChangeHandler) 

Link to comment
  • MTA Team

With account functions you mean setAccountData?

Well that's maybe posible with:

  
--Storing a serial with 
setAccountData 
--Then on join use 
getAccounts--This will get a list of all accounts on the server 
--Then you can use 
getAccountData--To retrive the serial saved on that account 
  

Easier is XML functions tho.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...