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: Score (
/showthread.php?tid=123405)
Score -
maltheus. - 25.01.2010
OK i figer out how my score will load...
I tryed this:
Quote:
//ontop of your script
new CashScoreOld;
//ongamemodeinit
SetTimer("ScoreUpdate", 9999, 1);
//anywhere
forward ScoreUpdate();
public ScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
}
}
}
}
|
And score save/load
Can anyone fill that to work with kills..

I really need this soon is posbily i will pay if i need
Re: Score -
[dN]Eagle - 25.01.2010
Replace money with kills?
- from iPod.
Re: Score -
maltheus. - 25.01.2010
Dont work
Re: Score -
maltheus. - 25.01.2010
I know this is spam but my players wanna dm score SAVING/LOADING please help all!!