SA-MP Forums Archive
resetting kill counter? - 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: resetting kill counter? (/showthread.php?tid=155021)



resetting kill counter? - iStarzz - 16.06.2010

I have this on the top of my script: new TeamKills[MAX_TEAMS];
Now i don't have restarts in my server but how do i put the kills to 0 again?


Re: resetting kill counter? - newarvuti - 16.06.2010

You could make command, that would set it to 0.


Re: resetting kill counter? - iStarzz - 16.06.2010

I have a server that changes the map all the time, It need to be done automaticly.


Re: resetting kill counter? - newarvuti - 16.06.2010

If TeamKills is about team members killing opponents, then you could try adding
pawn Код:
TeamKills[MAX_TEAMS] = 0;
under
pawn Код:
public OnGameModeInit()
I am not sure if it will work, but it should.