[Ajuda] Senha...
#4

PHP Code:
public OnPlayerRegister(playeridpassword[])
{
    if(
IsPlayerConnected(playerid))
    {
            new 
string3[64];
            new 
playername3[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplayername3sizeof(playername3));
            
format(string3sizeof(string3), "contas/%s.ini"playername3);
            new 
FilehFile fopen(string3io_write);
            for(new 
0MAX_PLAYERSi++)
            if (
hFile)
            {
                
strmid(PlayerInfo[playerid][pKey], password0strlen(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"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"origin=%d\n",PlayerInfo[playerid][pOrigem]);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"Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
                
format(var, 32"BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);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"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"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"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"FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);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"Socio=%d\n",PlayerInfo[playerid][pSocio]);fwrite(hFile, var);
                
format(var, 32"Helper=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
                if ((
PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
                {
                    
PlayerInfo[playerid][pPos_x] = 1684.9;
                    
PlayerInfo[playerid][pPos_y] = -2244.5;
                    
PlayerInfo[playerid][pPos_z] = 13.5;
                }
                if(
Spectate[playerid] != 255)
                {
                    
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
                    
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
                    
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
                    
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
                    
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
                }
                
format(var, 32"Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
                
format(var, 32"Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
                
format(var, 32"Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);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"FishLic=%d\n",PlayerInfo[playerid][pFishLic]);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"Creditos=%d\n",PlayerInfo[playerid][pCreditos]);fwrite(hFile, var);
                
format(var, 32"LU=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
                
format(var, 32"Gun1=%d\n"PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
                
format(var, 32"Gun2=%d\n"PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
                
format(var, 32"Gun3=%d\n"PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
                
format(var, 32"Gun4=%d\n"PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
                
format(var, 32"Gun5=%d\n"PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
                
format(var, 32"Gun6=%d\n"PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
                
format(var, 32"Gun7=%d\n"PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
                
format(var, 32"Gun8=%d\n"PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
                
format(var, 32"Gun9=%d\n"PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
                
format(var, 32"Gun10=%d\n"PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
                
format(var, 32"Gun11=%d\n"PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
                
format(var, 32"Gun12=%d\n"PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
                
format(var, 32"Ammo1=%d\n"PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
                
format(var, 32"Ammo2=%d\n"PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
                
format(var, 32"Ammo3=%d\n"PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
                
format(var, 32"Ammo4=%d\n"PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
                
format(var, 32"Ammo5=%d\n"PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
                
format(var, 32"Ammo6=%d\n"PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
                
format(var, 32"Ammo7=%d\n"PlayerInfo[playerid][pAmmo7]);fwrite(hFile, var);
                
format(var, 32"Ammo8=%d\n"PlayerInfo[playerid][pAmmo8]);fwrite(hFile, var);
                
format(var, 32"Ammo9=%d\n"PlayerInfo[playerid][pAmmo9]);fwrite(hFile, var);
                
format(var, 32"Ammo10=%d\n"PlayerInfo[playerid][pAmmo10]);fwrite(hFile, var);
                
format(var, 32"Ammo11=%d\n"PlayerInfo[playerid][pAmmo11]);fwrite(hFile, var);
                
format(var, 32"Ammo12=%d\n"PlayerInfo[playerid][pAmmo12]);fwrite(hFile, var);
                
format(var, 32"Voto=%d\n",PlayerInfo[playerid][pVoto]);fwrite(hFile, var);
                
format(var, 32"Caixinha=%d\n",PlayerInfo[playerid][pCaixinha]);fwrite(hFile, var);
                
fclose(hFile);
            }
            new 
loginstring[256];
            new 
loginname[64];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
PlayerPlayMusic(playerid);
            
MSGPLAYER(playerid0x33FF00FF"(B.H.S): Vocк agora pode digitar /logar <senha>");
            
format(loginstring,sizeof(loginstring),"{BFC0C2}((=-=-=-=-=-=-=-=-=-=({87CEEB}B.H.S{BFC0C2})=-=-=-=-=-=-=-=-=-=-=))\n\n{f2fafa}Seja Bem vindo: {7CFC00}%s\n\n{f2fafa}Digite sua Senha para Logar !!!\n\n{BFC0C2}((=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=))",loginname);
            
ShowPlayerDialog(playerid1DIALOG_STYLE_PASSWORD,"Brasil Hyper Street ®",loginstring,"Logar","Cancelar");
    }
    return 
1;
}
public 
OnPlayerLogin(playerid,password[])
{
    new 
tmp2[256];
    new 
string2[64];
    
format(string2sizeof(string2), "contas/%s.ini"PlayerName(playerid));
    
strmid(PlayerInfo[playerid][pKey], dini_Get(string2"Key"), 0strlen(dini_Get(string2"Key")), 255);
    new 
FileUserFile fopen(string2io_read);
    if (
UserFile)
    {
        if(
strcmp(PlayerInfo[playerid][pKey],passwordtrue ) == 0)
        {
                new 
key256 ] , val256 ];
                new 
Data256 ];
                while (
fread(UserFileDatasizeof(Data)))
                {
                    
key ini_GetKeyData );
                    if( 
strcmpkey "Level" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLevel] = strvalval ); }
                    if( 
strcmpkey "AdminLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdmin] = strvalval ); }
                    if( 
strcmpkey "DonateRank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVIP] = strvalval ); }
                    if( 
strcmpkey "UpgradePoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][gPupgrade] = strvalval ); }
                    if( 
strcmpkey "ConnectedTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConnectTime] = strvalval ); }
                    if( 
strcmpkey "Registered" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pReg] = strvalval ); }
                    if( 
strcmpkey "Sex" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSex] = strvalval ); }
                    if( 
strcmpkey "origin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pOrigem] = strvalval ); }
                    if( 
strcmpkey "Muted" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuted] = strvalval ); }
                    if( 
strcmpkey "Respect" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExp] = strvalval ); }
                    if( 
strcmpkey "Money" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCash] = strvalval ); }
                    if( 
strcmpkey "Bank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConta] = strvalval ); }
                    if( 
strcmpkey "Crimes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrimes] = strvalval ); }
                    if( 
strcmpkey "Kills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pKills] = strvalval ); }
                    if( 
strcmpkey "Deaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDeaths] = strvalval ); }
                    if( 
strcmpkey "Phonebook" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhoneBook] = strvalval ); }
                    if( 
strcmpkey "LottoNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLottoNr] = strvalval ); }
                    if( 
strcmpkey "Fishes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishes] = strvalval ); }
                    if( 
strcmpkey "BiggestFish" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBiggestFish] = strvalval ); }
                    if( 
strcmpkey "Emprego" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pEmprego] = strvalval ); }
                    if( 
strcmpkey "Paycheck" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSalario] = strvalval ); }
                    if( 
strcmpkey "HeadValue" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeadValue] = strvalval ); }
                    if( 
strcmpkey "Jailed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailed] = strvalval ); }
                    if( 
strcmpkey "JailTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailTime] = strvalval ); }
                    if( 
strcmpkey "Materiais" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMats] = strvalval ); }
                    if( 
strcmpkey "Maconha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas] = strvalval ); }
                    if( 
strcmpkey "Cocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas2] = strvalval ); }
                    if( 
strcmpkey "Crack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas3] = strvalval ); }
                    if( 
strcmpkey "Lider" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLider] = strvalval ); }
                    if( 
strcmpkey "Member" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMembro] = strvalval ); }
                    if( 
strcmpkey "Rank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCargo] = strvalval ); }
                    if( 
strcmpkey "Char" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSkin] = strvalval ); }
                    if( 
strcmpkey "ContractTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pContractTime] = strvalval ); }
                    if( 
strcmpkey "DetSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDetSkill] = strvalval ); }
                    if( 
strcmpkey "SexSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSexSkill] = strvalval ); }
                    if( 
strcmpkey "BoxSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoxSkill] = strvalval ); }
                    if( 
strcmpkey "LawSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLawSkill] = strvalval ); }
                    if( 
strcmpkey "MechSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMechSkill] = strvalval ); }
                    if( 
strcmpkey "NewsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNewsSkill] = strvalval ); }
                    if( 
strcmpkey "DrogasSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogasSkill] = strvalval ); }
                    if( 
strcmpkey "CookSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCookSkill] = strvalval ); }
                    if( 
strcmpkey "FishSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishSkill] = strvalval ); }
                    if( 
strcmpkey "pSHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSHealth] = floatstrval ); }
                    if( 
strcmpkey "Team" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTeam] = strvalval ); }
                    if( 
strcmpkey "PhoneNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPnumber] = strvalval ); }
                    if( 
strcmpkey "House" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPHousekey] = strvalval ); }
                    if( 
strcmpkey "Bizz" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPbiskey] = strvalval ); }
                    if( 
strcmpkey "Pos_x" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_x] = floatstrval ); }
                    if( 
strcmpkey "Pos_y" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_y] = floatstrval ); }
                    if( 
strcmpkey "Pos_z" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_z] = floatstrval ); }
                    if( 
strcmpkey "CarLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarLic] = strvalval ); }
                    if( 
strcmpkey "FlyLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFlyLic] = strvalval ); }
                    if( 
strcmpkey "BoatLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoatLic] = strvalval ); }
                    if( 
strcmpkey "FishLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishLic] = strvalval ); }
                    if( 
strcmpkey "GunLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGunLic] = strvalval ); }
                    if( 
strcmpkey "PayDay" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDay] = strvalval ); }
                    if( 
strcmpkey "CDPlayer" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCDPlayer] = strvalval ); }
                    if( 
strcmpkey "Wins" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWins] = strvalval ); }
                    if( 
strcmpkey "Loses" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLoses] = strvalval ); }
                    if( 
strcmpkey "AlcoholPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAlcoholPerk] = strvalval ); }
                    if( 
strcmpkey "DrugPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugPerk] = strvalval ); }
                    if( 
strcmpkey "MiserPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMiserPerk] = strvalval ); }
                    if( 
strcmpkey "PainPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPainPerk] = strvalval ); }
                    if( 
strcmpkey "TraderPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTraderPerk] = strvalval ); }
                    if( 
strcmpkey "Tutorial" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTut] = strvalval ); }
                    if( 
strcmpkey "Avisos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                    if( 
strcmpkey "Married" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarried] = strvalval ); }
                    if( 
strcmpkey "MarriedTo" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pMarriedTo], val0strlen(val)-1255); }
                    if( 
strcmpkey "Spawn" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSpawn] = strvalval ); }
                    if( 
strcmpkey "SafeMaconha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas] = strvalval ); }
                    if( 
strcmpkey "SafeCocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas2] = strvalval ); }
                    if( 
strcmpkey "SafeCrack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas3] = strvalval ); }
                    if( 
strcmpkey "NivelProcurado" true ) == ) { val ini_GetValueData ); WantedPoints[playerid] = strvalval ); }
                    if( 
strcmpkey "SafeMateriais" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][psMats] = strvalval ); }
                    if( 
strcmpkey "Luta" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLuta] = strvalval ); }
                    if( 
strcmpkey "Dorgado" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDorgado] = strvalval ); }
                    if( 
strcmpkey "Dorgado2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDorgado2] = strvalval ); }
                    if( 
strcmpkey "Doenca" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDoenca] = strvalval ); }
                    if( 
strcmpkey "Creditos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCreditos] = strvalval ); }
                    if( 
strcmpkey "LU" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pLastLogin], val0strlen(val)-1255); }
                    if( 
strcmpkey "Socio" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSocio] = strvalval ); }
                    if( 
strcmpkey "Helper" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHelper] = strvalval ); }
                    if( 
strcmpkey "Gun1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun1] = strvalval ); }
                    if( 
strcmpkey "Gun2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun2] = strvalval ); }
                    if( 
strcmpkey "Gun3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun3] = strvalval ); }
                    if( 
strcmpkey "Gun4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun4] = strvalval ); }
                    if( 
strcmpkey "Gun5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun5] = strvalval ); }
                    if( 
strcmpkey "Gun6" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun6] = strvalval ); }
                    if( 
strcmpkey "Gun7" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun7] = strvalval ); }
                    if( 
strcmpkey "Gun8" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun8] = strvalval ); }
                    if( 
strcmpkey "Gun9" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun9] = strvalval ); }
                    if( 
strcmpkey "Gun10" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun10] = strvalval ); }
                    if( 
strcmpkey "Gun11" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun11] = strvalval ); }
                    if( 
strcmpkey "Gun12" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun12] = strvalval ); }
                    if( 
strcmpkey "Ammo1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo1] = strvalval ); }
                    if( 
strcmpkey "Ammo2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo2] = strvalval ); }
                    if( 
strcmpkey "Ammo3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo3] = strvalval ); }
                    if( 
strcmpkey "Ammo4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo4] = strvalval ); }
                    if( 
strcmpkey "Ammo5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo5] = strvalval ); }
                    if( 
strcmpkey "Ammo6" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo6] = strvalval ); }
                    if( 
strcmpkey "Ammo7" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo7] = strvalval ); }
                    if( 
strcmpkey "Ammo8" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo8] = strvalval ); }
                    if( 
strcmpkey "Ammo9" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo9] = strvalval ); }
                    if( 
strcmpkey "Ammo10" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo10] = strvalval ); }
                    if( 
strcmpkey "Ammo11" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo11] = strvalval ); }
                    if( 
strcmpkey "Ammo12" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo12] = strvalval ); }
                    if( 
strcmpkey "RingTone" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pRing] = strvalval ); }
                    if( 
strcmpkey "Voto" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVoto] = strvalval ); }
                    if( 
strcmpkey "Caixinha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCaixinha] = strvalval ); }
                    
logouagora[playerid] = 1;
                    
CheckOwner(playerid);
                    
//CheckAdmin(playerid);
                    
CheckOwnerb(playerid);
                    
CheckOwnerh(playerid);
                    
gPlayerLogged[playerid] = 1;
                    
//CheckVip(playerid);
                
}//end while
                
