How to set a random team for a player?
#2

Код:
new PlayersTeam1=0;
new PlayersTeam2=0;

    if(PlayersTeam1 <= PlayersTeam2)
    {
          SetPlayerTeamA(playerid);
    }
   else if(PlayersTeam2 <= PlayersTeam1)
   {
           SetPlayerTeamB(playerid);
    }

SetPlayerTeamA(playerid)
{

// codes for Team A

PlayersTeam1++;
}

SetPlayerTeamB(playerid)
{
// codes for Team B
PlayersTeam2++;
}
Reply


Messages In This Thread
How to set a random team for a player? - by Score - 25.08.2018, 03:14
Re: How to set a random team for a player? - by UFF - 25.08.2018, 06:54
Re: How to set a random team for a player? - by DaniceMcHarley - 25.08.2018, 08:25
Re: How to set a random team for a player? - by UFF - 25.08.2018, 17:13

Forum Jump:


Users browsing this thread: 3 Guest(s)