nameforthisforum Posted November 25, 2020 Posted November 25, 2020 Hi! I want to make an OLX chat, and i have some problems. This is my script: function Advertismente(thePlayer, commandName, ...) local players = getElementsByType("player") local playerName = getPlayerName ( thePlayer ) local chatContent = {...} for index, player in ipairs ( players ) do outputChatBox( "#757374[ #6600ffO#00ff00L#ff6600X #757374]" .. playerName.. ": " ..table.concat ( chatContent, " "), player, 0, 190, 40) end end addCommandHandler( "olx", Advertismente ) Look how it is on server: https://imgur.com/a/BaFibii And i want to be like this: https://imgur.com/a/4k1fFQm How can i solve it? I'm new in scripting. Thanks a lot
Tekken Posted November 25, 2020 Posted November 25, 2020 outputChatBox("text with color code here", player, red, green, blue, true) The true at the end enables the color codes within string. When you in trouble with a function always give a check on the wiki. 1
nameforthisforum Posted November 25, 2020 Author Posted November 25, 2020 1 hour ago, Tekken said: outputChatBox("text with color code here", player, red, green, blue, true) The true at the end enables the color codes within string. When you in trouble with a function always give a check on the wiki. Thanks a lot!!! You saved me !!!!!
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