SondTheAnime Posted January 28, 2019 Share Posted January 28, 2019 Como eu boto pro jogador ter que digitar algum no chat pra falar com a tag que eu botar Exemplo:/Fr Olá a todos **Chat** [Fora de Roleplay]SondTheAnime:Olá a todos Link to comment
Tommy. Posted January 28, 2019 Share Posted January 28, 2019 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
SondTheAnime Posted January 30, 2019 Author Share Posted January 30, 2019 Queria tambem um Anonimo Exemplo:A pessoa digitar /anonimo ai aparecer no chat sem o nome dela só a tag e o texto SondTheAnime:/anonimo Quero uma arma **Chat** [Anonimo]Quero uma arma Link to comment
Other Languages Moderators Lord Henry Posted January 30, 2019 Other Languages Moderators Share Posted January 30, 2019 Faz a mesma coisa só que muda o nome da função, o comando e o outputChatBox. Link to comment
DNL291 Posted January 30, 2019 Share Posted January 30, 2019 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
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