29.01.2010, 14:38
pawn Код:
for(new p = 0; p < GetMaxPlayers(); p++)
{
if(IsPlayerConnected(p))
{
if (gTeam[p] == TEAM_HOBO)
{
count1++;
}
else if (gTeam[p] == TEAM_RICH)
{
count2++;
}
}
}
if ((count1 > count2) && gTeam[playerid] == TEAM_HOBO)
{
SendClientMessage(playerid, COLOR_SERVER, "[SERVER]: Choose another team to keep the teams even!");
SetPlayerHealth(playerid,100.0);
return 0;
}
else if ((count2 > count1) && gTeam[playerid] == TEAM_RICH)
{
SendClientMessage(playerid, COLOR_SERVER, "[SERVER]: Choose another team to keep the teams even!");
SetPlayerHealth(playerid,100.0);
return 0;
}
return 1;
}
I can only select 1 class at the beginning :S
And I am only capeable to select 1 team.
Help please