Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Define
- #define Pasta_Contas "Contas/%s.ini"
- //Foward
- forward login_dialog(playerid);
- public login_dialog(playerid)
- {
- if(!gPlayerLogged[playerid])
- {
- new string2[150],Str[500],gstring[400];
- format(string2, sizeof(string2), Pasta_Contas, PlayerName(playerid));
- if (gPlayerLogged[playerid] != 1)
- {
- if(fexist(string2))
- {
- //Colocar nome da textdraw aqui
- format(gstring, sizeof gstring,
- "\n{FFFFFF}Sua conta: {00BFFF}%s {FFFFFF}está REGISTRADA\n\n\
- {FFFFFF}Digite sua senha para efetuar o LOGIN\n\n\
- {FF0000}OBS:{FFFFFF} Não passe sua senha á ninguém!\n\n", PlayerName(playerid));
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{FFFFFF}Efetuando {00BFFF}Login", gstring, "Logar", "Sair");//Mecher no dialog que está a text
- }
- else
- {
- //Colocar nome da textdraw aqui
- format(gstring, sizeof gstring,
- "\n{FFFFFF}Bem vindo ao servidor Brasil PlayFacil RPG\n\n\
- {FFFFFF}Sua conta: {00BFFF}%s {FFFFFF}está {FF0000}NÃO REGISTRADA\n\
- {FFFFFF}Digite sua senha para efetuar o REGISTRO\n\n\
- {FF0000}OBS:{FFFFFF} Não passe sua senha á ninguém!\n\n", PlayerName(playerid));
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{FFFFFF}Efetuando {00BFFF}Registro", gstring, "Registrar", "Sair"); //Mecher no dialog que está a text
- }
- // Colocar sistema de login a baixo exemplo : setpos e etc
- }
- return 1;
- }
- BPU::OnPlayerSave(playerid) //Salvamento das contas
- {
- if(gPlayerLogged[playerid])
- {
- new string3[120];
- format(string3, sizeof(string3), Pasta_Contas, PlayerName(playerid));
- PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
- DOF2_SetInt(string3,"Level",PlayerInfo[playerid][pLevel]);
- DOF2_SetString(string3,"Email",PlayerInfo[playerid][pEmail]);
- DOF2_SetInt(string3,"AdminLevel",PlayerInfo[playerid][pAdmin]);
- DOF2_SetString(string3,"AdminFuncao",PlayerInfo[playerid][pFuncao]);
- DOF2_SetInt(string3,"AdminTemp",PlayerInfo[playerid][pAdminTemp]);
- DOF2_SetInt(string3,"HelperLevel",PlayerInfo[playerid][pHelper]);
- DOF2_SetInt(string3,"Securekey",PlayerInfo[playerid][pSeckey]);
- DOF2_SetInt(string3,"DonateRank",PlayerInfo[playerid][pVIP]);
- DOF2_SetInt(string3,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
- DOF2_SetInt(string3,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
- DOF2_SetInt(string3,"Registered",PlayerInfo[playerid][pReg]);
- DOF2_SetInt(string3,"Sex",PlayerInfo[playerid][pSex]);
- DOF2_SetInt(string3,"Muted",PlayerInfo[playerid][pMuted]);
- DOF2_SetInt(string3,"Respect",PlayerInfo[playerid][pExp]);
- DOF2_SetInt(string3,"Money",PlayerInfo[playerid][pCash]);
- DOF2_SetInt(string3,"TempoConce",PlayerInfo[playerid][pTempoConce]);
- DOF2_SetInt(string3,"Bank",PlayerInfo[playerid][pConta]);
- DOF2_SetInt(string3,"Cashing",PlayerInfo[playerid][pCasher]);
- DOF2_SetInt(string3,"Explosivos",PlayerInfo[playerid][pExplosivos]);
- DOF2_SetInt(string3,"Cigarros",PlayerInfo[playerid][pCigarros]);
- DOF2_SetInt(string3,"Mochila",PlayerInfo[playerid][pMochila]);
- DOF2_SetInt(string3,"pJackSkill",PlayerInfo[playerid][pJackSkill]);
- DOF2_SetInt(string3,"Crimes",PlayerInfo[playerid][pCrimes]);
- DOF2_SetInt(string3,"Kills",PlayerInfo[playerid][pKills]);
- DOF2_SetInt(string3,"Deaths",PlayerInfo[playerid][pDeaths]);
- DOF2_SetInt(string3,"Phonebook",PlayerInfo[playerid][pPhoneBook]);
- DOF2_SetInt(string3,"LottoNr",PlayerInfo[playerid][pLottoNr]);
- DOF2_SetInt(string3,"LottoWin",PlayerInfo[playerid][pLottoWin]);
- DOF2_SetInt(string3,"Emprego",PlayerInfo[playerid][pEmprego]);
- DOF2_SetInt(string3,"Caixinha",PlayerInfo[playerid][pCaixinha]);
- DOF2_SetInt(string3,"Paycheck",PlayerInfo[playerid][pSalario]);
- DOF2_SetInt(string3,"HeadValue",PlayerInfo[playerid][pHeadValue]);
- DOF2_SetInt(string3,"HeadValueT",PlayerInfo[playerid][pHeadValueT]);
- DOF2_SetInt(string3,"HeadValueM",PlayerInfo[playerid][pHeadValueM]);
- DOF2_SetInt(string3,"Jailed",PlayerInfo[playerid][pJailed]);
- DOF2_SetInt(string3,"TempoFDrugs",PlayerInfo[playerid][pTempoFDrugs]);
- DOF2_SetInt(string3,"DrugType",PlayerInfo[playerid][pDrugType]);
- DOF2_SetInt(string3,"JailTime",PlayerInfo[playerid][pJailTime]);
- DOF2_SetInt(string3,"Capacete",PlayerInfo[playerid][pCapacete]);
- DOF2_SetInt(string3,"Materiais",PlayerInfo[playerid][pMats]);
- DOF2_SetInt(string3,"Contratos",PlayerInfo[playerid][pContratos]);
- DOF2_SetInt(string3,"Maconha",PlayerInfo[playerid][pDrogas]);
- DOF2_SetInt(string3,"Cocaina",PlayerInfo[playerid][pDrogas2]);
- DOF2_SetInt(string3,"Crack",PlayerInfo[playerid][pDrogas3]);
- DOF2_SetInt(string3,"Gam",PlayerInfo[playerid][pGam]);
- DOF2_SetInt(string3,"PFc",PlayerInfo[playerid][pPFc]);
- DOF2_SetInt(string3,"Mcr",PlayerInfo[playerid][pMcr]);
- DOF2_SetInt(string3,"Coc",PlayerInfo[playerid][pCoc]);
- DOF2_SetInt(string3,"Vam",PlayerInfo[playerid][pVam]);
- DOF2_SetInt(string3,"Vsc",PlayerInfo[playerid][pVsc]);
- DOF2_SetInt(string3,"Líder",PlayerInfo[playerid][pLider]);
- DOF2_SetInt(string3,"Member",PlayerInfo[playerid][pMembro]);
- DOF2_SetInt(string3,"Rank",PlayerInfo[playerid][pCargo]);
- DOF2_SetInt(string3,"Multas",PlayerInfo[playerid][pMultas]);
- DOF2_SetInt(string3,"Char",PlayerInfo[playerid][pSkin]);
- DOF2_SetInt(string3,"ContractTime",PlayerInfo[playerid][pContractTime]);
- DOF2_SetInt(string3,"pegouvip5",PlayerInfo[playerid][pegouvip]);
- DOF2_SetInt(string3,"DetSkill",PlayerInfo[playerid][pDetSkill]);
- DOF2_SetInt(string3,"SexSkill",PlayerInfo[playerid][pSexSkill]);
- DOF2_SetInt(string3,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
- DOF2_SetInt(string3,"LawSkill",PlayerInfo[playerid][pLawSkill]);
- DOF2_SetInt(string3,"MechSkill",PlayerInfo[playerid][pMechSkill]);
- DOF2_SetInt(string3,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
- DOF2_SetInt(string3,"CarSkill",PlayerInfo[playerid][pCarSkill]);
- DOF2_SetInt(string3,"DrogasSkill",PlayerInfo[playerid][pDrogasSkill]);
- DOF2_SetInt(string3,"CookSkill",PlayerInfo[playerid][pCookSkill]);
- DOF2_SetInt(string3,"Limparb",PlayerInfo[playerid][pLimparb]);
- DOF2_SetFloat(string3,"pSHealth",PlayerInfo[playerid][pSHealth]);
- DOF2_SetFloat(string3,"pSArmour",PlayerInfo[playerid][pSArmour]);
- DOF2_SetInt(string3,"PhoneNr",PlayerInfo[playerid][pPnumber]);
- DOF2_SetInt(string3,"TelCor",PlayerInfo[playerid][pTelColor]);
- DOF2_SetInt(string3,"House",PlayerInfo[playerid][pPhousekey]);
- DOF2_SetInt(string3,"AimBot", GetPVarInt(playerid,"WarnningAimbot"));
- DOF2_SetInt(string3,"AutoCbug", GetPVarInt(playerid, "WarnningMacro"));
- DOF2_SetInt(string3,"Bizz",PlayerInfo[playerid][pPbiskey]);
- DOF2_SetInt(string3,"Faz",PlayerInfo[playerid][pPFazkey]);
- DOF2_SetInt(string3,"Spawn",PlayerInfo[playerid][pSpawn]);
- DOF2_SetInt(string3,"SafeMaconha",PlayerInfo[playerid][pSafeDrogas]);
- DOF2_SetInt(string3,"SafeCocaina",PlayerInfo[playerid][pSafeDrogas2]);
- DOF2_SetInt(string3,"SafeCrack",PlayerInfo[playerid][pSafeDrogas3]);
- DOF2_SetInt(string3,"NivelProcurado",WantedPoints[playerid]);
- DOF2_SetInt(string3,"SafeMateriais",PlayerInfo[playerid][psMats]);
- DOF2_SetInt(string3,"Age",PlayerInfo[playerid][pAge]);
- DOF2_SetInt(string3,"AcP",PlayerInfo[playerid][pAcP]);
- DOF2_SetInt(string3,"Ouros",PlayerInfo[playerid][pOuros]);
- DOF2_SetInt(string3,"Avisado",PlayerInfo[playerid][pAviso]);
- DOF2_SetInt(string3,"DiasBanTemp",PlayerInfo[playerid][pDiaBanTemp]);
- DOF2_SetInt(string3,"MesBanTemp",PlayerInfo[playerid][pMesBanTemp]);
- DOF2_SetInt(string3,"AnoBanTemp",PlayerInfo[playerid][pAnoBanTemp]);
- DOF2_SetInt(string3,"DiasVIP",PlayerInfo[playerid][pDiaVIP]);
- DOF2_SetInt(string3,"diasvip",PlayerInfo[playerid][pDiasvip]);
- DOF2_SetInt(string3,"MesVIP",PlayerInfo[playerid][pMesVIP]);
- DOF2_SetInt(string3,"AnoVIP",PlayerInfo[playerid][pAnoVIP]);
- DOF2_SetInt(string3,"diasTO",PlayerInfo[playerid][pDiasTO]);
- DOF2_SetInt(string3,"DiasTO",PlayerInfo[playerid][pDiaTO]);
- DOF2_SetInt(string3,"MesTO",PlayerInfo[playerid][pMesTO]);
- DOF2_SetInt(string3,"AnoTO",PlayerInfo[playerid][pAnoTO]);
- DOF2_SetInt(string3,"TO",PlayerInfo[playerid][pTO]);
- DOF2_SetInt(string3,"OrgVIP",PlayerInfo[playerid][pOrgVIP]);
- DOF2_SetInt(string3,"CarLic",PlayerInfo[playerid][pCarLic]);
- DOF2_SetInt(string3,"FlyLic",PlayerInfo[playerid][pFlyLic]);
- DOF2_SetInt(string3,"BoatLic",PlayerInfo[playerid][pBoatLic]);
- DOF2_SetInt(string3,"GunLic",PlayerInfo[playerid][pGunLic]);
- DOF2_SetInt(string3,"PayDay",PlayerInfo[playerid][pPayDay]);
- DOF2_SetInt(string3,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
- DOF2_SetInt(string3,"Wins",PlayerInfo[playerid][pWins]);
- DOF2_SetInt(string3,"Loses",PlayerInfo[playerid][pLoses]);
- DOF2_SetInt(string3,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
- DOF2_SetInt(string3,"DrugPerk",PlayerInfo[playerid][pDrugPerk]);
- DOF2_SetInt(string3,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
- DOF2_SetInt(string3,"PainPerk",PlayerInfo[playerid][pPainPerk]);
- DOF2_SetInt(string3,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
- DOF2_SetInt(string3,"Tutorial",PlayerInfo[playerid][pTut]);
- DOF2_SetInt(string3,"Avisos",PlayerInfo[playerid][pWarns]);
- DOF2_SetString(string3,"MarriedTo",PlayerInfo[playerid][pMarriedTo]);
- DOF2_SetString(string3,"SERIAL",PlayerInfo[playerid][pSERIAL]);
- DOF2_SetInt(string3,"Married",PlayerInfo[playerid][pMarried]);
- DOF2_SetInt(string3,"Luta",PlayerInfo[playerid][pLuta]);
- DOF2_SetString(string3,"LU",PlayerInfo[playerid][pLaastLogin]);
- DOF2_SetString(string3,"LV",PlayerInfo[playerid][pLastVerification]);
- DOF2_SetInt(string3,"Ban",PlayerInfo[playerid][pBan]);
- DOF2_SetBool(string3,"Ajustado",PlayerInfo[playerid][pAjustado]);
- DOF2_SetBool(string3,"HAjustado",PlayerInfo[playerid][pHAjustado]);
- DOF2_SetBool(string3,"Galao",PlayerInfo[playerid][pGalao]);
- DOF2_SetBool(string3,"Isqueiro",PlayerInfo[playerid][pIsqueiro]);
- DOF2_SetBool(string3,"Patins",PlayerInfo[playerid][pPatins]);
- DOF2_SetBool(string3,"Televisao",PlayerInfo[playerid][pTelevisao]);
- DOF2_SetBool(string3,"Radio",PlayerInfo[playerid][pRadio]);
- DOF2_SetBool(string3,"resetado",PlayerInfo[playerid][pResetado]);
- DOF2_SetInt(string3, "Agendado",PlayerInfo[playerid][pAgendado]);
- DOF2_SetInt(string3, "CoinsAgendado",PlayerInfo[playerid][pCoinsAgendado]);
- DOF2_SetInt(string3, "QCoinAgendado",PlayerInfo[playerid][pQCoinAgendado]);
- DOF2_SetInt(string3, "Sementes", PlayerInfo[playerid][pSementes]);
- DOF2_SetInt(string3,"BiggestFish", PlayerInfo[playerid][pBiggestFish]);
- DOF2_SetInt(string3,"CookSkill", PlayerInfo[playerid][pCookSkill]);
- DOF2_SetInt(string3,"FishSkill", PlayerInfo[playerid][pFishSkill]);
- DOF2_SetInt(string3,"FishLic", PlayerInfo[playerid][pFishLic]);
- DOF2_SetInt(string3,"GasReserva", PlayerInfo[playerid][pGasReserva]);
- DOF2_SetBool(string3, "Hospital", PlayerInfo[playerid][pHospital]);
- DOF2_SetInt(string3,"TempoHospital", PlayerInfo[playerid][pTempoHospital]);
- DOF2_SetBool(string3,"LocalHospital", PlayerInfo[playerid][pLocalHospital]);
- DOF2_SetInt(string3,"PrecoHospital", PlayerInfo[playerid][pPrecoHospital]);
- new str[28];
- for(new i = 1; i < MAX_ITEMS; i++)
- {
- format(str, sizeof str, "ArmasGuardada%d", i);
- DOF2_SetInt(string3,str,ArmasGuardadas[playerid][i]);
- format(str, sizeof str, "BalasGuardada%d", i);
- DOF2_SetInt(string3,str,BalasGuardadas[playerid][i]);
- }
- //Crime
- DOF2_SetString(string3,"cCrime",PlayerCrime[playerid][pAccusedof]);
- DOF2_SetString(string3,"cRelato",PlayerCrime[playerid][pVictim]);
- DOF2_SaveFile();
- SalvarInventario(playerid);
- SalvarAtividade(playerid);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement