team balance not working
#1

Код:
    new CountTerrorist, CountArmy;
    for(new p = 0; p < GetMaxPlayers(); p++)
     {
       if (GetPlayerTeam(p) == TEAM_TERRORIST) CountTerrorist++;
       else if (GetPlayerTeam(p) == TEAM_ARMY) CountArmy++;
     }
    if ((CountTerrorist > CountArmy) && GetPlayerTeam(playerid) == TEAM_TERRORIST)
    {
      SendClientMessage(playerid,COLOR_RED, "Terrorist is full. please choose Army.");
      GameTextForPlayer(playerid, "~r~Terrorist is full ~n~ ~b~Please Chooose Army", 3000, 5);
      return 0;
    }
    else if ((CountArmy > CountTerrorist) && GetPlayerTeam(playerid) == TEAM_ARMY)
    {
      SendClientMessage(playerid,COLOR_RED, "Army is full. please choose Terrorist.");
      GameTextForPlayer(playerid, "~b~Army is full ~n~ ~b~Please Chooose Terrorist", 3000, 5);
      return 0;
    }
help please, thats not working
Reply


Messages In This Thread
team balance not working - by ReD_HunTeR - 18.12.2013, 13:18
Re: team balance not working - by ReD_HunTeR - 18.12.2013, 16:13
Re: team balance not working - by Riddick94 - 18.12.2013, 16:21
Re: team balance not working - by ReD_HunTeR - 19.12.2013, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)