pls help, about the ammount kills of team - 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: pls help, about the ammount kills of team (
/showthread.php?tid=265749)
pls help, about the ammount kills of team -
handerson - 02.07.2011
how to know if team1 have killed 20 players from team2....
Re: pls help, about the ammount kills of team -
CrazyBlob - 02.07.2011
make a count and on player death make the killerid team's count go up?
Re: pls help, about the ammount kills of team -
Calgon - 02.07.2011
Create an array:
Add this to OnPlayerDeath:
pawn Код:
if(GetPlayerTeam(playerid) != GetPlayerTeam(killerid))
teamOverallKills[GetPlayerTeam(killerid)-1]++;
teamOverallKills[0] will display the kill count for team 1, while teamOverallKills[1] will display the kill count for team 2.