AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [CHATHELP] Changing the color. (https://forums.alliedmods.net/showthread.php?t=95936)

lolzin123 06-28-2009 20:01

[CHATHELP] Changing the color.
 
How i edit this code:
PHP Code:

fnGreenChat(plr, const message[], {Float,Sql,Result,_}:...)
{
    static 
msg[192];
    
msg[0] = 0x04;
    
    
vformat(msg[1], 190message3);
    
    if( 
plr && plr <= 32 )
    {
        
message_begin(MSG_ONEgMsgSayText, {000}, plr);
        
write_byte(plr);
        
write_string(msg);
        
message_end();
    }
    else if( 
plr == )
    {
        for( new 
1<= gMaxPlayersi++ )
        {
            if( !
is_user_connected(i) )
            {
                continue;
            }
            
            
message_begin(MSG_ONEgMsgSayText, {000}, i);
            
write_byte(i);
            
write_string(msg);
            
message_end();
        }
    }
    
    return 
1;
}

new 
szName[32];
get_user_name(plrszName32);
    
fnGreenChat(0"[BCM]  %s die."szName); 

How i make the chat change, if the player is T set his name to red,the bcm to white and the rest,to black...
If the player are CT the same, but his name blue color...

THX and sorry about my english. :oops:

Exolent[jNr] 06-28-2009 20:36

Re: [CHATHELP] Changing the color.
 
The only available colors are red, green, blue, white, and default (yellow).

anakin_cstrike 06-29-2009 10:55

Re: [CHATHELP] Changing the color.
 
And grey, also use "maxplayers" instead of 32.

lolzin123 06-29-2009 12:01

Re: [CHATHELP] Changing the color.
 
ok, can you edit for me? I have no idea how to start this... and the color , switch the black to white :) THX

anakin_cstrike 06-29-2009 17:28

Re: [CHATHELP] Changing the color.
 
Search for Colorchat in code snippets.

lolzin123 06-30-2009 11:42

Re: [CHATHELP] Changing the color.
 
I search in the color chat, but i find the way to make the phrase just in one color... I need 2 or 3 colors in on phrase.


All times are GMT -4. The time now is 15:43.

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