SondTheAnime Posted January 28, 2019 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
Tommy. Posted January 28, 2019 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) DID I HELP YOU? ________________________________________________________________________ ム MY STEAM ________________________________________________________________________ MY SITE www.tommy.br.com
SondTheAnime Posted January 30, 2019 Author 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
Moderators Lord Henry Posted January 30, 2019 Moderators Posted January 30, 2019 Faz a mesma coisa só que muda o nome da função, o comando e o outputChatBox. Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
DNL291 Posted January 30, 2019 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 ) Please do not PM me with scripting related question nor support, use the forums instead.
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