Raised This Month: $ Target: $400
 0% 

need help with color chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dejan
Senior Member
Join Date: Mar 2009
Location: Sweden
Old 11-20-2010 , 18:27   need help with color chat
Reply With Quote #1

how can i add the colors red and blue into this script?

PHP Code:
stock ChatColor(const id, const input[], any:...) 
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!t""^3"// Team Color
    
    
if (id
        
players[0] = id
    
else {
        
get_players(playerscount"ch"
        for (new 
0counti++) {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }

__________________
dejan is offline
Send a message via Skype™ to dejan
 



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 11:18.


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