Raised This Month: $ Target: $400
 0% 

Show teammate's money with color in chat?


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

PHP Code:
public show_money(client)
{
    static 
name[32];
    static 
msg[128];

    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);
            
format(msg127"^x01(Penge) ^x03%s^x01: %d^n"namemoney);

            
message_begin(MSG_ONEget_user_msgid("SayText"), {0,0,0}, id);
            
write_byte(id);
            
write_string(msg);
            
message_end();
        }
    }

Ive got a problem, it only show me X as many players there is in the team instead of showing there name and money :S

PHP Code:
(Penge) [fp]zhe legendary nEwb800
(Penge) [fp]zhe legendary nEwb800 
FPcokE 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 14:21.


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