Team Kills
#1

How to Count Total Kills of each Team?
Reply
#2

In OnPlayerDeath

if (team[playerid] == team[killerid]) teamkills[killerid] ++;

Replace team with whatever system you use for teams
Reply
#3

This is just a rough example, but it will give you an idea how you can do it

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerTeam(playerid) == 0)
    {
        Team1Count++;
    }
    if(GetPlayerTeam(playerid) == 1)
    {
        Team0Count++;
    }
    return 1;
}
Edit: im late once again
Reply
#4

How Can I Get Team Score High Onplayerdeath And Show The Highest Team Score To All?
Reply
#5

It's not that easy to show off how to make such systems, just think yourself - with variables & meditation you'll make it to the final!
Reply
#6

Quote:
Originally Posted by 0_o
Посмотреть сообщение
How Can I Get Team Score High Onplayerdeath And Show The Highest Team Score To All?
With the forum search
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)