Raised This Month: $51 Target: $400
 12% 

Module: Rage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-05-2012 , 04:24   Re: Module: Rage
Reply With Quote #11

Yes, kind of obvious, but here a small explanation.
By setting m_iUnBalancedRounds to 1, it forces to call BalanceTeams().

PHP Code:
    [...]
    
int autoTeamBalance CVAR_GET_FLOAT"mp_autoteambalance" );
    
    if ( 
autoTeamBalance != && m_iUnBalancedRounds )
    {
        
BalanceTeams();
    }
    
    if ( 
m_iNumCT m_iNumTerrorist >= || m_iNumTerrorist m_iNumCT >= )
    {
        
m_iUnBalancedRounds++;
    }
    else
    {
        
m_iUnBalancedRounds 0;
    }
    
    if ( 
autoTeamBalance != && m_iUnBalancedRounds == )
    {
        
UTIL_ClientPrintAllprint_center"#Auto_Team_Balance_Next_Round" );
    }
    [...] 


But I'm not sure it's good idea, because I remember calling directly BalanceTeams() with orpheu when #Auto_Team_Balance_Next_Round is trieggered and it was not working properly.
__________________
Arkshine 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 04:33.


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