how to count the ammount player of team
#7

You will not need it, since the variables are now globally created. You will need to increase them though, which I failed to do by my last post. The end result should look like this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
   if ((Count1 > Count2) && GetPlayerTeam(playerid) == TEAM_TERRORIST)
   {
      GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
      PlayerPlaySound(playerid,1055,0, 0, 0);
      return 0;
   }
   else if((Count2 < Count1) && GetPlayerTeam(playerid) == TEAM_KOPASSUS)
   {
      GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
      PlayerPlaySound(playerid,1055,0, 0, 0);
      return 0;
   }
   SetPlayerToTeamColour(playerid);
   if( GetPlayerTeam( playerid ) == TEAM_KOPASSUS ) Count1++;
   else if( GetPlayerTeam( playerid ) == TEAM_TERRORIST ) Count2++;
   return 1;
}
Reply


Messages In This Thread
how to count the ammount player of team - by handerson - 05.07.2011, 03:10
Re: how to count the ammount player of team - by Bakr - 05.07.2011, 03:14
Re: how to count the ammount player of team - by Snipa - 05.07.2011, 03:15
Re: how to count the ammount player of team - by handerson - 05.07.2011, 03:27
Re: how to count the ammount player of team - by Bakr - 05.07.2011, 03:30
Re: how to count the ammount player of team - by handerson - 05.07.2011, 03:35
Re: how to count the ammount player of team - by Bakr - 05.07.2011, 03:39
Re: how to count the ammount player of team - by handerson - 05.07.2011, 04:21

Forum Jump:


Users browsing this thread: 1 Guest(s)