Points! - 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: Points! (
/showthread.php?tid=164246)
Points! -
krisis32 - 30.07.2010
Hi there! How to make a script wich counts team score? I got team_two and team_one . The team who first got 25points wins! Each kill = 1point! If team_two player will kill team_one player the team_two gets +1 point!
Re: Points! -
ViruZZzZ_ChiLLL - 30.07.2010
Here's an example :
I'll also assume that you use gTeam
pawn Код:
new team1, team2;
public OnPlayerDeath(playerid, killerid, reason)
{
if(gTeam[killerid] == team_one)
{
team1++;
}
else if(gTeam[killerid] == team_two)
{
team2++;
}
return 1;
}
If you get my what I mean.