Raised This Month: $ Target: $400
 0% 

[CHATHELP] Changing the color.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 06-28-2009 , 20:01   [CHATHELP] Changing the color.
Reply With Quote #1

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.
lolzin123 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-28-2009 , 20:36   Re: [CHATHELP] Changing the color.
Reply With Quote #2

The only available colors are red, green, blue, white, and default (yellow).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 06-29-2009 , 10:55   Re: [CHATHELP] Changing the color.
Reply With Quote #3

And grey, also use "maxplayers" instead of 32.
__________________

anakin_cstrike is offline
lolzin123
Member
Join Date: Apr 2009
Old 06-29-2009 , 12:01   Re: [CHATHELP] Changing the color.
Reply With Quote #4

ok, can you edit for me? I have no idea how to start this... and the color , switch the black to white THX
lolzin123 is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 06-29-2009 , 17:28   Re: [CHATHELP] Changing the color.
Reply With Quote #5

Search for Colorchat in code snippets.
__________________

anakin_cstrike is offline
lolzin123
Member
Join Date: Apr 2009
Old 06-30-2009 , 11:42   Re: [CHATHELP] Changing the color.
Reply With Quote #6

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.
lolzin123 is offline
Reply


Thread Tools
Display Modes

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 15:43.


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