Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SalvarPlayer(playerid)
- {
- if(Player[playerid][pLogged] == false) return 0;
- new count = GetTickCount();
- new String[256];
- format(String, sizeof(String), CONTAS, getPName(playerid));
- Player[playerid][pDinheiro] = GetPlayerMoney(playerid);
- Player[playerid][pScore] = GetPlayerScore(playerid);
- Player[playerid][pWanted] = GetPlayerWantedLevel(playerid);
- Player[playerid][pSkin] = GetPlayerSkin(playerid);
- // DOF2_SetInt(String,"Exp", Exp[playerid]);
- // DOF2_SetInt(String,"TExp", TExp[playerid]);
- DOF2_SetInt(String,"Dinheiro", Player[playerid][pDinheiro]);
- DOF2_SetInt(String,"Matou", Player[playerid][pMatou]);
- DOF2_SetInt(String,"Morreu", Player[playerid][pMorreu]);
- DOF2_SetInt(String,"TotalSus", Player[playerid][sutotal]);
- DOF2_SetInt(String,"AbatidosSus", Player[playerid][suabatidos]);
- DOF2_SetInt(String,"Logou", Player[playerid][pVezesLogadas]);
- DOF2_SetInt(String,"Iniciante", Player[playerid][pIniciante]);
- DOF2_SetInt(String,"Cidade", Player[playerid][pCidade]);
- DOF2_SetInt(String,"Admin", Player[playerid][pAdmin]);
- DOF2_SetInt(String,"Traficante", Player[playerid][pTfc]);
- DOF2_SetInt(String,"Sexo", Player[playerid][pSexo]);
- DOF2_SetInt(String,"RadioPortatil",Player[playerid][pRadioP]);
- DOF2_SetInt(String,"DJ", Player[playerid][pDJ]);
- DOF2_SetInt(String,"PM", Player[playerid][pPM]);
- DOF2_SetInt(String,"NivelProcurado", Player[playerid][pProcurado]);
- DOF2_SetInt(String,"EstrelaProcurado", Player[playerid][pWanted]);
- DOF2_SetInt(String,"Choque", Player[playerid][pChoque]);
- DOF2_SetInt(String,"PresoLS", Player[playerid][pPresoLS]);
- DOF2_SetInt(String,"TempoPreso", Player[playerid][pTempoPreso]);
- DOF2_SetInt(String,"Maconha", Player[playerid][pMaconha]);
- DOF2_SetInt(String,"Cocaina", Player[playerid][pCocaina]);
- DOF2_SetInt(String,"Sinalizador", Player[playerid][pSinalizadores]);
- DOF2_SetInt(String,"Banco", Player[playerid][pBanco]);
- DOF2_SetInt(String,"ReporterLS", Player[playerid][pReporterLS]);
- DOF2_SetInt(String,"Emprego", Player[playerid][pEmprego]);
- DOF2_SetInt(String,"IngressoC", Player[playerid][pIngressoCasa]);
- DOF2_SetInt(String,"IngressoV", Player[playerid][pIngressoVisitante]);
- DOF2_SetInt(String,"Pacotes", Player[playerid][pPacotes]);
- DOF2_SetInt(String,"Materiais", Player[playerid][pMateriais]);
- DOF2_SetInt(String,"PresoSF", Player[playerid][pPresoSF]);
- DOF2_SetInt(String,"BOPE", Player[playerid][pBOPE]);
- DOF2_SetInt(String,"GEPE", Player[playerid][pGEPE]);
- DOF2_SetInt(String,"PresoADM", Player[playerid][pPresoADM]);
- DOF2_SetInt(String,"Torcidas", Player[playerid][pTorcida]);
- DOF2_SetInt(String,"Puxador", Player[playerid][pPux]);
- DOF2_SetInt(String,"HorasJogadas", Player[playerid][pScore]);
- DOF2_SetInt(String,"Skin", Player[playerid][pSkin]);
- DOF2_SetInt(String,"Organizador", Player[playerid][pOrganizador]);
- DOF2_SetInt(String,"Presidente", Player[playerid][pPresidente]);
- DOF2_SetInt(String,"BlockKick", Player[playerid][pBlockKick]);
- DOF2_SetInt(String,"IrBlock", Player[playerid][pBir]);
- DOF2_SetInt(String,"TrBlock", Player[playerid][pBtr]);
- DOF2_SetInt(String,"Trazertodos", Player[playerid][pTrazertodos]);
- DOF2_SetInt(String,"Vip", Player[playerid][pVip]);
- DOF2_SetInt(String,"Vip Premium", Player[playerid][pVipM]);
- DOF2_SetInt(String,"Panos", Player[playerid][pPanos]);
- DOF2_SetInt(String,"PanosPerdidos", Player[playerid][pPanosPerdidos]);
- DOF2_SetInt(String,"Reset", Player[playerid][pReset]);
- DOF2_SetInt(String,"TempoOnline", Player[playerid][pOnlineTime]);
- DOF2_SetInt(String,"Online", Player[playerid][Connected]);
- DOF2_SetInt(String,"Helper", Player[playerid][pHelper]);
- DOF2_SetInt(String,"ReportL", Player[playerid][pRel]);
- DOF2_SetInt(String,"StatusHelper", Player[playerid][pStatusHelper]);
- DOF2_SetInt(String,"VolumeRadio", Player[playerid][pVolume]);
- DOF2_SetInt(String,"Radio", Player[playerid][pRadio]);
- DOF2_SetInt(String,"MP3", Player[playerid][pMP3]);
- DOF2_SetInt(String,"DelayNick", Player[playerid][DelayNick]);
- DOF2_SetInt(String,"Fogos", Player[playerid][Fogos]);
- DOF2_SetInt(String,"Penitenciaria", Player[playerid][Penitenciaria]);
- DOF2_SetInt(String,"Camisas", Player[playerid][Camisas]);
- DOF2_SetInt(String,"BermudasTomada", Player[playerid][BermudasTomada]);
- DOF2_SetInt(String,"BermudasPerdida", Player[playerid][BermudasPerdida]);
- DOF2_SetInt(String,"Bermudas", Player[playerid][Bermudas]);
- DOF2_SetInt(String,"Coins", Player[playerid][Coins]);
- DOF2_SetInt(String,"Vehicle", Player[playerid][Vehicle]);
- DOF2_SetInt(String,"SpawnArmour", Player[playerid][SpawnArmour]);
- DOF2_SetInt(String,"WarnDC", Player[playerid][WarnDC]);
- DOF2_SetInt(String,"AvisoDC", Player[playerid][AvisoDC]);
- DOF2_SetInt(String,"WeaponCoin", Player[playerid][WeaponCoin]);
- DOF2_SetInt(String,"TemPergunta", Player[playerid][TemPergunta]);
- DOF2_SetInt(String,"Presidente", Player[playerid][pPresidente]);
- DOF2_SetInt(String,"pBlockChat", Player[playerid][pBlockChat]);
- DOF2_SetInt(String,"PunVIP", Player[playerid][pPunVIP]);
- DOF2_SetInt(String,"PunORG", Player[playerid][pPunORG]);
- if(Player[playerid][BlockPM] == true) {
- DOF2_SetInt(String,"StatusPM", 1);
- } else DOF2_SetInt(String,"StatusPM", 0);
- DOF2_SetInt(String,MonthStringKills,Player[playerid][pMonthKills], "months_status");
- DOF2_SetInt(String,MonthStringDeaths,Player[playerid][pMonthDeaths], "months_status");
- new date[32];
- new hour, minute, second, day, month, year;
- gettime(hour, minute, second);
- getdate(year, month, day);
- format(date, 32,"%d/%d/%d/%d/%d/%d",day,month,year,hour, minute, second);
- DOF2_SetString(String,"LastLogin", date);
- DOF2_SetInt(String,"LastLoginTick", Now());
- DOF2_SaveFile();
- printf("Testando o tempo do SalvarPlayer: %d", GetTickCount() - count);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment