Score
#1

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
Reply


Messages In This Thread
Score - by maltheus. - 25.01.2010, 17:40
Re: Score - by [dN]Eagle - 25.01.2010, 17:46
Re: Score - by maltheus. - 25.01.2010, 17:49
Re: Score - by maltheus. - 25.01.2010, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)