Jump to content

[HELP]Chat


Recommended Posts

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 :) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...