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

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
pawn Код:
#define MAX_TEAMS 4
new rteam = random(MAX_TEAMS);
switch(rteam)
{
    case 0: // Team 1
    case 1: // Team 2
    case 2: // Team 3
    case 3: // Team 4
}
Well bro,
He meant, 2 random teams for a event system.
Quote:

when player 1 joins the event, he gets into team A, player 2 Team B, player 3 Team A, player 4 Team B like this.

and the code which you provided will not work for perfect balance for teams.
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: 1 Guest(s)