Raised This Month: $ Target: $400
 0% 

[Help]Orpheu: AutoTeamBalances


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 07-06-2014 , 11:38   Re: [Help]Orpheu: AutoTeamBalances
Reply With Quote #2

I can't help you with that orpheu thing but the code looks fine. You could do a debug after calling orpheu function, example, also little improved code:

PHP Code:
public TaskBalanceTeam()
{
    new 
iTR GetPlayerCount(1//T count
    
new iCT GetPlayerCount(2//CT count
    
    //players >= 2 in 1 team, then call BalanceTeams
    
if(abs(iTR-iCT) >= 2)
    {
        
client_print(0print_chat"[ITB] TR: [%d] -- CT: [%d]"iTRiCT//debug chat
        
OrpheuCall(BalanceTeamsGameRules)
        
client_print(0print_center"*** Teams Auto Balanced, Check Your Team ***")
        
client_print(0print_chat"[ITB] NEW TR: [%d] -- CT: [%d]"GetPlayerCount(1), GetPlayerCount(2)) //debug chat
    
}
}

// No need for fakemeta
GetPlayerCount(team)
{
    new 
num;
    static 
players[32];
    
get_players(playersnum"e"team == "TERRORIST" "CT");
    return 
num;

Then you will see where to search for you problem. It might be something with those orpheu files in configs folder?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS 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 21:13.


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