Raised This Month: $ Target: $400
 0% 

[SOLVED] Why this message appears many times in chat?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shockblade
Member
Join Date: Dec 2012
Old 12-29-2012 , 14:36   [SOLVED] Why this message appears many times in chat?
Reply With Quote #1

Hello,
why in this function the message appears many times, when counter-terrorists win?

PHP Code:
public Event_SendAudio_CtsWin()
{
        for(new 
client FIRST_PLAYER_IDclient <= g_maxClientsclient++)
        {
                new 
Winner_XP get_pcvar_num(cvar_XP_Win)
            
                
/* if( IsUserConnected(client) && */
                
if( IsUserAuthorized(client) )
                {
                    if( 
cs_get_user_team(client) == CS_TEAM_CT )
                    {
                        
g_XP[client] += Winner_XP
                
                        
#if defined ADMIN_EXTRA_XP_WIN
                            
if( get_pcvar_num(cvar_Admin_Extra) && get_user_flags(client) & ADMIN_EXTRA )
                            {
                                
g_XP[client] += get_pcvar_num(cvar_Admin_Extra_XP)
                            }
                        
#endif
                    
}    
                    
Check_Level(client)
                }
                
client_print_color(0Blue"^4%s ^3Seekers ^1received ^4%i ^1XP for winning the round!"g_szPrefix, (get_pcvar_num(cvar_Admin_Extra) && get_user_flags(client) & ADMIN_EXTRA get_pcvar_num(cvar_Admin_Extra_XP) : 0) + Winner_XP)
        }

__________________
Spoiler

Last edited by Shockblade; 12-30-2012 at 20:34.
Shockblade 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 13:46.


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