Team Score help me!
#2

Alright lets say we make 3 teams

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++;
}
Now that adds 1 score per kill on a team simply make string to you're textdraw like:

pawn Код:
new string[60];
format(string, sizeof(string), "Team1 = %d | Team2 = %d", Team1, Team2);
Reply


Messages In This Thread
Team Score help me! - by leingod - 18.04.2011, 05:57
Re: Team Score help me! - by Lorenc_ - 18.04.2011, 06:04
Re: Team Score help me! - by leingod - 18.04.2011, 06:09
Re: Team Score help me! - by iJumbo - 18.04.2011, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)