[Ajuda] Conta de admin Logando com qualquer senha
#1

entгo, estou usando a GM do PlayFacil , e quando os players erra a senha aparece tudo normal, mais quando o admin vai logar e digita qualquer senha da pra logar de boa.

se alguйm souber ajuda ai por favor.
Reply
#2

Posta o code amigo, do Login '-'
Reply
#3

faзa um debug, no sistema de login na parte que verifica se o player й admin faзa outro debug, e veja se tudo estб sendo executado conforme o previsto
Reply
#4

Poste o cуdigo para que a gente possa te ajudar.
Reply
#5

Entгo, tentei de vбrias maneiras corrigir esse bug, mas ainda ele continua enchendo o saco.

Quote:

BPS::OnPlayerLogin(playerid,password[])
{
new string[200];
new gstring[400];
new senhaa[128];
if(NaoPodeLogar[playerid] == 1)
{
ForceClassSelection(playerid);
return true;
}
new tmp2[ 255 ];
new string2[74];
format(senhaa, sizeof(senhaa), Pasta_Contas, PlayerName(playerid));
strmid(PlayerInfo[playerid][pKey], DOF2_GetString(senhaa, "Key"), 0, strlen(DOF2_GetString(senhaa, "Key")), 255);
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 || strcmp(sSenhaMestra,password, true ) == 0)
{
if(PlayerInfo[playerid][pReg] == 0)
{
format(string2, sizeof(string2), Pasta_Contas, PlayerName(playerid));
PlayerInfo[playerid][pLevel] = DOF2_GetInt(string2, "Level");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(string2, "AdminLevel");
strmid(PlayerInfo[playerid][pFuncao],DOF2_GetString(string2,"AdminFuncao"),0,strlen(DO F2_GetString(string2,"AdminFuncao")),255);
PlayerInfo[playerid][pAdminTemp] = DOF2_GetInt(string2, "AdminTemp");
PlayerInfo[playerid][pHelper] = DOF2_GetInt(string2, "HelperLevel");
PlayerInfo[playerid][pSeckey] = DOF2_GetInt(string2, "Securekey");
PlayerInfo[playerid][pVIP] = DOF2_GetInt(string2, "DonateRank");
PlayerInfo[playerid][gPupgrade] = DOF2_GetInt(string2, "UpgradePoints");
PlayerInfo[playerid][pConnectTime] = DOF2_GetInt(string2, "ConnectedTime");
PlayerInfo[playerid][pReg] = DOF2_GetInt(string2, "Registered");
PlayerInfo[playerid][pSex] = DOF2_GetInt(string2, "Sex");
PlayerInfo[playerid][pMuted] = DOF2_GetInt(string2, "Muted");
PlayerInfo[playerid][pExp] = DOF2_GetInt(string2, "Respect");
PlayerInfo[playerid][pCash] = DOF2_GetInt(string2, "Money");
PlayerInfo[playerid][pTempoConce] = DOF2_GetInt(string2, "TempoConce");
PlayerInfo[playerid][pConta] = DOF2_GetInt(string2, "Bank");
PlayerInfo[playerid][pCasher] = DOF2_GetInt(string2, "Cashing");
PlayerInfo[playerid][pJackSkill] = DOF2_GetInt(string2, "pJackSkill");
PlayerInfo[playerid][pCrimes] = DOF2_GetInt(string2, "Crimes");
PlayerInfo[playerid][pKills] = DOF2_GetInt(string2, "Kills");
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(string2, "Deaths");
PlayerInfo[playerid][pContratos] = DOF2_GetInt(string2, "Contratos");
PlayerInfo[playerid][pPhoneBook] = DOF2_GetInt(string2, "Phonebook");
PlayerInfo[playerid][pLottoNr] = DOF2_GetInt(string2, "LottoNr");
PlayerInfo[playerid][pLottoWin] = DOF2_GetInt(string2, "LottoWin");
PlayerInfo[playerid][pEmprego] = DOF2_GetInt(string2, "Emprego");
PlayerInfo[playerid][pSalario] = DOF2_GetInt(string2, "Paycheck");
PlayerInfo[playerid][pExplosivos] = DOF2_GetInt(string2, "Explosivos");
PlayerInfo[playerid][pCigarros] = DOF2_GetInt(string2, "Cigarros");
PlayerInfo[playerid][pMochila] = DOF2_GetInt(string2, "Mochila");
PlayerInfo[playerid][pHeadValue] = DOF2_GetInt(string2, "HeadValue");
PlayerInfo[playerid][pHeadValueT] = DOF2_GetInt(string2, "HeadValueT");
PlayerInfo[playerid][pHeadValueM] = DOF2_GetInt(string2, "HeadValueM");
PlayerInfo[playerid][pJailed] = DOF2_GetInt(string2, "Jailed");
PlayerInfo[playerid][pTempoFDrugs] = DOF2_GetInt(string2, "TempoFDrugs");
PlayerInfo[playerid][pDrugType] = DOF2_GetInt(string2, "DrugType");
PlayerInfo[playerid][pMultas] = DOF2_GetInt(string2, "Multas");
PlayerInfo[playerid][pJailTime] = DOF2_GetInt(string2, "JailTime");
PlayerInfo[playerid][pCapacete] = DOF2_GetInt(string2, "Capacete");
PlayerInfo[playerid][pMats] = DOF2_GetInt(string2, "Materiais");
PlayerInfo[playerid][pDrogas] = DOF2_GetInt(string2, "Maconha");
PlayerInfo[playerid][pDrogas2] = DOF2_GetInt(string2, "Cocaina");
PlayerInfo[playerid][pDrogas3] = DOF2_GetInt(string2, "Crack");
PlayerInfo[playerid][pGam] = DOF2_GetInt(string2, "Gam");
PlayerInfo[playerid][pPFc] = DOF2_GetInt(string2, "PFc");
PlayerInfo[playerid][pMcr] = DOF2_GetInt(string2, "Mcr");
PlayerInfo[playerid][pCoc] = DOF2_GetInt(string2, "Coc");
PlayerInfo[playerid][pVam] = DOF2_GetInt(string2, "Vam");
PlayerInfo[playerid][pVsc] = DOF2_GetInt(string2, "Vsc");
PlayerInfo[playerid][pLider] = DOF2_GetInt(string2, "Lнder");
PlayerInfo[playerid][pMembro] = DOF2_GetInt(string2, "Member");
PlayerInfo[playerid][pCaixinha] = DOF2_GetInt(string2, "Caixinha");
SetPVarInt(playerid, "WarnningAimbot", DOF2_GetInt(string2, "AimBot"));
SetPVarInt(playerid, "WarnningMacro", DOF2_GetInt(string2, "AutoCbug"));
PlayerInfo[playerid][pCargo] = DOF2_GetInt(string2, "Rank");
PlayerInfo[playerid][pSkin] = DOF2_GetInt(string2, "Char");
PlayerInfo[playerid][pContractTime] = DOF2_GetInt(string2, "ContractTime");
PlayerInfo[playerid][pAjustado] = DOF2_GetBool(string2, "Ajustado");
PlayerInfo[playerid][pHAjustado] = DOF2_GetBool(string2, "HAjustado");
PlayerInfo[playerid][pegouvip] = DOF2_GetInt(string2, "pegouvip5");
PlayerInfo[playerid][pResetado] = DOF2_GetBool(string2, "resetado");
PlayerInfo[playerid][pGalao] = DOF2_GetBool(string2, "Galao");
PlayerInfo[playerid][pIsqueiro] = DOF2_GetBool(string2, "Isqueiro");
PlayerInfo[playerid][pPatins] = DOF2_GetBool(string2, "Patins");
PlayerInfo[playerid][pRadio] = DOF2_GetBool(string2, "Radio");
PlayerInfo[playerid][pTelevisao] = DOF2_GetBool(string2, "Televisao");
PlayerInfo[playerid][pDetSkill] = DOF2_GetInt(string2, "DetSkill");
PlayerInfo[playerid][pSexSkill] = DOF2_GetInt(string2, "SexSkill");
PlayerInfo[playerid][pBoxSkill] = DOF2_GetInt(string2, "BoxSkill");
PlayerInfo[playerid][pLawSkill] = DOF2_GetInt(string2, "LawSkill");
PlayerInfo[playerid][pMechSkill] = DOF2_GetInt(string2, "MechSkill");
PlayerInfo[playerid][pNewsSkill] = DOF2_GetInt(string2, "NewsSkill");
PlayerInfo[playerid][pCarSkill] = DOF2_GetInt(string2, "CarSkill");
PlayerInfo[playerid][pDrogasSkill] = DOF2_GetInt(string2, "DrogasSkill");
PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2, "CookSkill");
PlayerInfo[playerid][pLimparb] = DOF2_GetInt(string2, "Limparb");
PlayerInfo[playerid][pSHealth] = DOF2_GetFloat(string2, "pSHealth");
PlayerInfo[playerid][pSArmour] = DOF2_GetFloat(string2, "pSArmour");
PlayerInfo[playerid][pPnumber] = DOF2_GetInt(string2, "PhoneNr");
PlayerInfo[playerid][pTelColor] = DOF2_GetInt(string2, "TelCor");
PlayerInfo[playerid][pPhousekey] = DOF2_GetInt(string2, "House");
PlayerInfo[playerid][pPbiskey] = DOF2_GetInt(string2, "Bizz");
PlayerInfo[playerid][pPFazkey] = DOF2_GetInt(string2, "Faz");
PlayerInfo[playerid][pPos_x] = DOF2_GetFloat(string2, "Pos_x");
PlayerInfo[playerid][pPos_y] = DOF2_GetFloat(string2, "Pos_y");
PlayerInfo[playerid][pPos_z] = DOF2_GetFloat(string2, "Pos_z");
PlayerInfo[playerid][pCarLic] = DOF2_GetInt(string2, "CarLic");
PlayerInfo[playerid][pFlyLic] = DOF2_GetInt(string2, "FlyLic");
PlayerInfo[playerid][pBoatLic] = DOF2_GetInt(string2, "BoatLic");
PlayerInfo[playerid][pGunLic] = DOF2_GetInt(string2, "GunLic");
PlayerInfo[playerid][pPayDay] = DOF2_GetInt(string2, "PayDay");
PlayerInfo[playerid][pCDPlayer] = DOF2_GetInt(string2, "CDPlayer");
PlayerInfo[playerid][pWins] = DOF2_GetInt(string2, "Wins");
PlayerInfo[playerid][pLoses] = DOF2_GetInt(string2, "Loses");
PlayerInfo[playerid][pAlcoholPerk] = DOF2_GetInt(string2, "AlcoholPerk");
PlayerInfo[playerid][pDrugPerk] = DOF2_GetInt(string2, "DrugPerk");
PlayerInfo[playerid][pMiserPerk] = DOF2_GetInt(string2, "MiserPerk");
PlayerInfo[playerid][pPainPerk] = DOF2_GetInt(string2, "PainPerk");
PlayerInfo[playerid][pTraderPerk] = DOF2_GetInt(string2, "TraderPerk");
PlayerInfo[playerid][pTut] = DOF2_GetInt(string2, "Tutorial");
PlayerInfo[playerid][pWarns] = DOF2_GetInt(string2, "Avisos");
PlayerInfo[playerid][pMarried] = DOF2_GetInt(string2, "Married");
strmid(PlayerInfo[playerid][pMarriedTo],DOF2_GetString(string2,"MarriedTo"),0,strlen(DOF2 _GetString(string2,"MarriedTo")),255);
strmid(PlayerInfo[playerid][pEmail],DOF2_GetString(string2,"Email"),0,strlen(DOF2_Get String(string2,"Email")),255);
strmid(PlayerInfo[playerid][pSERIAL],DOF2_GetString(string2,"SERIAL"),0,strlen(DOF2_Ge tString(string2,"SERIAL")),255);
strmid(PlayerCrime[playerid][pAccusedof],DOF2_GetString(string2,"cCrime"),0,strlen(DOF2_Ge tString(string2,"cCrime")),255);
strmid(PlayerCrime[playerid][pVictim],DOF2_GetString(string2,"cRelato"),0,strlen(DOF2_G etString(string2,"cRelato")),255);
PlayerInfo[playerid][pSpawn] = DOF2_GetInt(string2, "Spawn");
PlayerInfo[playerid][pSafeDrogas] = DOF2_GetInt(string2, "SafeMaconha");
PlayerInfo[playerid][pSafeDrogas2] = DOF2_GetInt(string2, "SafeCocaina");
PlayerInfo[playerid][pSafeDrogas3] = DOF2_GetInt(string2, "SafeCrack");
PlayerInfo[playerid][psMats] = DOF2_GetInt(string2, "SafeMateriais");
WantedPoints[playerid] = DOF2_GetInt(string2, "NivelProcurado");
PlayerInfo[playerid][pLuta] = DOF2_GetInt(string2, "Luta");
strmid(PlayerInfo[playerid][pLaastLogin],DOF2_GetString(string2,"LU"),0,strlen(DOF2_GetStr ing(string2,"LU")),255);
strmid(PlayerInfo[playerid][pLastVerification],DOF2_GetString(string2,"LV"),0,strlen(DOF2_GetStr ing(string2,"LV")),255);
PlayerInfo[playerid][pBan] = DOF2_GetInt(string2, "Ban");
PlayerInfo[playerid][pAge] = DOF2_GetInt(string2, "Age");
PlayerInfo[playerid][pAcP] = DOF2_GetInt(string2, "AcP");
PlayerInfo[playerid][pOuros] = DOF2_GetInt(string2, "Ouros");
PlayerInfo[playerid][pAviso] = DOF2_GetInt(string2, "Avisado");
PlayerInfo[playerid][pDiaBanTemp] = DOF2_GetInt(string2, "DiasBanTemp");
PlayerInfo[playerid][pMesBanTemp] = DOF2_GetInt(string2, "MesBanTemp");
PlayerInfo[playerid][pAnoBanTemp] = DOF2_GetInt(string2, "AnoBanTemp");
PlayerInfo[playerid][pDiaVIP] = DOF2_GetInt(string2, "DiasVIP");
PlayerInfo[playerid][pDiasvip] = DOF2_GetInt(string2, "diasvip");
PlayerInfo[playerid][pMesVIP] = DOF2_GetInt(string2, "MesVIP");
PlayerInfo[playerid][pAnoVIP] = DOF2_GetInt(string2, "AnoVIP");
PlayerInfo[playerid][pDiasTO] = DOF2_GetInt(string2, "diasTO");
PlayerInfo[playerid][pDiaTO] = DOF2_GetInt(string2, "DiasTO");
PlayerInfo[playerid][pMesTO] = DOF2_GetInt(string2, "MesTO");
PlayerInfo[playerid][pAnoTO] = DOF2_GetInt(string2, "AnoTO");
PlayerInfo[playerid][pTO] = DOF2_GetInt(string2, "TO");
PlayerInfo[playerid][pOrgVIP] = DOF2_GetInt(string2, "OrgVIP");
strmid(PlayerInfo[playerid][pAdminAgendou],DOF2_GetString(string2,"AdminAgendou"),0,strlen(D OF2_GetString(string2,"AdminAgendou")),255);
strmid(PlayerInfo[playerid][pMotivoAgendou],DOF2_GetString(string2,"MotivoAgendou"),0,strlen( DOF2_GetString(string2,"MotivoAgendou")),255);
PlayerInfo[playerid][pAgendado] = DOF2_GetInt(string2, "Agendado");
PlayerInfo[playerid][pCoinsAgendado] = DOF2_GetInt(string2, "CoinsAgendado");
PlayerInfo[playerid][pTempoAgendado] = DOF2_GetInt(string2, "TempoAgendado");
PlayerInfo[playerid][pQCoinAgendado] = DOF2_GetInt(string2, "QCoinAgendado");
PlayerInfo[playerid][pSementes] = DOF2_GetInt(string2, "Sementes");
PlayerInfo[playerid][pBiggestFish] = DOF2_GetInt(string2,"BiggestFish");
PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2,"CookSkill");
PlayerInfo[playerid][pFishSkill] = DOF2_GetInt(string2,"FishSkill");
PlayerInfo[playerid][pFishLic] = DOF2_GetInt(string2,"FishLic");
PlayerInfo[playerid][pGasReserva] = DOF2_GetInt(string2,"GasReserva");
PlayerInfo[playerid][pHospital] = DOF2_GetBool(string2, "Hospital");
PlayerInfo[playerid][pTempoHospital] = DOF2_GetInt(string2, "TempoHospital");
PlayerInfo[playerid][pLocalHospital] = DOF2_GetBool(string2, "LocalHospital");
PlayerInfo[playerid][pPrecoHospital] = DOF2_GetInt(string2, "PrecoHospital");

