23.07.2009, 08:15
Hello, I want to do Max Players in a team, Like in mini-missions by MID, (The team is full please chose an other team like this) How to do that? I have really no idea how to do that? :S
new EvilTeamCount; new GoodTeamCount;
//===========If good team is chosen (team 1)==============
if (EvilTeamCount > GoodTeamCount) {
SendClientMessage(playerid, COLOR, "Team is full");
return 0;
} else {
return 1;
}
//===========If Evil team is chosen (team 2)==============
if (GoodTeamCount > EvilTeamCount) {
SendClientMessage(playerid, COLOR, "Team is full");
return 0;
} else {
return 1;
}
//===== Good Team ===== GoodTeamCount++; //===== Evil Team ===== EvilTeamCount++;
//===== Good Team ===== GoodTeamCount--; //===== Evil Team ===== EvilTeamCount--;