18.04.2011, 06:04
Alright lets say we make 3 teams
Easy, you need just a single variable.
Now that adds 1 score per kill on a team simply make string to you're textdraw like:
Easy, you need just a single variable.
pawn Код:
new Team1;//team 1
new Team2;//team 2
Now you might have a variable called Team[playerid], gTeam[playerid] which detects a players team
On onplayerdeath:
if(gTeam[killerid] == 1)//Team 1
{
Team1++;
}
else if(gTeam[killerid] == 2)//team 2
{
Team2++;
}
pawn Код:
new string[60];
format(string, sizeof(string), "Team1 = %d | Team2 = %d", Team1, Team2);