30.08.2015, 13:36
What you will need is an array to store the score in. Replace this:
With this:
Now, under OnPlayerDeath
pawn Код:
new Text:DMTeam1Score;
new Text:DMTeam2Score;
pawn Код:
new Text:DMTeam1Score;
new Text:DMTeam2Score;
new Score[2]; // Score[2] will be storing each team's overall score
pawn Код:
new string[24];
if(Team[killerid] == 1) // Or whatever your team code is
{
Score[0] ++;
format(string,sizeof(string),"Team 1 Points - %d",Score[0]);
TextDrawSetString(DMTeam1Score, string);
}
else if(Team[killerid] == 2) // Or whatever your team code is
{
Score[1] ++;
format(string,sizeof(string),"Team 2 Points - %d",Score[1]);
TextDrawSetString(DMTeam2Score, string);
}