fclose(UserFile);//close the file after everything has been read in the while
        
}
        else
        {
            
MSGPLAYER(playeridCOLOR_YELLOW"(B.H.S): Senha errada! - Se errar a senha 5 vezes terб o IP Banido!");
            
CameraPos(playerid,1483.8164,-1727.4125,13.3828);
            
SetPlayerCameraLookAt(playerid,1481.0267,-1772.1371,19.4570);
            
PlayerPlayMusic(playerid);
            new 
loginstring[256];
            new 
loginname[64];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
MSGPLAYER(playeridCOLOR_GRAD2"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-)");
            
format(loginstring,sizeof(loginstring),"{BFC0C2}((=-=-=-=-=-=-=-=-=-=({87CEEB}B.H.S{BFC0C2})=-=-=-=-=-=-=-=-=-=-=))\n\n{f2fafa}Seja Bem vindo: {7CFC00}%s\n\n{f2fafa}Digite sua Senha para Logar !!!\n\n{BFC0C2}((=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=))",loginname);
            
ShowPlayerDialog(playerid1DIALOG_STYLE_PASSWORD,"Brasil Hyper Street ®",loginstring,"Logar","Cancelar");
            
fclose(UserFile);
            
gPlayerLogTries[playerid] += 1;
            if(
gPlayerLogTries[playerid] == 5)
            {
                new 
stri[64], tmp[20], tmp3[20], ip[16];
                
GetPlayerIp(playeridipsizeof ip);
                
format(strisizeof(stri), "IPsBanidos/%s.ini",ip);
                
getdate(AnoMesDia);
                
format(tmp20"%d/%d/%d"DiaMesAno);
                
gettime(HoraMinutoSegundo);
                
format(tmp320"%d:%d:%d"HoraMinutoSegundo);
                
format(strisizeof(stri), "IPsBanidos/%s.ini",ip);
                
dini_Create(stri);
                
dini_Set(stri,"Motivo","Errou a senha 5 vezes");
                
dini_Set(stri,"Admin","Bot_Zinho");
                
dini_Set(stri,"Data",tmp);
                
dini_Set(stri,"Hora",tmp3);
                
dini_Set(stri,"Nick",PlayerName(playerid));
            }
            return 
1;
        }
        
ClearChatbox(playerid100);
        
ResetPlayerMoney(playerid);
        
ConsumingMoney[playerid] = 1;
        
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
        
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
        
SetPlayerWantedLevel(playeridWantedPoints[playerid]);
        if(
PlayerInfo[playerid][pReg] == 0)
        {
            
PlayerInfo[playerid][pLevel] = 3;
            
PlayerInfo[playerid][pSHealth] = 0.0;
            
PlayerInfo[playerid][pPos_x] = 2246.6;
            
PlayerInfo[playerid][pPos_y] = -1161.9;
            
PlayerInfo[playerid][pPos_z] = 1029.7;
            
PlayerInfo[playerid][pInt] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
            
PlayerInfo[playerid][pTeam] = 3;
            if(
PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; } else { PlayerInfo[playerid][pSkin] = 12; }
            new 
randphone 1000 random(8999);//
            
PlayerInfo[playerid][pPnumber] = randphone;
            
PlayerInfo[playerid][pPHousekey] = 255;
            
PlayerInfo[playerid][pPbiskey] = 255;
            
PlayerInfo[playerid][pConta] = 100;
            
PlayerInfo[playerid][pReg] = 1;
            
PlayerInfo[playerid][pEmprego] = 0;
            
PlayerInfo[playerid][pKills] = 0;
            
PlayerInfo[playerid][pDeaths] = 0;
            
ResetPlayerMoney(playerid);
        }
        if(
PlayerInfo[playerid][pWarns] == 1//1 aviso
        
{
            
MSGPLAYER(playeridCOLOR_YELLOW"Sua Conta Jб tem 1 Aviso!");
            
MSGPLAYER(playeridCOLOR_YELLOW"Se Vocк tiver 3 avisos serб banido automaticamente!");
        }
        if(
PlayerInfo[playerid][pWarns] == 2//2 avisos
        
{
            
MSGPLAYER(playeridCOLOR_YELLOW"Sua Conta Jб tem 2 Avisos!");
            
MSGPLAYER(playeridCOLOR_YELLOW"Se Vocк tiver 3 avisos serб banido automaticamente!");
        }
        if(
PlayerInfo[playerid][pWarns] >= 3//3 avisos
        
{
            
/*MSGPLAYER(playerid, COLOR_YELLOW, "Sua Conta contйm tem 3 Avisos!");
            MSGPLAYER(playerid, COLOR_YELLOW, "Vocк foi banido automaticamente!");
            getdate(Ano, Mes, Dia);
            SBan(playerid, "3 Avisos", "Automбtico");*/
            
PlayerInfo[playerid][pWarns] = 0;
        }
        if(
PlayerInfo[playerid][pAdmin] >= 1343)//autoban
        
{
            
getdate(AnoMesDia);
            
SBan(playerid"Admin maior que 1342""Automбtico");
        }
        
printf("%s has logged in.",PlayerName(playerid));
        new 
Info[6][10];
        
split(PlayerInfo[playerid][pLastLogin],Info,'/');
        
MSGPLAYER(playeridCOLOR_GRAD2"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
MSGPLAYER(playeridCOLOR_GRAD1"Bem Vindo ao Brasil Hyper Street V1.0a");
        
MSGPLAYER(playeridCOLOR_GRAD1"Quem Nуs Fortalece Sгo Vocкs !!!");
        
format(string2sizeof(string2), "Seu Ultimo Login Foi No Dia %d/%d/%d Horбrio %d:%d:%d",strval(Info[0]),strval(Info[1]),strval(Info[2]),strval(Info[3]),strval(Info[4]),strval(Info[5]));
        
MSGPLAYER(playeridCOLOR_GRAD1,string2);
        
MSGPLAYER(playeridCOLOR_GRAD2"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
GameTextForPlayer(playerid," ~n~ ~n~ ~n~ ~n~ ~r~S~p~e~g~j~b~a ~g~b~p~e~r~m ~y~v~b~i~g~n~r~d~p~o",8000,5);
        
DateProp(playerid);
        new 
dia,mes,ano,hora,mins,seg,string3[20];
        
getdate(ano,mes,dia);
        
gettime(hora,mins,seg);
        
format(string3sizeof(string3),"%d/%d/%d/%d/%d/%d",dia,mes,ano,hora,mins,seg);
        
strmid(PlayerInfo[playerid][pLastLogin],string3,0,strlen(string3),255);
        
format(gstring128"Acabou de logar: [%d]%s Estб Online! Fica de olho nele",playerid,PlayerName(playerid));
        
SendMessageToOthersAdmins(playeridCOLOR_YELLOWgstring);
        if (
AdmCheck(playerid) == && PlayerInfo[playerid][pAdmin] > 0)//teste adminfo
        
{

        }
        else if(
PlayerInfo[playerid][pAdmin] > 0)
        {
            
format(string2sizeof(string2), "(B.H.S): Vocк logou com conta de Admin {FF0000}%d{FFFF00}.",PlayerInfo[playerid][pAdmin]);
            
MSGPLAYER(playeridCOLOR_YELLOW,string2);
        }
        if (
VipCheck(playerid) == && PlayerInfo[playerid][pVIP] > 0)//teste vipinfo
        
{
            
PlayerInfo[playerid][pVIP] = 0;
            
MSGPLAYER(playeridCOLOR_YELLOW"(B.H.S): Vocк nгo й mais um jogador VIP/Premium, renove seu VIP e receba seus benefнcios De Volta");
        }
        else if (
PlayerInfo[playerid][pVIP] == 1)
        {
            
MSGPLAYER(playeridCOLOR_YELLOW,"(B.H.S): Vocк й um jogador {FF0000}Vip{FFFF00}");
        }
        else if (
PlayerInfo[playerid][pVIP] == 2)
        {
            
MSGPLAYER(playeridCOLOR_YELLOW,"(B.H.S): Vocк й um jogador {FF0000}Super-VIP{FFFF00}");
        }
        if (
PlayerInfo[playerid][pSocio]  > 0)
        {
            
MSGPLAYER(playeridCOLOR_YELLOW,"(B.H.S): Vocк й um Player {FF0000}Sуcio{FFFF00}");
        }
        if (
PlayerInfo[playerid][pHelper]  > 0)
        {
            
MSGPLAYER(playeridCOLOR_YELLOW,"(B.H.S): Vocк й um {FF0000}Helper{FFFF00}");
        }
        
SetSpawnInfo(playeridPlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
        if(
gTeam[playerid] == 0)
        {
            
gTeam[playerid] = 3;
        }
        else
        {
            
gTeam[playerid] = PlayerInfo[playerid][pTeam];
        }
        
MedicBill[playerid] = 0;
        
gPlayerLogged[playerid] = 1;
        
SpawnPlayer(playerid);
        
format(tmp2sizeof(tmp2), "~n~ ~w~Bem Vindo ~n~~y~%s"PlayerName(playerid));
        
GameTextForPlayer(playeridtmp250001);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL_SILENCED999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_DESERT_EAGLE999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_SHOTGUN999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_SAWNOFF_SHOTGUN999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_SPAS12_SHOTGUN999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZI999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_MP5999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_AK47999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_M4999);
        
SetPlayerSkillLevel(playeridWEAPONSKILL_SNIPERRIFLE999);
        
ScoreLevel(playerid);
        
/*new check = PlayerInfo[playerid][pLevel]+1;
        format(gstring,sizeof(gstring),"~g~Nome: ~w~%s    ~g~Level: ~w~%d    ~g~Respeito: ~w~%d~g~ / ~w~%d    ~g~Celular: ~w~%d    ~g~Creditos: ~w~%d", PlayerName(playerid), PlayerInfo[playerid][pLevel],
        PlayerInfo[playerid][pExp], check*levelexp, PlayerInfo[playerid][pPnumber], PlayerInfo[playerid][pCreditos]);
        TextDrawSetString(forum2[playerid], gstring);
        gmsg[playerid] = 1;
        tempotd[playerid] = SetTimerEx("PiscarTD", 9000, 1, "i", playerid);*/
        
if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new 
AdminName[MAX_PLAYER_NAME];
            
GetPlayerName(playeridAdminNamesizeof(AdminName));
            
format(gstringsizeof(gstring), "~w~%s: ~g~ON"AdminName);
            for(new 
i=0i<MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i)) GameTextForPlayer(igstring 50001);
            }
        }
        
TempoLogin SetTimerEx("LoginAgora"100000"i"playerid);
    }
    return 
1;

CODIGO PRONTO ! tente lб
Reply


Messages In This Thread
Senha... - by Fire_Hell - 15.11.2012, 23:24
Re: Senha... - by Nice-.- - 15.11.2012, 23:26
Re: Senha... - by Tr0jan - 15.11.2012, 23:26
Re: Senha... - by Nice-.- - 15.11.2012, 23:43
Re: Senha... - by Fire_Hell - 17.11.2012, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)