21.09.2014, 04:32
O que puxa:
OnPlayerDisconnect
O que salva:
pawn Код:
Arquivo(playerid)
{
new str[36];
format(str, 36, "SD/Contas/%s.ini", Nome(playerid));
return str;
}
pawn Код:
SDSalvando(playerid);
DOF2_SaveFile();
pawn Код:
stock SDSalvando(playerid)
{
if(fexist(Arquivo(playerid)) && Logado[playerid] == true) {
DOF2_SetInt(Arquivo(playerid), "Admin", ContaPlayer[playerid][Admin]);
DOF2_SetInt(Arquivo(playerid), "Score", GetPlayerScore(playerid));
DOF2_SetInt(Arquivo(playerid), "Grana", GetPlayerMoney(playerid));
DOF2_SetInt(Arquivo(playerid), "Skin", ContaPlayer[playerid][Skin]);
DOF2_SetInt(Arquivo(playerid), "Preso", ContaPlayer[playerid][Preso]);
DOF2_SetString(Arquivo(playerid), "Pergunta", ContaPlayer[playerid][Pergunta]);
DOF2_SetString(Arquivo(playerid), "Resposta", ContaPlayer[playerid][Resposta]);
DOF2_SetInt(Arquivo(playerid), "Aviso", ContaPlayer[playerid][Aviso]);
DOF2_SaveFile();
}
return 1;
}