Jump to content

enter nicki [help


yce

Recommended Posts


I want to make a script of 
when player enters in server 
for him to stay with name of account

 

exemple: I enter the server 
and record the account /register yce 1234

I want to stay with the name I put : yce

 

Please help me
Link to comment
function accounts(_, pAccount) 
  local accName = getAccountName(pAccount) 
  setPlayerName(source, accName) 
end 
addEventHandler("onPlayerLogin", root, accounts) 

addEventHandler("onPlayerChangeNick", root, 
  function(oldNick, newNick) 
    cancelEvent() 
    end
) 

 

Link to comment
  • 4 months later...

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...