Sticmy Posted June 16, 2017 Share Posted June 16, 2017 Hi i would like to know how i can do that a player can put more than 3 letters in their names, i do not know if i can explain myself. Please help me i' am sorry for my English, i do not know so much Link to comment
Dimos7 Posted June 16, 2017 Share Posted June 16, 2017 if understand corectly you want a player name be .3 characters then you need string.len setPlayerName Link to comment
itHyperoX Posted June 16, 2017 Share Posted June 16, 2017 Or you can make your custom using setElementData, getElementData. for /name addCommandHandler("name", function(player,cmd,...) local name = table.concat({ ... }, " ") if #name > 0 then setElementData("player.nick",name) end end ) -- for get getelementData(player,"player.nick") or "some error" Link to comment
Sticmy Posted June 17, 2017 Author Share Posted June 17, 2017 Why use elementData? 9 hours ago, TheMOG said: Or you can make your custom using setElementData, getElementData. for /name addCommandHandler("name", function(player,cmd,...) local name = table.concat({ ... }, " ") if #name > 0 then setElementData("player.nick",name) end end ) -- for get getelementData(player,"player.nick") or "some error" Using these functions can make the player to enter a server with 3 characteristics do not enter that must have more than 3 characteristics? 10 hours ago, Dimos7 said: if understand corectly you want a player name be .3 characters then you need string.len setPlayerName 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