how to make team balance
#1

Quote:

if(classid == 0)
{
gTeam[playerid] = TEAM_USA;
GameTextForPlayer(playerid,"~b~United States ~n~~w~Assault",10000,4);
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_USA;
GameTextForPlayer(playerid,"~b~United States ~n~~g~Anti-Tank",10000,4);
}
else if(classid == 2)
{
gTeam[playerid] = TEAM_USA;
GameTextForPlayer(playerid,"~b~United States~n~~r~Support Squad",10000,4);
}
else if(classid == 3)
{
gTeam[playerid] = TEAM_RUSSIA;
GameTextForPlayer(playerid,"~r~Russia ~n~~w~Assault",10000,4);
}
else if(classid == 4)
{
gTeam[playerid] = TEAM_RUSSIA;
GameTextForPlayer(playerid,"~r~Russia ~n~~g~Anti-Tank",10000,4);
}
else if(classid == 5)
{
gTeam[playerid] = TEAM_RUSSIA;
GameTextForPlayer(playerid,"~r~Russia ~n~~r~Support Squad",10000,4);
}
else if(classid == 6)
{
gTeam[playerid] = TEAM_JAPAN;
GameTextForPlayer(playerid,"~w~Japan ~n~~w~Assault",10000,4);
}
else if(classid == 7)
{
gTeam[playerid] = TEAM_JAPAN;
GameTextForPlayer(playerid,"~w~Japan ~n~~g~Anti-Tank",10000,4);
}
else if(classid ==
{
gTeam[playerid] = TEAM_JAPAN;
GameTextForPlayer(playerid,"~w~Japan ~n~~r~Support Squad",10000,4);
}
else if(classid == 9)
{
gTeam[playerid] = TEAM_GERMANY;
GameTextForPlayer(playerid,"~g~Germany ~n~~w~Assault",10000,4);
}
else if(classid == 10)
{
gTeam[playerid] = TEAM_GERMANY;
GameTextForPlayer(playerid,"~g~Germany ~n~~g~Anti-Tank",10000,4);
}
else if(classid == 11)
{
gTeam[playerid] = TEAM_GERMANY;
GameTextForPlayer(playerid,"~g~Germany ~n~~r~Support Squad",10000,4);
}
return 1;
}

how to make auto team balance, so cannot be 1 vs 3 or 1 vs 4
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)