Quote:
Originally Posted by ∈ⅹitus
Quote:
Originally Posted by [WsR
RyDeR ]
Код:
new KillCount[MAX_PLAYERS];
OnPlayerDeath:
Код:
KillCount[playerid]++;
KillCount[killerid]--;
Like this?
And at the end you must use a loop trough all players to see who the most counts have.
|
For me it seems more effecient to make a variable just for the team kills.
Like this:
pawn Код:
new Team1Killz, Team2Killz, Team3Killz;
then OnPlayerDeath:
pawn Код:
if(GetPlayerTeam(killerid)==TEAM_BLABLUBB1)Team1Killz++; if(GetPlayerTeam(killerid)==TEAM_BLABLUBB2)Team2Killz++; if(GetPlayerTeam(killerid)==TEAM_BLABLUBB3)Team3Killz++;
#EDIT#: You can decimate the teamkill of the dying player, too, if you want to.
Cheers.
|
How can i check which team has the highest?