Jump to content

BLOQUEAR COR DA MENSAGEM


Recommended Posts

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 by BVVofc
Link to comment
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

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