Quote:
Originally Posted by Kindred
Just an example:
pawn Код:
new TeamOneKills, TeamTwoKills;
public OnPlayerDeath(playerid, killerid, reason) { if(gTeam[killerid] == Team_One) TeamOneKills ++; if(gTeam[killerid] == Team_Two) TeamTwoKills ++; if(TeamOneKills >= 100) { //Whatever happens if team 1 wins } if(TeamTwoKills >= 100) { //Whatever happens if team 2 wins } return 1; }
Simply create a variable for the kills, and whenever the killerid on OnPlayerDeath kills someone, raise the kills of the killerid's team variable.
|
Thanks Helped i will test it tomorrow and see it works