SA-MP Forums Archive
Updating 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: Updating score. (/showthread.php?tid=108429)



Updating score. - DiddyBop - 14.11.2009

hey i was wondering, How come in-game score isnt updating? i made it so your score goes off your total kills saved with Ladmin.

but in-game som1 will kill som1 and score wont go up. it only refreshes after they relog.. a little help please.


Re: Updating score. - ExoSanty - 17.11.2009

use this

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}



Re: Updating score. - DiddyBop - 17.11.2009

the problem is ladmin isnt updating shit.. so i mite just reinstall


Re: Updating score. - [HiC]TheKiller - 17.11.2009

Quote:
Originally Posted by © HungryPinkPig ©
hey i was wondering, How come in-game score isnt updating? i made it so your score goes off your total kills saved with Ladmin.

but in-game som1 will kill som1 and score wont go up. it only refreshes after they relog.. a little help please.
Just make the score go up when they kill someone, don't set it on OnPlayerConnect using a variable.



Quote:
Originally Posted by ExoSanty
use this

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}



Re: Updating score. - _Vortex - 17.11.2009

LAdmin doesn't have feature to load previous scores from kills, you can always add it, when they login, get their score from their file, then set it using SetPlayerScore.


Re: Updating score. - maltheus. - 21.01.2010

I know it is old topic can anyone told me what i need do to score load?


Re: Updating score. - maltheus. - 25.01.2010

Quote:
Originally Posted by [FG
otto ]
I know it is old topic can anyone told me what i need do to score load?