Raised This Month: $ Target: $400
 0% 

how to add colours without colorchat.inc


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
human_Torch
Senior Member
Join Date: Dec 2009
Location: Serbia
Old 06-12-2010 , 11:57   Re: how to add colours without colorchat.inc
Reply With Quote #3

ok,tnx..

so you add this at the bottom

Code:
stock ChatColor(const id, const input[], any:...)
{
    new count = 1, players[32]
    static msg[191]
    vformat(msg, 190, input, 3)
    
    replace_all(msg, 190, "!g", "^4") // Green Color
    replace_all(msg, 190, "!y", "^1") // Default Color
    replace_all(msg, 190, "!team", "^3") // Team Color
    
    
    if (id) players[0] = id; else get_players(players, count, "ch")
    {
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players[i]))
            {
                message_begin(MSG_ONE_UNRELIABLE, g_iMsgSayText, _, players[i])  
                write_byte(players[i]);
                write_string(msg);
                message_end();
            }
        }
    }
}  
and change this line

Code:
ChatColor(param[0], "^3[Rc DeathRun] ^4Players with ping higher than %dms will be kicked!", HIGHPING_MAX)
and thats it


human_Torch is offline
Send a message via MSN to human_Torch Send a message via Skype™ to human_Torch
 



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 14:47.


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