Raised This Month: $ Target: $400
 0% 

Show teammate's money with color in chat?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FPcokE
Member
Join Date: Aug 2011
Old 10-28-2011 , 06:53   Show teammate's money with color in chat?
Reply With Quote #1

Hey, ive got a "show teammate's money" script working with client_print but i was wondering how to add some color in it too.

The script:
PHP Code:
public show_money(client)
{
    static 
name[32];

    new 
moneyid;
    
    for (
id 1id <= g_max_playersid++)
    {
        if (
is_user_connected(id) && cs_get_user_team(id) == cs_get_user_team(client))
        {
            
money cs_get_user_money(id);
            
get_user_name(idname31);
            
client_print(clientprint_chat"(Penge) %-22.22s: %d^n"namemoney);
        }
    }

Ive searched a bit and i found this:
PHP Code:
    message_begin(MSG_ONEget_user_msgid("SayText"), {0,0,0}, id)
    
write_byte(id)
    
write_string("^x03Team colored text ^x01Normal color")
    
message_end() 
Thats just not exactly what i need (i think) because its not something the player have said in say or say_team.
I want to use team color in the name only, I hope u can help me with this. And is it even possible?

Last edited by FPcokE; 10-28-2011 at 07:57.
FPcokE is offline
 


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


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