Jump to content

Chat Name Color


Brad96

Recommended Posts

Posted (edited)

how to make the chat show the color of my nick .. and all player

  
outputChatBox ("getPlayerName(source):gsub("#%x%x%x%x%x%x",""))  
  
  
 

?? thx

Edited by Guest

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

What? I didn't get anything of what you just said.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Enable the colorCoded argument of outputChatBox, last argument.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

What do you mean by "wiki"?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

but this is just the color of the text r,g,b , I say the color of the tag Player

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

Aren't you reading what I say? you must use the same function, but enable the last argument: colorCoded, set it to "true" and then it'll work.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

not work :S

function greetingCommand ( playerSource, commandName ) 
local r,g,b = getPlayerNametagColor (playerSource) 
    triggerClientEvent ( "onGreeting", getRootElement(), "Hola " ..getPlayerName(playerSource),getRootElement,r,g,b,true) 
end 
addCommandHandler ("greet" , greetingCommand ) 

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

The "true" has to be on the outputChatBox, post the client side part.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function greetingHandler ( message , r ,g ,b) 
    outputChatBox ( "Server : " .. message , r ,g ,b) 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler  

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted
function greetingHandler ( message , r ,g ,b) 
    outputChatBox ( "Server : " .. message, r, g, b, true ) 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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