22.07.2012, 02:51
Hi, I was wondering if there was a way of getting the total amount of players on each team?
Like when I start the round, we can play a TDM and then the round will end.
IS THERE ANYWAY I CAN GET THE TOTAL COUNT OF EACH TEAM?
Like when I start the round, we can play a TDM and then the round will end.
pawn Код:
if (gTeam[playerid] == TEAM_HOME)
{
SetPlayerColor(playerid, TEAM_HOME_COLOR);
SetPlayerTeam(playerid, 1);
bluecount++;
if(First[playerid] == 1)
{
format(string, sizeof(string), "** %s has spawned as the team HOME.", pname);
SendClientMessageToAll(TEAM_HOME_COLOR, string);
}
}
else
{
SetPlayerColor(playerid, TEAM_AWAY_COLOR);
SetPlayerTeam(playerid, 2);
redcount++;
if(First[playerid] == 1)
{
format(string, sizeof(string), "** %s has spawned as the team AWAY.", pname);
SendClientMessageToAll(TEAM_AWAY_COLOR, string);
}
}