Raised This Month: $ Target: $400
 0% 

how do i add colors to adminchat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drumzplaya13
Senior Member
Join Date: Feb 2008
Location: TEXAS
Old 11-06-2009 , 13:55   Re: how do i add colors to adminchat
Reply With Quote #1

Quote:
Originally Posted by wahmeng View Post
does this mean i can only replace the colors ???
Make a new case and pick a letter which isnt already in use. Find out what color you want. For example if you wanted to add purple.


PHP Code:
 switch (said[i])
    {
        case 
'r'1
        
case 'g'2
        
case 'b'3
        
case 'y'4
        
case 'm'5
        
case 'c'6
        
case 'o'7
        
case 'p'8
    

Then you need to have the color added to g_Colors so COL_PURPLE

PHP Code:
new g_Colors[MAX_CLR][] = {"COL_WHITE""COL_RED""COL_GREEN""COL_BLUE""COL_YELLOW""COL_MAGENTA""COL_CYAN""COL_ORANGE""COL_OCEAN""COL_MAROON" "COL_PURPLE"
Then you need to find the Red, Green, Blue. or RGB of the color, you can do this by going into paint and looked at advanced colors. 174, 50, 205 (it is a shade of purple pick what you want)
PHP Code:
new g_Values[MAX_CLR][] = {{255255255}, {25500}, {02550}, {00255}, {2552550}, {2550255}, {0255255}, {227968}, {4589116}, {1034438} {17450205}} 
and then you have purple. I think. Ha. Never done it before but from what the example was. That is how you change colors.
__________________
Think Positive - Stay Positive
drumzplaya13 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-06-2009 , 15:44   Re: how do i add colors to adminchat
Reply With Quote #2

case 'p': a = 10

Fixed.

Also, you need to add the COL_PURPLE key into the ML file.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode