Teamscore in Textdraw help?
#2

What you will need is an array to store the score in. Replace this:
pawn Код:
new Text:DMTeam1Score;
new Text:DMTeam2Score;
With this:
pawn Код:
new Text:DMTeam1Score;
new Text:DMTeam2Score;
new Score[2]; // Score[2] will be storing each team's overall score
Now, under OnPlayerDeath
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);
}
Reply


Messages In This Thread
Teamscore in Textdraw help? - by TheAlbert17 - 30.08.2015, 11:43
Re: Teamscore in Textdraw help? - by bensmart469 - 30.08.2015, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)