Detects match results Need help
#4

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
Reply


Messages In This Thread
Detects match results Need help - by [GF]Logic - 29.07.2012, 05:05
Re: Detects match results Need help - by djcabo - 29.07.2012, 05:06
Re: Detects match results Need help - by Kindred - 29.07.2012, 05:12
Re: Detects match results Need help - by [GF]Logic - 29.07.2012, 05:28
Re: Detects match results Need help - by Devilxz97 - 29.07.2012, 06:24

Forum Jump:


Users browsing this thread: 1 Guest(s)