Raised This Month: $ Target: $400
 0% 

custom colour


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-30-2011 , 07:50   Re: custom colour
Reply With Quote #4

I use this:
PHP Code:
fnColorPrint(id, const szMsg[], {FloatSqlResult,_}:...)
{
    static 
iMsgSayTextiMaxPlayers;
    if(!
iMsgSayText)
        
iMsgSayText get_user_msgid("SayText");
    
    if(!
iMaxPlayers)
        
iMaxPlayers get_maxplayers();
        
    static 
Buffer[190], Buffer2[192], iPlayer
    formatex
(Buffer2charsmax(Buffer2), "^x04[%s] ^x01%s"g_szPrefixszMsg);
    
vformat(Buffercharsmax(Buffer), Buffer23);
    
    if(!
iPlayer)
    {
        while(
iPlayer <= iMaxPlayers)
        {
            if(
is_user_connected(++iPlayer))
                break;
        }
    }
    
    
message_begin(id MSG_ONE_UNRELIABLE MSG_ALLiMsgSayText_iPlayer);
    
write_byte(iPlayer);
    
write_string(Buffer);
    
message_end();

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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:31.


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