Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerLogin(playerid,password[])
- {
- new tmp2[256];
- new string2[64];
- new string[128];
- new playersip[24];
- new playername2[MAX_PLAYER_NAME];
- new playernamesplit[3][MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername2, sizeof(playername2));
- GetPlayerIp(playerid, playersip, sizeof(playersip));
- split(playername2, playernamesplit, '_');
- format(string2, sizeof(string2), "LARP/Users/%s.ini", playername2);
- new File: UserFile = fopen(string2, io_read);
- if ( UserFile )
- {
- new PassData[256];
- new keytmp[256], valtmp[256];
- fread( UserFile , PassData , sizeof( PassData ) );
- keytmp = ini_GetKey( PassData );
- if( strcmp( keytmp , "Key" , true ) == 0 )
- {
- valtmp = ini_GetValue( PassData );
- strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
- }
- if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
- {
- new key[ 256 ] , val[ 256 ];
- new Data[ 256 ];
- while ( fread( UserFile , Data , sizeof( Data ) ) )
- {
- key = ini_GetKey( Data );
- if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
- if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
- if( strcmp( key , "TesterLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
- if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
- if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
- if( strcmp( key , "RegularRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularRank] = strval( val ); }
- if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
- if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectSeconds] = strval( val ); }
- if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
- if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
- if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
- if( strcmp( key , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGPS] = strval( val ); }
- if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
- if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
- if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
- if( strcmp( key , "Blind" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlind] = strval( val ); }
- if( strcmp( key , "Frozen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrozen] = strval( val ); }
- if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
- if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
- if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
- if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
- if( strcmp( key , "CrimeReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReason], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWanted] = strval( val ); }
- if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strval( val ); }
- if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
- if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
- if( strcmp( key , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWhyLeft] = strval( val ); }
- if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
- if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
- if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
- if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
- if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
- if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
- if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
- if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
- if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
- if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
- if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
- if( strcmp( key , "CanRobTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobTime] = strval( val ); }
- if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
- if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
- if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
- if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
- if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
- if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
- if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
- if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
- if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
- if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
- if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
- if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
- if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
- if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
- if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
- if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
- if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
- if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
- if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
- if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
- if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
- if( strcmp( key , "pArmour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmour] = floatstr( val ); }
- if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
- if( strcmp( key , "InteriorNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInteriorNr] = strval( val ); }
- if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
- if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
- if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
- if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
- if( strcmp( key , "Car" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey] = strval( val ); }
- if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); }
- if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
- if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
- if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
- if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
- if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
- if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strval( val ); }
- if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
- if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
- if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
- if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
- if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
- if( strcmp( key , "CopLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCopLic] = strval( val ); }
- if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
- if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
- if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
- if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
- if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
- if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
- if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
- if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
- if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
- if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
- if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
- if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
- if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
- if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
- if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
- if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
- if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
- if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "FishTool" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishTool] = strval( val ); }
- if( strcmp( key , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pWhyLeft], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
- if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
- if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
- if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
- if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = strval( val ); }
- if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
- if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
- if( strcmp( key , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
- if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
- if( strcmp( key , "InvWeapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon3] = strval( val ); }
- if( strcmp( key , "InvAmmo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo3] = strval( val ); }
- if( strcmp( key , "InvWeapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon4] = strval( val ); }
- if( strcmp( key , "InvAmmo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo4] = strval( val ); }
- if( strcmp( key , "InvWeapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon5] = strval( val ); }
- if( strcmp( key , "InvAmmo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo5] = strval( val ); }
- if( strcmp( key , "InvWeapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon6] = strval( val ); }
- if( strcmp( key , "InvAmmo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo6] = strval( val ); }
- if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }
- if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
- if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarned] = strval( val ); }
- if( strcmp( key , "Swat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSwat] = strval( val ); }
- if( strcmp( key , "Tactical" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTactical] = strval( val ); }
- if( strcmp( key , "SpecialF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpecialF] = strval( val ); }
- if( strcmp( key , "DutyBanned" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDBanned] = strval( val ); }
- if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDuty] = strval( val ); }
- if( strcmp( key , "DDManager" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDM] = strval( val ); }
- if( strcmp( key , "DDTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDTK] = strval( val ); }
- if( strcmp( key , "DDSTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDSTK] = strval( val ); }
- if( strcmp( key , "Fighting" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFS] = strval( val ); }
- if( strcmp( key , "Boxing" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxiSkill] = strval( val ); }
- if( strcmp( key , "KneeHead" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKneeSkill] = strval( val ); }
- if( strcmp( key , "KungFu" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKungSkill] = strval( val ); }
- if( strcmp( key , "GrabKick" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGrabSkill] = strval( val ); }
- if( strcmp( key , "Elbow" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pElbowSkill] = strval( val ); }
- if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCD] = strval( val ); }
- if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpeedo] = strval( val ); }
- if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
- if( strcmp( key , "Tester" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
- if( strcmp( key , "HydraDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHydraR] = strval( val ); }
- if( strcmp( key , "HunterDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHunterR] = strval( val ); }
- if( strcmp( key , "RhinoDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRhinoR] = strval( val ); }
- if( strcmp( key , "PredatorDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPredR] = strval( val ); }
- if( strcmp( key , "ViewPms" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pViewPms] = strval( val ); }
- if( strcmp( key , "AppearList" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAppearList] = strval( val ); }
- if( strcmp( key , "AmmunationTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmuTrainTime] = strval( val ); }
- if( strcmp( key , "PistolSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPistSkill] = strval( val ); }
- if( strcmp( key , "SilencedSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSilenSkill] = strval( val ); }
- if( strcmp( key , "DesertSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesertSkill] = strval( val ); }
- if( strcmp( key , "ShotgunSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShotgSkill] = strval( val ); }
- if( strcmp( key , "SawnoffSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSawnSkill] = strval( val ); }
- if( strcmp( key , "CombatSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCombSkill] = strval( val ); }
- if( strcmp( key , "UziSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUziSkill] = strval( val ); }
- if( strcmp( key , "SmgSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmgSkill] = strval( val ); }
- if( strcmp( key , "Ak47Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAkSkill] = strval( val ); }
- if( strcmp( key , "M4Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pM4Skill] = strval( val ); }
- if( strcmp( key , "TutorialDone" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTutDone] = strval( val ); }
- if( strcmp( key , "RegularCount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularCount] = strval( val ); }
- if( strcmp( key , "PassportTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassportTime] = strval( val ); }
- if( strcmp( key , "OfficerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOfficerTime] = strval( val ); }
- if( strcmp( key , "Achievement0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement0] = strval( val ); }
- if( strcmp( key , "Achievement1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement1] = strval( val ); }
- if( strcmp( key , "Achievement2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement2] = strval( val ); }
- if( strcmp( key , "Achievement3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement3] = strval( val ); }
- if( strcmp( key , "Achievement4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement4] = strval( val ); }
- if( strcmp( key , "Achievement5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement5] = strval( val ); }
- if( strcmp( key , "Achievement6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement6] = strval( val ); }
- if( strcmp( key , "Achievement7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement7] = strval( val ); }
- if( strcmp( key , "Achievement8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement8] = strval( val ); }
- if( strcmp( key , "Achievement9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement9] = strval( val ); }
- if( strcmp( key , "Achievement10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement10] = strval( val ); }
- if( strcmp( key , "Achievement11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement11] = strval( val ); }
- if( strcmp( key , "Achievement12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement12] = strval( val ); }
- if( strcmp( key , "Achievement13" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement13] = strval( val ); }
- if( strcmp( key , "Achievement14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement14] = strval( val ); }
- if( strcmp( key , "Achievement15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); }
- if( strcmp( key , "Achievement16" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement16] = strval( val ); }
- if( strcmp( key , "Achievement17" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement17] = strval( val ); }
- if( strcmp( key , "Achievement18" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement18] = strval( val ); }
- if( strcmp( key , "Achievement19" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement19] = strval( val ); }
- if( strcmp( key , "Achievement20" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement20] = strval( val ); }
- if( strcmp( key , "ShiftName" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShiftName] = strval( val ); }
- if( strcmp( key , "Weapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon] = strval( val ); }
- if( strcmp( key , "Ammo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo] = strval( val ); }
- if( strcmp( key , "Weapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon2] = strval( val ); }
- if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
- if( strcmp( key , "Weapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon3] = strval( val ); }
- if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
- if( strcmp( key , "Weapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon4] = strval( val ); }
- if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
- if( strcmp( key , "Weapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon5] = strval( val ); }
- if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
- if( strcmp( key , "Weapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon6] = strval( val ); }
- if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
- if( strcmp( key , "Weapon7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon7] = strval( val ); }
- if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
- if( strcmp( key , "Weapon8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon8] = strval( val ); }
- if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
- if( strcmp( key , "Weapon9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon9] = strval( val ); }
- if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
- if( strcmp( key , "Weapon10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon10] = strval( val ); }
- if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
- if( strcmp( key , "Weapon11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon11] = strval( val ); }
- if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
- if( strcmp( key , "Weapon12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon12] = strval( val ); }
- if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
- if( strcmp( key , "Atc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtc] = strval( val ); }
- if( strcmp( key , "AtcRadio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtcRadio] = strval( val ); }
- if( strcmp( key , "Pending" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPending] = strval( val ); }
- if( strcmp( key , "PendingInfo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPendingInfo], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "ChatMode" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatMode] = strval( val ); }
- if( strcmp( key , "Punishment1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment1], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment2], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment3], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment4], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment5], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment6], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment7" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment7], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "Punishment8" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment8], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "NextPunishment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNextPunishment] = strval( val ); }
- if( strcmp( key , "Punished" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPunished] = strval( val ); }
- if( strcmp( key , "TazerBullets" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTazerBullets] = strval( val ); }
- if( strcmp( key , "Changed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChanged] = strval( val ); }
- if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "LastSeen" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSeen], val, 0, strlen(val)-1, 255); }
- if( strcmp( key , "RegistredDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pRegistredDate], val, 0, strlen(val)-1, 255); }
- }//end while
- fclose(UserFile);//close the file after everything has been read in the while
- }
- else
- {
- fclose(UserFile);
- gPlayerLogTries[playerid] += 1;
- ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Try Again, please Log-In","You have entered an incorrect password\nType your password below to log-in","Log-in","Quit");
- if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement