17.12.2012, 20:38
Exemplo Algumas senhas estao bugando nao conseguem logar mas outras senhas como 123456 entram se eu ponho 2468 nao loga pq ?
PHP код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Contas/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[32];
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pConta]);fwrite(hFile, var);
format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pSalario]);fwrite(hFile, var);
format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 32, "HeadValueT=%d\n",PlayerInfo[playerid][pHeadValueT]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Materiais=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 32, "Capacete=%d\n",PlayerInfo[playerid][pCapacete]);fwrite(hFile, var);
format(var, 32, "Maconha=%d\n",PlayerInfo[playerid][pDrogas]);fwrite(hFile, var);
format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pDrogas2]);fwrite(hFile, var);
format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pDrogas3]);fwrite(hFile, var);
format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
format(var, 32, "Char=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
format(var, 32, "origin=%d\n",PlayerInfo[playerid][pOrigem]);fwrite(hFile, var);
format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "House=%d\n",PlayerInfo[playerid][pPHousekey]);fwrite(hFile, var);
format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
format(var, 32, "SafeMaconha=%d\n",PlayerInfo[playerid][pSafeDrogas]);fwrite(hFile, var);
format(var, 32, "SafeCocaina=%d\n",PlayerInfo[playerid][pSafeDrogas2]);fwrite(hFile, var);
format(var, 32, "SafeCrack=%d\n",PlayerInfo[playerid][pSafeDrogas3]);fwrite(hFile, var);
format(var, 32, "NivelProcurado=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
format(var, 32, "SafeMateriais=%d\n",PlayerInfo[playerid][psMats]);fwrite(hFile, var);
format(var, 32, "TestVip=%d\n",PlayerInfo[playerid][pTimeVIP]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
format(var, 32, "Ouros=%d\n",PlayerInfo[playerid][pOuros]);fwrite(hFile, var);
format(var, 32, "Avisado=%d\n",PlayerInfo[playerid][pAviso]);fwrite(hFile, var);
format(var, 32, "Fome=%d\n",PlayerInfo[playerid][pFome]);fwrite(hFile, var);
format(var, 32, "PegouVIP=%d\n",PlayerInfo[playerid][pPVIP]);fwrite(hFile, var);
format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "Avisos=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
format(var, 32, "Luta=%d\n",PlayerInfo[playerid][pLuta]);fwrite(hFile, var);
format(var, 32, "Dorgado=%d\n",PlayerInfo[playerid][pDorgado]);fwrite(hFile, var);
format(var, 32, "Dorgado2=%d\n",PlayerInfo[playerid][pDorgado2]);fwrite(hFile, var);
format(var, 32, "Doenca=%d\n",PlayerInfo[playerid][pDoenca]);fwrite(hFile, var);
format(var, 32, "LU=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
format(var, 32, "Ban=%d\n",PlayerInfo[playerid][pBan]);fwrite(hFile, var);
format(var, 32, "TempoHospital=%d\n",PlayerInfo[playerid][pTempoHospitalizado]);fwrite(hFile, var);
format(var, 32, "HospitalID=%d\n",PlayerInfo[playerid][pHospitalID]);fwrite(hFile, var);
fclose(hFile);
TotalRegistro++;
SalvarNumeroRegistrados();
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "•|SERVER|•: Vocк agora pode digitar sua senha para Logar");
format(gstring,128,"*** Bem vindo novamente %s ***\n*** Vocк esta registrado ***\n*** Digite sua senha para logar ***",PlayerName(playerid));
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Logando...",gstring, "Logar", "Sair");
TextDrawShowForPlayer(playerid, entrada);
TextDrawShowForPlayer(playerid, entrada2);
SetPlayerCameraPos( playerid, -2864.7883, 264.9134, 23.1133 );
SetPlayerCameraLookAt( playerid, -2864.4394, 254.9195, 20.8638 );
XXAirBreak[playerid] += 3;SetPlayerPos(playerid, -2870.0090,272.1401,5.6831);
SetPlayerInterior(playerid, 0);
}
}
return true;
}
public OnPlayerLogin(playerid,password[])
{
if(NaoPodeLogar[playerid] == 1)
{
ForceClassSelection(playerid);
return true;
}
new tmp2[256];
new string2[64];
format(string2, sizeof(string2), "Contas/%s.ini", PlayerName(playerid));
strmid(PlayerInfo[playerid][pKey], DOF2_GetString(string2, "Key"), 0, strlen(DOF2_GetString(string2, "Key")), 255);
if(strcmp(PlayerInfo[playerid][pKey],password, true) == 0)
{
PlayerInfo[playerid][pLevel] = DOF2_GetInt(string2, "Level");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(string2, "AdminLevel");
PlayerInfo[playerid][pHelper] = DOF2_GetInt(string2, "HelperLevel");
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][pConta] = DOF2_GetInt(string2, "Bank");
PlayerInfo[playerid][pCrimes] = DOF2_GetInt(string2, "Crimes");
PlayerInfo[playerid][pKills] = DOF2_GetInt(string2, "Kills");
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(string2, "Deaths");
PlayerInfo[playerid][pPhoneBook] = DOF2_GetInt(string2, "Phonebook");
PlayerInfo[playerid][pLottoNr] = DOF2_GetInt(string2, "LottoNr");
PlayerInfo[playerid][pEmprego] = DOF2_GetInt(string2, "Emprego");
PlayerInfo[playerid][pSalario] = DOF2_GetInt(string2, "Paycheck");
PlayerInfo[playerid][pHeadValue] = DOF2_GetInt(string2, "HeadValue");
PlayerInfo[playerid][pHeadValueT] = DOF2_GetInt(string2, "HeadValueT");
PlayerInfo[playerid][pJailed] = DOF2_GetInt(string2, "Jailed");
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][pLider] = DOF2_GetInt(string2, "Lider");
PlayerInfo[playerid][pMembro] = DOF2_GetInt(string2, "Member");
PlayerInfo[playerid][pCargo] = DOF2_GetInt(string2, "Rank");
PlayerInfo[playerid][pSkin] = DOF2_GetInt(string2, "Char");
PlayerInfo[playerid][pOrigem] = DOF2_GetInt(string2, "origin");
PlayerInfo[playerid][pContractTime] = DOF2_GetInt(string2, "ContractTime");
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][pDrogasSkill] = DOF2_GetInt(string2, "DrogasSkill");
PlayerInfo[playerid][pCookSkill] = DOF2_GetInt(string2, "CookSkill");
PlayerInfo[playerid][pSHealth] = DOF2_GetFloat(string2, "pSHealth");
PlayerInfo[playerid][pSArmour] = DOF2_GetFloat(string2, "pSArmour");
PlayerInfo[playerid][pTeam] = DOF2_GetInt(string2, "Team");
PlayerInfo[playerid][pPnumber] = DOF2_GetInt(string2, "PhoneNr");
PlayerInfo[playerid][pPHousekey] = DOF2_GetInt(string2, "House");
PlayerInfo[playerid][pPbiskey] = DOF2_GetInt(string2, "Bizz");
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);
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][pTimeVIP] = DOF2_GetInt(string2, "TestVip");
PlayerInfo[playerid][pLuta] = DOF2_GetInt(string2, "Luta");
PlayerInfo[playerid][pDorgado] = DOF2_GetInt(string2, "Dorgado");
PlayerInfo[playerid][pDorgado2] = DOF2_GetInt(string2, "Dorgado2");
PlayerInfo[playerid][pDoenca] = DOF2_GetInt(string2, "Doenca");
strmid(PlayerInfo[playerid][pLastLogin],DOF2_GetString(string2,"LU"),0,strlen(DOF2_GetString(string2,"LU")),255);
PlayerInfo[playerid][pBan] = DOF2_GetInt(string2, "Ban");
PlayerInfo[playerid][pAge] = DOF2_GetInt(string2, "Age");
PlayerInfo[playerid][pOuros] = DOF2_GetInt(string2, "Ouros");
PlayerInfo[playerid][pAviso] = DOF2_GetInt(string2, "Avisado");
PlayerInfo[playerid][pFome] = DOF2_GetInt(string2, "Fome");
PlayerInfo[playerid][pPVIP] = DOF2_GetInt(string2, "PegouVIP");
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][pMesVIP] = DOF2_GetInt(string2, "MesVIP");
PlayerInfo[playerid][pAnoVIP] = DOF2_GetInt(string2, "AnoVIP");
strmid(PlayerInfo[playerid][pAdminAgendou],DOF2_GetString(string2,"AdminAgendou"),0,strlen(DOF2_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][pTempoAgendado] = DOF2_GetInt(string2, "TempoAgendado");
PlayerInfo[playerid][pTempoHospitalizado] = DOF2_GetInt(string2, "TempoHospital");
PlayerInfo[playerid][pHospitalID] = DOF2_GetInt(string2, "HospitalID");
PlayerInfo[playerid][pGun1] = DOF2_GetInt(string2, "Armas1");
PlayerInfo[playerid][pGun2] = DOF2_GetInt(string2, "Armas2");
PlayerInfo[playerid][pGun3] = DOF2_GetInt(string2, "Armas3");
PlayerInfo[playerid][pGun4] = DOF2_GetInt(string2, "Armas4");
PlayerInfo[playerid][pGun5] = DOF2_GetInt(string2, "Armas5");
PlayerInfo[playerid][pGun6] = DOF2_GetInt(string2, "Armas6");
PlayerInfo[playerid][pGun7] = DOF2_GetInt(string2, "Armas7");
PlayerInfo[playerid][pGun8] = DOF2_GetInt(string2, "Armas8");
PlayerInfo[playerid][pGun9] = DOF2_GetInt(string2, "Armas9");
PlayerInfo[playerid][pGun10] = DOF2_GetInt(string2, "Armas10");
PlayerInfo[playerid][pGun11] = DOF2_GetInt(string2, "Armas11");
PlayerInfo[playerid][pGun12] = DOF2_GetInt(string2, "Armas12");
PlayerInfo[playerid][pAmmo1] = DOF2_GetInt(string2, "Balas1");
PlayerInfo[playerid][pAmmo2] = DOF2_GetInt(string2, "Balas2");
PlayerInfo[playerid][pAmmo3] = DOF2_GetInt(string2, "Balas3");
PlayerInfo[playerid][pAmmo4] = DOF2_GetInt(string2, "Balas4");
PlayerInfo[playerid][pAmmo5] = DOF2_GetInt(string2, "Balas5");
PlayerInfo[playerid][pAmmo6] = DOF2_GetInt(string2, "Balas6");
PlayerInfo[playerid][pAmmo7] = DOF2_GetInt(string2, "Balas7");
PlayerInfo[playerid][pAmmo8] = DOF2_GetInt(string2, "Balas8");
PlayerInfo[playerid][pAmmo9] = DOF2_GetInt(string2, "Balas9");
PlayerInfo[playerid][pAmmo10] = DOF2_GetInt(string2, "Balas10");
PlayerInfo[playerid][pAmmo11] = DOF2_GetInt(string2, "Balas11");
PlayerInfo[playerid][pAmmo12] = DOF2_GetInt(string2, "Balas12");
logouagora[playerid] = 1;
CheckOwner(playerid);
CheckOwnerb(playerid);
CheckOwnerh(playerid);
}
else
{
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
getdate(Ano, Mes, Dia);
SendClientMessage(playerid, COLOR_WHITE, "Sua senha nгo esta combinando com seu nick, se errar 5 Vezes serб banido do servidor");
SetPlayerCameraPos( playerid, -2864.7883, 264.9134, 23.1133 );
SetPlayerCameraLookAt( playerid, -2864.4394, 254.9195, 20.8638 );
XXAirBreak[playerid] += 3;SetPlayerPos(playerid, -2870.0090,272.1401,5.6831);
SetPlayerInterior(playerid, 0);
format(gstring,128,"*** Bem vindo novamente %s ***\n*** Vocк esta registrado ***\n*** Digite sua senha para logar ***",PlayerName(playerid));
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Logando...",gstring, "Logar", "Sair");
TextDrawShowForPlayer(playerid, entrada);
TextDrawShowForPlayer(playerid, entrada2);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5)
{
new stri[64], tmp[20], tmp3[20], ip[16];
GetPlayerIp(playerid, ip, sizeof ip);
format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
getdate(Ano, Mes, Dia);
format(tmp, 20, "%d/%d/%d", Dia, Mes, Ano);
gettime(Hora, Minuto, Segundo);
format(tmp3, 20, "%d:%ud:%d", Hora, Minuto, Segundo);
format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
DOF2_CreateFile(stri);
DOF2_SetString(stri,"Motivo","Errou a senha 5 vezes");
DOF2_SetString(stri,"Admin","Automatico");
DOF2_SetString(stri,"Data",tmp);
DOF2_SetString(stri,"Hora",tmp3);
DOF2_SetString(stri,"Nick",PlayerName(playerid));
}
return true;
}