new str[28];
for(new i = 1; i < MAX_ITEMS; i++)
{
format(str, sizeof str, "ArmasGuardada%d", i);
ArmasGuardadas[playerid][i] = DOF2_GetInt(string2,str);

format(str, sizeof str, "BalasGuardada%d", i);
BalasGuardadas[playerid][i] = DOF2_GetInt(string2,str);
}
}
if(PlayerInfo[playerid][pLastVerification] == 0) {
getdate(year, month, day);
format(string, sizeof(string),"%02d/%02d/%d",day,month,year);
strmid(PlayerInfo[playerid][pLastVerification],string,0,strlen(string),255); }
logouagora[playerid] = 1;
CarregarInventario(playerid);
CheckOwner(playerid);
CheckOwnerb(playerid);
CheckOwnerf(playerid);
CheckOwnerh(playerid);
CarregarAtividade(playerid);
}
else
{
strmid(PlayerInfo[playerid][pEmail],DOF2_GetString(string2,"Email"),0,strlen(DOF2_Get String(string2,"Email")),255);
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
getdate(Ano, Mes, Dia);
format(string, sizeof string,
"{FF0000}•• {FFFFFF}Vocк digitou a senha incorretamente [{FF0000}%d/5{FFFFFF}]", ErrouSenha[playerid]);
SendClientMessage(playerid, COLOR_WHITE, string);
ErrouSenha[playerid]++;
if(ErrouSenha[playerid] >= 6)
{
ErrouSenha[playerid] = 0;
format(string, sizeof string, "{00B9F6}Olб {FFFFFF}%s, {00B9F6}digite seu email corretamente\n\
Serб Enviado um E-mail com sua Senha Correta!", NomePlayer(playerid));
ShowPlayerDialog(playerid, 2829, DIALOG_STYLE_INPUT, "Recuperaзгo de Senha", string, "Validar", "");
return 1;
}

format(gstring, sizeof gstring,
"\n{00BFFF}•• {FFFFFF}Sua conta: {00BFFF}%s {FFFFFF}estб REGISTRADA\n\n\
{00BFFF}•• {FFFFFF}Digite sua senha para efetuar o LOGIN\n\n\
{FF0000}•• {FFFFFF}OBS: Nгo passe sua senha б ninguйm!\n\n", PlayerName(playerid));
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{FFFFFF}Efetuando {00BFFF}Login", gstring, "Logar", "Sair");

return true;
}
if(PlayerInfo[playerid][pReg] == 0)
{
for(new i; i < 100; i++)
{
SendClientMessageToAll(COLOR_LIGHTBLUE, " ");
}

Reply
#6

What the fuck is this.

'-'
300 linhas sу para logar
й Thug ? GF ou oq
Reply
#7

cуdigo mal feito kkkk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)