Jump to content

enter nicki [help


yce

Recommended Posts

Posted


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
Posted

:(

 

function account (source)

local setPlayerName = getAccountName ( thePlayer )
end
addEventHandler("onPlayerLogin", account)

Posted
function accounts(_, pAccount) 
  local accName = getAccountName(pAccount) 
  setPlayerName(source, accName) 
end 
addEventHandler("onPlayerLogin", root, accounts) 

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

 

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