BVVofc Posted January 4, 2021 Share Posted January 4, 2021 (edited) Olá, como faço para que somente o nick de tal pessoa tenha cor e as mensagens que ele enviar tal como, "#FF00FF(COR) (MENSAGEM)" não tenham efeito de cor no chat? function adminchat3 ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if getElementData (thePlayer, "ChatGlobal:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("* ⌞BѵV ⌝ (@) Ajuda » ₣UNDΔDØR ♱ ["..getPlayerID(thePlayer).."] ➜ #ffffff"..getPlayerName(thePlayer)..": "..message, player, 0, 255, 0, true) Edited January 4, 2021 by BVVofc Link to comment
Blaack Posted January 4, 2021 Share Posted January 4, 2021 2 hours ago, BVVofc said: Olá, como faço para que somente o nick de tal pessoa tenha cor e as mensagens que ele enviar tal como, "#FF00FF(COR) (MENSAGEM)" não tenham efeito de cor no chat? function adminchat3 ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if getElementData (thePlayer, "ChatGlobal:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("* ⌞BѵV ⌝ (@) Ajuda » ₣UNDΔDØR ♱ ["..getPlayerID(thePlayer).."] ➜ #ffffff"..getPlayerName(thePlayer)..": "..message, player, 0, 255, 0, true) removeHex 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