'LinKin Posted August 16, 2013 Share Posted August 16, 2013 Hello, I've been trying to make it so that the chatbox gets the player's nick without the #RRGGBB hex color code. But I've not been successful with it. Here's the line I'm working on outputChatBox(tostring(getPlayerName(source)).. "#ff0000's vehicle has been blown for being AFK [#ABCDEF"..afkCount.."/3#ff0000]",getRootElement(),255,0,0,true) As a result, the chatbox shows the player's nick colour based on the current hex code the player is wearing. But I don't want that. I wanna make it so that it doesn't matter when the player is wearing a hex color code with his nick, the chatbox's message displays in RED color. Thanks, Linkin. Link to comment
DNL291 Posted August 16, 2013 Share Posted August 16, 2013 outputChatBox(getPlayerName(source).. "'s vehicle has been blown for being AFK ["..afkCount.."/3]",getRootElement(),255,0,0) Link to comment
Guest Guest4401 Posted August 16, 2013 Share Posted August 16, 2013 outputChatBox(getPlayerName(source):gsub("#%x%x%x%x%x%x","").. "'s vehicle has been blown for being AFK [#ABCDEF"..afkCount.."/3#ff0000]",root,255,0,0,true) 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