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(0, print_chat, "[ITB] TR: [%d] -- CT: [%d]", iTR, iCT) //debug chat
OrpheuCall(BalanceTeams, GameRules)
client_print(0, print_center, "*** Teams Auto Balanced, Check Your Team ***")
client_print(0, print_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(players, num, "e", team == 1 ? "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?
__________________