yce Posted November 2, 2018 Share Posted November 2, 2018 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
Dimos7 Posted November 2, 2018 Share Posted November 2, 2018 (edited) getAccountName setPlayerName onPlayerLogin onPlayerChangeNick Edited November 2, 2018 by Dimos7 Link to comment
yce Posted November 2, 2018 Author Share Posted November 2, 2018 you can help me do ? I'm new to scripting pls help Link to comment
Dimos7 Posted November 2, 2018 Share Posted November 2, 2018 No try yourself make it if you can't then hire someone do it for you Link to comment
yce Posted November 2, 2018 Author Share Posted November 2, 2018 function account (source) local setPlayerName = getAccountName ( thePlayer ) end addEventHandler("onPlayerLogin", account) Link to comment
Dimos7 Posted November 2, 2018 Share Posted November 2, 2018 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
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