SA-MP Forums Archive
Making the Kills == Score - 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: Making the Kills == Score (/showthread.php?tid=106501)



Making the Kills == Score - Tigerbeast11 - 03.11.2009

Hi!

I have this variable (i think its called that):

pawn Код:
new PlayerKills[MAX_PLAYERS];
How can i turn that variable and make it the score too...?



Re: Making the Kills == Score - Daren_Jacobson - 03.11.2009

pawn Код:
SetPlayerScore(playerid, PlayerKills[playerid]);
where ever you update the PK var you should do this also.


Re: Making the Kills == Score - Tigerbeast11 - 03.11.2009

<DELETE>


Re: Making the Kills == Score - Tigerbeast11 - 05.11.2009

Is it possible to set a timer which updates the score every second or so?


Re: Making the Kills == Score - Danny_Costelo - 05.11.2009

Quote:
Originally Posted by Tigerbeast11
Is it possible to set a timer which updates the score every second or so?
Use a timer of one second,

SetTimer("UpdateScore", 1000, 1);

Than inside the UpdateScore function do SetPlayerScore(playerid, GetPlayerScore(playerid)+1); - Make sure the UpdateScore function is a public.



Re: Making the Kills == Score - Tigerbeast11 - 05.11.2009

I already done it!

I was checking if that is "allowed"