SA-MP Forums Archive
How to make My admin script save scores? - 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)
+--- Thread: How to make My admin script save scores? (/showthread.php?tid=125276)



How to make My admin script save scores? - [WSM]Deadly_Evil - 03.02.2010

Anybody know how to make my admin script save score?
I am using LAdmin v4.2 :P


Re: How to make My admin script save scores? - lameguy - 03.02.2010

I'm pretty sure that LAdmin saves the score, but i'm not sure.
You can also change your admin script, almost every script saves the score.
You can also try JAdmin, its saves score, money, kills, deaths, spawns, disconnect loc, connect times, etc...


Re: How to make My admin script save scores? - Jeffry - 03.02.2010

Do you mean that the total kills in /stats = score on TAB?


Re: How to make My admin script save scores? - nastoe - 03.02.2010

Quote:
Originally Posted by Johnson_boy
I'm pretty sure that LAdmin saves the score, but i'm not sure.
You can also change your admin script, almost every script saves the score.
You can also try JAdmin, its saves score, money, kills, deaths, spawns, disconnect loc, connect times, etc...



Re: How to make My admin script save scores? - [WSM]Deadly_Evil - 03.02.2010

i am using My Own Creative Admin Script
JAdmin has not much commands then my Admin Script i have 230+ Commands in my Admin Script


Re: How to make My admin script save scores? - Jeffry - 03.02.2010

Do you mean that the total kills in /stats = score on TAB?
Am i right?
If yes, i can make it for you.





Re: How to make My admin script save scores? - Roperr - 03.02.2010

I would need a score saving system too, because if some1 leaves the server and comes back, he doesn't have the score.


Re: How to make My admin script save scores? - lameguy - 03.02.2010

Saving score is maybe easiest thing in making admin script.
If you have created admin system, you must know how to save score, it's maybe the easiest part.


Re: How to make My admin script save scores? - philmckrakin - 03.02.2010

hello supposing your using dudb to save player data u can do this
Код:
// ok so inside OnPlayerDisconnect do this

if (PInfo[playerid][LoggedIn] == 1)
{
   	// Was loggedin, so save the data!

  	dUserSetINT(PlayerName(playerid)).("Score",GetPlayerScore(playerid));// score save is here
}

// now inside your login command / auto login, do this

SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Score"));// this sets their score to the saved amount
im pretty sure as long as you base your player saving on dudb then this will work (it does for me anyway)




Re: How to make My admin script save scores? - [WSM]Deadly_Evil - 03.02.2010

Thanks i maked myself saving scores