Jump to content

Modificar o chat


Recommended Posts

function chat (source, cmd, ...)			
	local mens = { ... }	 
	local textMens = nil
	for k,v in pairs(mens) do
		textMens = textMens..' '..v
	end		

	outputChatBox("#FEFEFE[Fora de Roleplay] "..getPlayerName(source).."#FFFFFF: "..textMens, root, 255, 255, 255, true)
end
addCommandHandler("fr", chat)

 

Link to comment

Tente:


addCommandHandler( "anonimo", function ( source, cmd, ... )			
	local message = #{...} > 0 and table.concat({...}," ") or nil
	if message then
		outputChatBox("#FEFEFE[Anônimo]#FFFFFF: "..message, root, 255, 255, 255, true)
	else
		outputChatBox( "[/"..cmd.."]: Digite uma mensagem!", source, 230, 20, 20 )
	end
end )

 

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...