I'm confused
#4

pawn Код:
new Team1Count;
new Team2Count;
new Team3Count;
new Team4Count;
pawn Код:
//OnPlayerDeath
if(gTeam[killerid] == TEAM_1) Team1Count++;
if(gTeam[killerid] == TEAM_2) Team2Count++;
if(gTeam[killerid] == TEAM_3) Team3Count++;
if(gTeam[killerid] == TEAM_4) Team4Count++;
pawn Код:
stock GetHighestTeam()
{
if(Team1Count > Team2Count && Team1Count > Team3Count && Team1Count > Team4Count) return 1;
if(Team2Count > Team1Count && Team2Count > Team3Count && Team2Count > Team4Count) return 2;
if(Team3Count > Team1Count && Team3Count > Team2Count && Team3Count > Team4Count) return 3;
if(Team4Count > Team1Count && Team4Count > Team2Count && Team4Count > Team3Count) return 4;
}
Reply


Messages In This Thread
I'm confused - by ViruZZzZ_ChiLLL - 31.05.2010, 17:05
Re: I'm confused - by azzerking - 31.05.2010, 18:17
Re: I'm confused - by DJDhan - 31.05.2010, 18:19
Re: I'm confused - by Conroy - 31.05.2010, 18:25
Re: I'm confused - by DJDhan - 31.05.2010, 18:27
Re: I'm confused - by azzerking - 31.05.2010, 20:00

Forum Jump:


Users browsing this thread: 5 Guest(s)