Team Balancer Problem
#4

pawn Код:
#define TEAM_ARMY 0
#define TEAM_TERRO 1
pawn Код:
stock GetPlayersInTeamFromMaxPlayers(teamid)//Stock developed by Weponz (Weponz Inc. © 2010 - 2011)
{
    new playercount = 0;//Set our count to 0 as we have not counted any players yet..
    for(new i = 0; i < MAX_PLAYERS; i++)//Loop through MAX_PLAYERS(I suggest you redefine MAX_PLAYERS to ensure max efficency)..
    {
        if(GetPlayerState(i) == PLAYER_STATE_NONE) continue;//If a player is in class selection continue..
        if(gTeam[i] != teamid) continue;//If a player is NOT in the specified teamid continue..
        playercount++;//else (there in the teamid) so count the player in the team..
    }
    return playercount;//Return the total players counted in the specified team..
}
also we got that here,, i tried remove what you said , and now when i spawned as a team, then when i want choose again, it says this team is full, on any team ...
Reply


Messages In This Thread
Team Balancer Problem - by [rG]Cold - 18.11.2012, 00:43
Re: Team Balancer Problem - by VIP475 - 24.06.2013, 19:09
Re: Team Balancer Problem - by introzen - 24.06.2013, 19:10
Re: Team Balancer Problem - by VIP475 - 24.06.2013, 22:48
Re: Team Balancer Problem - by introzen - 25.06.2013, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)