justn Posted April 15, 2014 Share Posted April 15, 2014 Hi, how do i get if the player has a color code ? and if he does, then remove it.. Thanks. Link to comment
.:HyPeX:. Posted April 15, 2014 Share Posted April 15, 2014 local NameWithoutString, Counts = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") if Counts == 0 then outputChatBox("No Color codes found!", player,255,255,255,true) outputChatBox("Your name without color codes: "..NameWithoutString, player,255,255,255,true) 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