Team Score help me! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Team Score help me! (
/showthread.php?tid=249307)
Team Score help me! -
leingod - 18.04.2011
how to make an team score like this??
the scripts only.. not the text draw

please show me how to create a team score like that
and when the one of gang score going to 100 all gang score will be 0 again
and only the player in the won team will got more score and more money $$$
Re: Team Score help me! -
Lorenc_ - 18.04.2011
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);
Re: Team Score help me! -
leingod - 18.04.2011
nice but i dn;t understand @_@
Re: Team Score help me! -
iJumbo - 18.04.2011
This mean if a killerid its in a team.. when he kill someone add a point to his team
make sure you not make some like team kill