Hozz létre egy \"Pontok\" mappát a scriptfiles mappába.
#include a_samp
#include dini
public OnPlayerConnect(playerid)
{
new string[64], nev[MAX_PLAYER_NAME];
format(string, sizeof(string), \"Pontok/%s.ini\", nev);
if(dini_Exists(string)) return SetPlayerScore(playerid, dini_Int(string, \"Pontok\"));
else { dini_Create(string); }
return 1;
}
public OnPlayerDisconnect(playerid)
{
new string[64], nev[MAX_PLAYER_NAME];
format(string, sizeof(string), \"Pontok/%s.ini\", nev);
dini_IntSet(string, \"Pontok\", GetPlayerScore(playerid));
return 1;
}