01.11.2012, 10:50
Boas,
Queria umas ideias para guardar no Logout do player..
Ja tenho:
Alguem tem ideias?
Queria umas ideias para guardar no Logout do player..
Ja tenho:
pawn Код:
pPassword[129],
pKills,
pDeaths,
pAdmin,
pMoney,
pScore,
pVIP,
OnPlayerLogout(playerid)
{
new
uFile[35];
format(uFile, 35, USER_FILE, GetName(playerid));
new
INI:playerFile = INI_Open(uFile);
INI_WriteInt(playerFile, "Admin", PlayerInfo[playerid][pAdmin]);
INI_WriteInt(playerFile, "VIP", PlayerInfo[playerid][pVIP]);
INI_WriteInt(playerFile, "Money", GetPlayerMoney(playerid));
INI_WriteInt(playerFile, "Score", GetPlayerScore(playerid));
INI_WriteInt(playerFile, "Kills", PlayerInfo[playerid][pKills]);
INI_WriteInt(playerFile, "Deaths", PlayerInfo[playerid][pDeaths]);
INI_WriteInt(playerFile, "Online", PlayerInfo[playerid][pOnline]);
INI_Close(playerFile);
return 1;
}