Raised This Month: $ Target: $400
 0% 

[CHATHELP] Changing the color.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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