11.04.2014, 14:16
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name); // Change path
if(gPlayerLogged[playerid] == 1) // Change your is player logged in
{
dini_IntSet(file, "Score", PInfo[playerid][pScore]); // Change to the settings you made in the enum
}
return 1;
}