Jump to content

Auto- Chat text color


Recommended Posts

Posted

Hi :)

I have a Auto- Chat text script:

function delayedChat ( text ) 
        outputChatBox ( "I N F O: " .. text, 0, 255, 0 ) 
end 
  
setTimer ( delayedChat, 240000, 0, "Press F1 for see the Spawn Menu! And F1 for close the Menu!" ) 
  
setTimer ( delayedChat, 400000, 0, "Use /fix or R for Repair your Vehicle" ) 
  
setTimer ( delayedChat, 690000, 0, "Use /flip or M for Flip your Vehicle" ) 

And i want that the text is not in the normal white. I have test with 0, 255, 0 but the text is in the chat window all the time white.

Why?? :roll:

Posted

Because 2nd parameter is not the red color but the element who's meant to see the message. Check this line (it send message to all the players, root element):

outputChatBox( "I N F O: " .. text, getRootElement(), 0, 255, 0 ) 

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