Advertisement
BingBang

Untitled

Jun 6th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.36 KB | None | 0 0
  1. public OnPlayerLogin(playerid,password[])
  2. {
  3. new tmp2[256];
  4. new string2[64];
  5. new string[128];
  6. new playersip[24];
  7. new playername2[MAX_PLAYER_NAME];
  8. new playernamesplit[3][MAX_PLAYER_NAME];
  9. GetPlayerName(playerid, playername2, sizeof(playername2));
  10. GetPlayerIp(playerid, playersip, sizeof(playersip));
  11. split(playername2, playernamesplit, '_');
  12. format(string2, sizeof(string2), "LARP/Users/%s.ini", playername2);
  13. new File: UserFile = fopen(string2, io_read);
  14. if ( UserFile )
  15. {
  16. new PassData[256];
  17. new keytmp[256], valtmp[256];
  18. fread( UserFile , PassData , sizeof( PassData ) );
  19. keytmp = ini_GetKey( PassData );
  20. if( strcmp( keytmp , "Key" , true ) == 0 )
  21. {
  22. valtmp = ini_GetValue( PassData );
  23. strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
  24. }
  25. if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
  26. {
  27. new key[ 256 ] , val[ 256 ];
  28. new Data[ 256 ];
  29. while ( fread( UserFile , Data , sizeof( Data ) ) )
  30. {
  31. key = ini_GetKey( Data );
  32. if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
  33. if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
  34. if( strcmp( key , "TesterLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
  35. if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
  36. if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
  37. if( strcmp( key , "RegularRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularRank] = strval( val ); }
  38. if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
  39. if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectSeconds] = strval( val ); }
  40. if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
  41. if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
  42. if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
  43. if( strcmp( key , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGPS] = strval( val ); }
  44. if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
  45. if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
  46. if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
  47. if( strcmp( key , "Blind" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlind] = strval( val ); }
  48. if( strcmp( key , "Frozen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrozen] = strval( val ); }
  49. if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
  50. if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
  51. if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
  52. if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
  53. if( strcmp( key , "CrimeReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReason], val, 0, strlen(val)-1, 255); }
  54. if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWanted] = strval( val ); }
  55. if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strval( val ); }
  56. if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
  57. if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
  58. if( strcmp( key , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWhyLeft] = strval( val ); }
  59. if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
  60. if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
  61. if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
  62. if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
  63. if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
  64. if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
  65. if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
  66. if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
  67. if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
  68. if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
  69. if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
  70. if( strcmp( key , "CanRobTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobTime] = strval( val ); }
  71. if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
  72. if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
  73. if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
  74. if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
  75. if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
  76. if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
  77. if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
  78. if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
  79. if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
  80. if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
  81. if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
  82. if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
  83. if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
  84. if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
  85. if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
  86. if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
  87. if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
  88. if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
  89. if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
  90. if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
  91. if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
  92. if( strcmp( key , "pArmour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmour] = floatstr( val ); }
  93. if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
  94. if( strcmp( key , "InteriorNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInteriorNr] = strval( val ); }
  95. if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
  96. if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
  97. if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
  98. if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
  99. if( strcmp( key , "Car" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey] = strval( val ); }
  100. if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); }
  101. if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
  102. if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
  103. if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
  104. if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
  105. if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
  106. if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strval( val ); }
  107. if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
  108. if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
  109. if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
  110. if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
  111. if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
  112. if( strcmp( key , "CopLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCopLic] = strval( val ); }
  113. if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
  114. if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
  115. if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
  116. if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
  117. if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
  118. if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
  119. if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
  120. if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
  121. if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
  122. if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
  123. if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
  124. if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
  125. if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
  126. if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
  127. if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
  128. if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
  129. if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
  130. if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
  131. if( strcmp( key , "FishTool" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishTool] = strval( val ); }
  132. if( strcmp( key , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pWhyLeft], val, 0, strlen(val)-1, 255); }
  133. if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
  134. if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
  135. if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
  136. if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
  137. if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
  138. if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
  139. if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
  140. if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
  141. if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
  142. if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = strval( val ); }
  143. if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
  144. if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
  145. if( strcmp( key , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
  146. if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
  147. if( strcmp( key , "InvWeapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon3] = strval( val ); }
  148. if( strcmp( key , "InvAmmo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo3] = strval( val ); }
  149. if( strcmp( key , "InvWeapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon4] = strval( val ); }
  150. if( strcmp( key , "InvAmmo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo4] = strval( val ); }
  151. if( strcmp( key , "InvWeapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon5] = strval( val ); }
  152. if( strcmp( key , "InvAmmo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo5] = strval( val ); }
  153. if( strcmp( key , "InvWeapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon6] = strval( val ); }
  154. if( strcmp( key , "InvAmmo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo6] = strval( val ); }
  155. if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }
  156. if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
  157. if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarned] = strval( val ); }
  158. if( strcmp( key , "Swat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSwat] = strval( val ); }
  159. if( strcmp( key , "Tactical" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTactical] = strval( val ); }
  160. if( strcmp( key , "SpecialF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpecialF] = strval( val ); }
  161. if( strcmp( key , "DutyBanned" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDBanned] = strval( val ); }
  162. if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDuty] = strval( val ); }
  163. if( strcmp( key , "DDManager" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDM] = strval( val ); }
  164. if( strcmp( key , "DDTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDTK] = strval( val ); }
  165. if( strcmp( key , "DDSTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDSTK] = strval( val ); }
  166. if( strcmp( key , "Fighting" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFS] = strval( val ); }
  167. if( strcmp( key , "Boxing" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxiSkill] = strval( val ); }
  168. if( strcmp( key , "KneeHead" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKneeSkill] = strval( val ); }
  169. if( strcmp( key , "KungFu" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKungSkill] = strval( val ); }
  170. if( strcmp( key , "GrabKick" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGrabSkill] = strval( val ); }
  171. if( strcmp( key , "Elbow" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pElbowSkill] = strval( val ); }
  172. if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCD] = strval( val ); }
  173. if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpeedo] = strval( val ); }
  174. if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
  175. if( strcmp( key , "Tester" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
  176. if( strcmp( key , "HydraDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHydraR] = strval( val ); }
  177. if( strcmp( key , "HunterDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHunterR] = strval( val ); }
  178. if( strcmp( key , "RhinoDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRhinoR] = strval( val ); }
  179. if( strcmp( key , "PredatorDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPredR] = strval( val ); }
  180. if( strcmp( key , "ViewPms" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pViewPms] = strval( val ); }
  181. if( strcmp( key , "AppearList" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAppearList] = strval( val ); }
  182. if( strcmp( key , "AmmunationTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmuTrainTime] = strval( val ); }
  183. if( strcmp( key , "PistolSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPistSkill] = strval( val ); }
  184. if( strcmp( key , "SilencedSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSilenSkill] = strval( val ); }
  185. if( strcmp( key , "DesertSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesertSkill] = strval( val ); }
  186. if( strcmp( key , "ShotgunSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShotgSkill] = strval( val ); }
  187. if( strcmp( key , "SawnoffSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSawnSkill] = strval( val ); }
  188. if( strcmp( key , "CombatSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCombSkill] = strval( val ); }
  189. if( strcmp( key , "UziSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUziSkill] = strval( val ); }
  190. if( strcmp( key , "SmgSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmgSkill] = strval( val ); }
  191. if( strcmp( key , "Ak47Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAkSkill] = strval( val ); }
  192. if( strcmp( key , "M4Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pM4Skill] = strval( val ); }
  193. if( strcmp( key , "TutorialDone" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTutDone] = strval( val ); }
  194. if( strcmp( key , "RegularCount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularCount] = strval( val ); }
  195. if( strcmp( key , "PassportTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassportTime] = strval( val ); }
  196. if( strcmp( key , "OfficerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOfficerTime] = strval( val ); }
  197. if( strcmp( key , "Achievement0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement0] = strval( val ); }
  198. if( strcmp( key , "Achievement1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement1] = strval( val ); }
  199. if( strcmp( key , "Achievement2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement2] = strval( val ); }
  200. if( strcmp( key , "Achievement3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement3] = strval( val ); }
  201. if( strcmp( key , "Achievement4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement4] = strval( val ); }
  202. if( strcmp( key , "Achievement5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement5] = strval( val ); }
  203. if( strcmp( key , "Achievement6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement6] = strval( val ); }
  204. if( strcmp( key , "Achievement7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement7] = strval( val ); }
  205. if( strcmp( key , "Achievement8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement8] = strval( val ); }
  206. if( strcmp( key , "Achievement9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement9] = strval( val ); }
  207. if( strcmp( key , "Achievement10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement10] = strval( val ); }
  208. if( strcmp( key , "Achievement11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement11] = strval( val ); }
  209. if( strcmp( key , "Achievement12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement12] = strval( val ); }
  210. if( strcmp( key , "Achievement13" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement13] = strval( val ); }
  211. if( strcmp( key , "Achievement14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement14] = strval( val ); }
  212. if( strcmp( key , "Achievement15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); }
  213. if( strcmp( key , "Achievement16" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement16] = strval( val ); }
  214. if( strcmp( key , "Achievement17" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement17] = strval( val ); }
  215. if( strcmp( key , "Achievement18" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement18] = strval( val ); }
  216. if( strcmp( key , "Achievement19" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement19] = strval( val ); }
  217. if( strcmp( key , "Achievement20" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement20] = strval( val ); }
  218. if( strcmp( key , "ShiftName" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShiftName] = strval( val ); }
  219. if( strcmp( key , "Weapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon] = strval( val ); }
  220. if( strcmp( key , "Ammo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo] = strval( val ); }
  221. if( strcmp( key , "Weapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon2] = strval( val ); }
  222. if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
  223. if( strcmp( key , "Weapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon3] = strval( val ); }
  224. if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
  225. if( strcmp( key , "Weapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon4] = strval( val ); }
  226. if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
  227. if( strcmp( key , "Weapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon5] = strval( val ); }
  228. if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
  229. if( strcmp( key , "Weapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon6] = strval( val ); }
  230. if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
  231. if( strcmp( key , "Weapon7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon7] = strval( val ); }
  232. if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
  233. if( strcmp( key , "Weapon8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon8] = strval( val ); }
  234. if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
  235. if( strcmp( key , "Weapon9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon9] = strval( val ); }
  236. if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
  237. if( strcmp( key , "Weapon10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon10] = strval( val ); }
  238. if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
  239. if( strcmp( key , "Weapon11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon11] = strval( val ); }
  240. if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
  241. if( strcmp( key , "Weapon12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon12] = strval( val ); }
  242. if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
  243. if( strcmp( key , "Atc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtc] = strval( val ); }
  244. if( strcmp( key , "AtcRadio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtcRadio] = strval( val ); }
  245. if( strcmp( key , "Pending" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPending] = strval( val ); }
  246. if( strcmp( key , "PendingInfo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPendingInfo], val, 0, strlen(val)-1, 255); }
  247. if( strcmp( key , "ChatMode" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatMode] = strval( val ); }
  248. if( strcmp( key , "Punishment1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment1], val, 0, strlen(val)-1, 255); }
  249. if( strcmp( key , "Punishment2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment2], val, 0, strlen(val)-1, 255); }
  250. if( strcmp( key , "Punishment3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment3], val, 0, strlen(val)-1, 255); }
  251. if( strcmp( key , "Punishment4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment4], val, 0, strlen(val)-1, 255); }
  252. if( strcmp( key , "Punishment5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment5], val, 0, strlen(val)-1, 255); }
  253. if( strcmp( key , "Punishment6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment6], val, 0, strlen(val)-1, 255); }
  254. if( strcmp( key , "Punishment7" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment7], val, 0, strlen(val)-1, 255); }
  255. if( strcmp( key , "Punishment8" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment8], val, 0, strlen(val)-1, 255); }
  256. if( strcmp( key , "NextPunishment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNextPunishment] = strval( val ); }
  257. if( strcmp( key , "Punished" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPunished] = strval( val ); }
  258. if( strcmp( key , "TazerBullets" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTazerBullets] = strval( val ); }
  259. if( strcmp( key , "Changed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChanged] = strval( val ); }
  260. if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
  261. if( strcmp( key , "LastSeen" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSeen], val, 0, strlen(val)-1, 255); }
  262. if( strcmp( key , "RegistredDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pRegistredDate], val, 0, strlen(val)-1, 255); }
  263. }//end while
  264. fclose(UserFile);//close the file after everything has been read in the while
  265. }
  266. else
  267. {
  268. fclose(UserFile);
  269. gPlayerLogTries[playerid] += 1;
  270. 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");
  271. if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
  272. return 1;
  273. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement