[Ajuda] teams
#5

Quote:
Originally Posted by Kuddy
Посмотреть сообщение
Digamos que a var que guarda o time dos players seja pTeam[]. Digamos que o time A seja 1 e o B seja 2.

pawn Код:
new inTeamA, inTeamB;
for(new i; i < MAX_PLAYERS; i ++){
if(!IsPlayerConnected(i)) continue;
if(pTeam[i] == 1) inTeamA++;
else if(pTeam[i] == 2) inTeamB++);
}
if(inTeamA > inTeamB || inTeamA < inTeamB) {
SendClientMessage(playerid, -1, "Escolha outro time!");
return 0;
Isto deve ser feito na callback OnPlayerRequestSpawn #ficadica
Reply


Messages In This Thread
teams - by iTzDemon - 10.09.2013, 00:11
Re: teams - by PT - 10.09.2013, 02:49
Re: teams - by Kuddy - 10.09.2013, 03:27
Re: teams - by iTzDemon - 10.09.2013, 12:45
Re: teams - by Russo66 - 10.09.2013, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)