Advertisement
Guest User

PW Bugg

a guest
Dec 30th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 20.56 KB | None | 0 0
  1. public OnPlayerLogin(playerid,password[])
  2. {
  3.     SetPlayerHealth(playerid, 75);
  4.     new tmp2[256];
  5.     new string2[128];
  6.     new playername2[MAX_PLAYER_NAME];
  7.     GetPlayerName(playerid, playername2, sizeof(playername2));
  8.     format(string2, sizeof(string2), "/Accounts/%s.ini", playername2);
  9.     new File: UserFile = fopen(string2, io_read);
  10.     if ( UserFile )
  11.     {
  12.         new PassData[256];
  13.         new keytmp[256], valtmp[256];
  14.         fread( UserFile , PassData , sizeof( PassData ) );
  15.         keytmp = ini_GetKey( PassData );
  16.         if(strcmp( keytmp , "Key" , true ) == 0 )
  17.         {
  18.             valtmp = ini_GetValue( PassData );
  19.             strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
  20.         }
  21.         if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
  22.         {
  23.                 new key[ 256 ] , val[ 256 ];
  24.                 new Data[ 256 ];
  25.                 while ( fread( UserFile , Data , sizeof( Data ) ) )
  26.                 {
  27.                     key = ini_GetKey( Data );
  28.                 //  waffenskill(playerid);
  29.                     if( strcmp( key , "IstTot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTot] = strval( val ); }
  30.                     if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
  31.                     if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
  32.                     if( strcmp( key , "Handyakku" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyakku] = strval( val ); }
  33.                     if( strcmp( key , "DonatorPoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonatorPoints] = strval( val ); }
  34.                     if( strcmp( key , "Supporter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSupporter] = strval( val ); }
  35.                     if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }
  36.                     if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
  37.                     if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
  38.                     if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
  39.                     if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
  40.                     if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
  41.                     if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
  42.                     if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
  43.                     if( strcmp( key , "StatsBox" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStatsBox] = strval( val ); }
  44.                     if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
  45.                     if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
  46.                     if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
  47.                     if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
  48.                     if( strcmp( key , "Rest" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRest] = strval( val ); }
  49.                     if( strcmp( key , "Kredit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayerKredit] = strval( val ); }
  50.                     if( strcmp( key , "KreditDauer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayerKreditDauer] = strval( val ); }
  51.                     if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
  52.                     if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
  53.                     if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
  54.                     if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
  55.                     if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
  56.                     if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
  57.                     if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
  58.                     if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
  59.                     if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
  60.                     if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
  61.                     if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
  62.                     if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
  63.                     if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
  64.                     if( strcmp( key , "GangJailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGangJailed] = strval( val ); }
  65.                     if( strcmp( key , "wJailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pwJailed] = strval( val ); }
  66.                     if( strcmp( key , "Mauled" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMauled] = strval( val ); }
  67.                     if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
  68.                     if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
  69.                     if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
  70.         //   if( strcmp( key , "Sprengstoff" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSprengstoff] = strval( val ); }
  71.                     if( strcmp( key , "BoxMaterials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxMats] = strval( val ); }
  72.                     if( strcmp( key , "BoxDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxDrugs] = strval( val ); }
  73.                     if( strcmp( key , "FightingStyle" , true ) == 0 ) { val = ini_GetValue( Data ); SetPlayerFightingStyle(playerid,strval(val)); }
  74.                     if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
  75.                     if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
  76.                     if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
  77.                     if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
  78.                     if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
  79.                     if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
  80.                     if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
  81.                     if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
  82.                     if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
  83.                     if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
  84.                     if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
  85.                     if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
  86.                     if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
  87.                     if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
  88.                     if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
  89.                     if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
  90.                     if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
  91.                     if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
  92.                     if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
  93.                     if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
  94.                     if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
  95.                     if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
  96.                     if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
  97.                     if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
  98.                     if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
  99.                     if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
  100.                     if( strcmp( key , "HandyGeld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyGeld] = strval( val ); }
  101.                     if( strcmp( key , "HandyVer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyVer] = strval( val ); }
  102.                     if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
  103.                     if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
  104.                     if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
  105.                     if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
  106.                     if( strcmp( key , "NewLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewLic] = strval( val ); }
  107.                     if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
  108.                     if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
  109.                     if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
  110.                     if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }// Laden von schein wenn du /login machst
  111.                     if( strcmp( key , "LKWLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLKWLic] = strval( val ); }
  112.                     if( strcmp( key , "RollerLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRollerLic] = strval( val ); }
  113.                     if( strcmp( key , "MotoLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMotoLic] = strval( val ); }
  114.                     if( strcmp( key , "Zig" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZig] = strval( val ); }
  115.                     if( strcmp( key , "Kekse", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKekse] = strval( val ); }
  116.                     if( strcmp( key , "ZigSucht" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZigSucht] = strval( val ); }
  117.                     if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
  118.                     if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
  119.                     if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
  120.                     if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
  121.                     if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
  122.                     if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
  123.                     if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
  124.                     if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
  125.                     if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
  126.                     if( strcmp( key , "Mulltime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMulltime] = strval( val ); }
  127.                     if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
  128.                     if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
  129.                     if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
  130.                     if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
  131.                     if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
  132.                     if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
  133.                     if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
  134.                     if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
  135.                     if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
  136.                     if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
  137.                     if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
  138.                     if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
  139.                     if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
  140.                     if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
  141.                     if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
  142.                     if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
  143.                     if( strcmp( key , "SpawnChange" , true ) == 0 ) { val = ini_GetValue( Data ); SpawnChange[playerid] = strval( val ); }
  144.                     if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); }
  145.                     if( strcmp( key , "WantedPoints" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = strval( val ); }
  146.                     if( strcmp( key , "PlayMinutes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayMinutes] = strval( val ); }
  147.                     if( strcmp( key , "GesamtMinutes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGesamtMinutes] = strval( val ); }
  148.                     if( strcmp( key , "MinutesSinceAn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMinutesSinceAn] = strval( val ); }
  149.                     if( strcmp( key , "SFPASS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFPASS] = strval( val ); }
  150.                     if( strcmp( key , "LVPASS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLVPASS] = strval( val ); }
  151.                     if( strcmp( key , "Offflucht" , true ) == 0 ) { val = ini_GetValue( Data ); OfflineFlucht[playerid] = strval( val ); }
  152.                     if( strcmp( key , "Knast" , true ) == 0 ) { val = ini_GetValue( Data ); Knast[playerid] = strval( val ); }
  153.                     if( strcmp( key , "Handy" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyID] = strval( val ); }
  154.                     if( strcmp( key , "Uhr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUhrID] = strval( val ); }
  155.                    // if( strcmp( key , "WaffenPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWaffenPerk] = strval( val ); }
  156.                     if( strcmp( key , "KnastTime" , true ) == 0 ) { val = ini_GetValue( Data ); KnastTime[playerid] = strval( val ); }
  157.                     if( strcmp( key , "Perso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOwnPerso] = strval( val ); }
  158.                     if( strcmp( key , "FrakSperre" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrakSperre] = strval( val ); }
  159.                     if( strcmp( key , "Gehalt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGehalt] = strval( val ); }
  160.                     if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
  161.                     if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
  162.                     if( strcmp( key , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
  163.                     if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
  164.                     if( strcmp( key , "InvMats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvMats] = strval( val ); }
  165.                     if( strcmp( key , "InvDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvDrugs] = strval( val ); }
  166.                     if( strcmp( key , "FlugTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlugTime] = strval( val ); }
  167.                     if( strcmp( key , "FarmTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFarmTime] = strval( val ); }
  168.                     if( strcmp( key , "GDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGDeaths] = strval( val ); }
  169.                     if( strcmp( key , "GKills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGKills] = strval( val ); }
  170.                     if( strcmp( key , "Meldung" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMeldung] = strval( val ); }
  171.                     if( strcmp( key , "GWD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGWD] = floatstr( val ); }
  172.                     if( strcmp( key , "Kampfstil" , true ) == 0 ) { val = ini_GetValue( Data ); Kampfstil[playerid] = strval( val ); }
  173.                 }//end while
  174.                 fclose(UserFile);//close the file after everything has been read in the while
  175.         }
  176.         else
  177.         {
  178.             ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Das Passwort ist nicht korrekt! Bitte gib nun dein richtiges Passwort ein:","Login","Abbrechen");
  179.             fclose(UserFile);
  180.             SetPlayerHealth(playerid, 75);
  181.             gPlayerLogTries[playerid] += 1;
  182.             if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
  183.             return 1;
  184.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement