Team Scores--> FORWARD PROBLEM!
#3

https://sampwiki.blast.hk/wiki/SetTimer

pawn Код:
new
    Team1 = 0,
    Team2 = 0;
for(new id = 0; id < MAX_PLAYERS; id++)
{
    if(!IsPlayerConnected(id)) continue;
   
    if(gTeam[id] == TEAM_ALPHA) //or whatever you use
    {
      Team1 = Team1 + GetPlayerScore(id);
    }
    else
    {
      Team2 = Team2 + GetPlayerScore(id);
    }
}

if(Team1 > Team2)
{
  GameTextForPlayer(playerid, "Team1 won", 3000, 4);
}
else if(Team 1 < Team2)
{
  GameTextForPlayer(playerid, "Team2 won", 3000, 4);
}
else
{
  GameTextForPlayer(playerid, "Tie", 3000, 4);
}
Reply


Messages In This Thread
Team Scores--> FORWARD PROBLEM! - by patchkinson - 08.12.2009, 13:31
Re: Team Scores - by patchkinson - 08.12.2009, 13:43
Re: Team Scores - by dice7 - 08.12.2009, 13:48
Re: Team Scores - by patchkinson - 08.12.2009, 13:50
Re: Team Scores - by Balon - 08.12.2009, 13:55
Re: Team Scores - by Donny_k - 08.12.2009, 13:59
Re: Team Scores - by patchkinson - 08.12.2009, 14:03
Re: Team Scores--> FORWARD PROBLEM! - by Joe Staff - 08.12.2009, 15:02
Re: Team Scores--> FORWARD PROBLEM! - by patchkinson - 08.12.2009, 17:42
Re: Team Scores--> FORWARD PROBLEM! - by Malice - 08.12.2009, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)