AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help on chat colors for black ^x04%s or what (https://forums.alliedmods.net/showthread.php?t=75985)

Iwon 08-16-2008 08:59

help on chat colors for black ^x04%s or what
 
help on chat colors for black ^x04%s or what

i got this soo far it didnt work

PHP Code:

             // Name
            
switch (get_pcvar_num (g_NameColor))
                {
                    case 
1:
                        
format (strName191"%s(%s) %s"aliveplayerTeamNamename)

                    case 
2:
                        
format (strName191"%s(%s) ^x04%s"aliveplayerTeamNamename)
                        
                                              case 
3//black
                        
format (strText191"^x01%s"aliveplayerTeamNamename)    
                    case 
4//black
                        
format (strText191"^x02%s"aliveplayerTeamNamename)    
                    case 
5//black
                        
format (strText191"^x03%s"aliveplayerTeamNamename)    
                    case 
6//black
                        
format (strText191"^x05%s"aliveplayerTeamNamename)    
                    case 
7//black
                        
format (strText191"^x06%s"aliveplayerTeamNamename)    
                        
                    case 
8:
                        {
                            
color "SPECTATOR"
                            
format (strName191"%s(%s) ^x03%s"aliveplayerTeamNamename)
                        }
                        
                    case 
9:
                        {
                            
color "CT"
                            
format (strName191"%s(%s) ^x03%s"aliveplayerTeamNamename)
                        }

                    case 
10:
                        {
                            
color "TERRORIST"
                            
format (strName191"%s(%s) ^x03%s"aliveplayerTeamNamename)
                        }
                    
                    case 
11:
                        {
                            
get_user_team (idcolor9)
                                
                            
format (strName191"%s(%s) ^x03%s"aliveplayerTeamNamename)
                        }
                } 

What color is black please pl0x.

+Karma for help if you give me the format of ^x0 what ever it is :/ please. for my admin vip superadmin script on Counter-strike.

xPaw 08-16-2008 09:15

Re: help on chat colors for black ^x04%s or what
 
black is impossible

Exolent[jNr] 08-16-2008 13:59

Re: help on chat colors for black ^x04%s or what
 
You can only do 5 chat colors:
  • Red
  • Blue
  • Gray
  • Green
  • Default Color (Yellow)

Iwon 08-16-2008 14:43

Re: help on chat colors for black ^x04%s or what
 
How about

like in svc_tempernty or something for chat color
Code:

blah("255") // R
blah("255") // G
blah("255") // B

code please

danielkza 08-16-2008 14:44

Re: help on chat colors for black ^x04%s or what
 
Quote:

Originally Posted by Iwon (Post 670649)
How about

like in svc_tempernty or something for chat color
Code:

blah("255") // R
blah("255") // G
blah("255") // B

code please

You can't choose RGB color on chat. Just the ones mentioned by Xolent.

Emp` 08-16-2008 15:43

Re: help on chat colors for black ^x04%s or what
 
Quote:

Originally Posted by danielkza (Post 670650)
You can't choose RGB color on chat. Just the ones mentioned by Xolent.

Players can change chat to RGB colors with the client side cvar con_color. But that doesn't help Iwon.

danielkza 08-16-2008 16:16

Re: help on chat colors for black ^x04%s or what
 
Quote:

Originally Posted by Emp` (Post 670686)
Players can change chat to RGB colors with the client side cvar con_color. But that doesn't help Iwon.

That's new to me,just changed mine to match my blue HUD and GUI. Unfortunately,this doesn't help him at all.


All times are GMT -4. The time now is 03:12.

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