pawn Код:
forward SalvarContas(playerid);
public SalvarContas(playerid)
{
if(fexist(Arquivo(playerid)))
{
new
day,
month,
year,
hour,
minu,
sec
;
getdate(day, month, year);
gettime(hour, minu, sec);
format(InfoGabriel[playerid][pLastLogin], 11, "%02d/%02d/%02d", year, month, day);
format(InfoGabriel[playerid][pLastHour], 9, "%02d:%02d:%02d", hour, minu, sec);
DOF2_SetInt(Arquivo(playerid), "Admin", InfoGabriel[playerid][pAdmin]);
DOF2_SetInt(Arquivo(playerid), "Level", InfoGabriel[playerid][pNivel]);
DOF2_SetInt(Arquivo(playerid), "Vip", InfoGabriel[playerid][pVip]);
DOF2_SetInt(Arquivo(playerid), "Banco", InfoGabriel[playerid][pBanco]);
DOF2_SetInt(Arquivo(playerid), "Emprego", InfoGabriel[playerid][pEmprego]);
DOF2_SetInt(Arquivo(playerid), "Dinheiro", GetPlayerMoneyEx(playerid));
DOF2_SetInt(Arquivo(playerid), "SkinAtual", InfoGabriel[playerid][pSkin]);
DOF2_SetInt(Arquivo(playerid), "Membro", InfoGabriel[playerid][pMembro]);
DOF2_SetInt(Arquivo(playerid), "Lider", InfoGabriel[playerid][pLider]);
DOF2_SetInt(Arquivo(playerid), "Cargo", InfoGabriel[playerid][pCargo]);
DOF2_SetInt(Arquivo(playerid), "Tutorial", InfoGabriel[playerid][pTutorial]);
DOF2_SetInt(Arquivo(playerid), "Sexo", InfoGabriel[playerid][pSexo]);
DOF2_SetInt(Arquivo(playerid), "Pais", InfoGabriel[playerid][pPais]);
DOF2_SetInt(Arquivo(playerid), "LCarro", InfoGabriel[playerid][pLCarro]);
DOF2_SetInt(Arquivo(playerid), "LMoto", InfoGabriel[playerid][pLMoto]);
DOF2_SetInt(Arquivo(playerid), "LAviao", InfoGabriel[playerid][pLAviao]);
DOF2_SetInt(Arquivo(playerid), "LArma", InfoGabriel[playerid][pLArma]);
DOF2_SetInt(Arquivo(playerid), "Camisinhas", InfoGabriel[playerid][pCamisinha]);
DOF2_SetInt(Arquivo(playerid), "Cordas", InfoGabriel[playerid][pCorda]);
DOF2_SetInt(Arquivo(playerid), "Fitas", InfoGabriel[playerid][pFita]);
DOF2_SetInt(Arquivo(playerid), "Cigarros", InfoGabriel[playerid][pCigarro]);
DOF2_SetInt(Arquivo(playerid), "Drogas", InfoGabriel[playerid][pDroga]);
DOF2_SetInt(Arquivo(playerid), "SafeDrogas", InfoGabriel[playerid][pSafeDroga]);
DOF2_SetInt(Arquivo(playerid), "Matou", InfoGabriel[playerid][pMatou]);
DOF2_SetInt(Arquivo(playerid), "Morreu", InfoGabriel[playerid][pMorreu]);
DOF2_SetInt(Arquivo(playerid), "GPS", InfoGabriel[playerid][pGps]);
DOF2_SetInt(Arquivo(playerid), "Cadeia", InfoGabriel[playerid][pCadeia]);
DOF2_SetInt(Arquivo(playerid), "TempoCadeia", InfoGabriel[playerid][pTempoCadeia]);
DOF2_SetInt(Arquivo(playerid), "KeyCarro", InfoGabriel[playerid][pKeyCar]);
DOF2_SetInt(Arquivo(playerid), "ChaveCasa", InfoGabriel[playerid][pChaveCasa]);
DOF2_SetInt(Arquivo(playerid), "SenhaBanco", InfoGabriel[playerid][pSenhaBanco]);
DOF2_SetInt(Arquivo(playerid), "Respeito", InfoGabriel[playerid][pRespeito]);
DOF2_SetInt(Arquivo(playerid), "HorasJogadas", InfoGabriel[playerid][pHorasJogadas]);
DOF2_SetInt(Arquivo(playerid), "VidaMax", InfoGabriel[playerid][pMaxHealth]);
DOF2_SetInt(Arquivo(playerid), "NivelProcurado", InfoGabriel[playerid][pNivelProcurado]);
DOF2_SetString(Arquivo(playerid), "UltimoLogin", InfoGabriel[playerid][pLastLogin]);
DOF2_SetString(Arquivo(playerid), "UltimaHora", InfoGabriel[playerid][pLastHour]);
DOF2_SetInt(Arquivo(playerid), "Colete", InfoGabriel[playerid][pColete]);
DOF2_SetInt(Arquivo(playerid), "Materiais", InfoGabriel[playerid][pMateriais]);
DOF2_SetInt(Arquivo(playerid), "keyBizz", InfoGabriel[playerid][pkeyBizz]);
DOF2_SetInt(Arquivo(playerid), "keysBizz", InfoGabriel[playerid][pkeysBizz]);
DOF2_SetInt(Arquivo(playerid), "timeVip", InfoGabriel[playerid][ptimeVip]);
DOF2_SetInt(Arquivo(playerid), "diaVip", InfoGabriel[playerid][pdiaVip]);
DOF2_SetInt(Arquivo(playerid), "mesVip", InfoGabriel[playerid][pmesVip]);
DOF2_SetInt(Arquivo(playerid), "anoVip", InfoGabriel[playerid][panoVip]);
DOF2_SetInt(Arquivo(playerid), "timeSVip", InfoGabriel[playerid][ptimeSVip]);
DOF2_SetInt(Arquivo(playerid), "timeSVip", InfoGabriel[playerid][ptimeSVip]);
DOF2_SetInt(Arquivo(playerid), "diaSVip", InfoGabriel[playerid][pdiaSVip]);
DOF2_SetInt(Arquivo(playerid), "mesSVip", InfoGabriel[playerid][pmesSVip]);
DOF2_SetInt(Arquivo(playerid), "anoSVip", InfoGabriel[playerid][panoSVip]);
DOF2_SetFloat(Arquivo(playerid), "Pos_x", InfoGabriel[playerid][pPos_x]);
DOF2_SetFloat(Arquivo(playerid), "Pos_y", InfoGabriel[playerid][pPos_y]);
DOF2_SetFloat(Arquivo(playerid), "Pos_z", InfoGabriel[playerid][pPos_z]);
DOF2_SetFloat(Arquivo(playerid), "Pos_a", InfoGabriel[playerid][pPos_a]);
DOF2_SetInt(Arquivo(playerid), "Hotel", InfoGabriel[playerid][pQuartoHotel]);
DOF2_SaveFile();
}
}