30.01.2013, 12:25
I don't have a script for you. But you can make a saving score system. With Y_INI or DINI.
Here is an example.
That was to load the file for example. Read Y_INI here: https://sampforum.blast.hk/showthread.php?tid=175565 And try yourself 
There is loads of code i am not giving here, but just an example :P
I can't just give you what you want, you must try yourself
Here is an example.
pawn Код:
stock INI_PATH(playerid)
{
new file[65];
format(file, sizeof(file),"Score/%s.ini",PlayerName(playerid));
return file;
}
//Then, under OnPlayerConnect
public OnPlayerConnect(playerid)
if(fexist(INI_PATH(playerid)))
{
INI_ParseFile(INI_PATH(playerid),"loadscore_%s", .bExtra = true, .extra = playerid);
SetPlayerScore(playerid, AccInfo[playerid][score]);//its sets your score...
}

There is loads of code i am not giving here, but just an example :P
I can't just give you what you want, you must try yourself