Advertisement
Guest User

Register-System vertauscht Acc`s

a guest
Nov 8th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 59.78 KB | None | 0 0
  1. public OnPlayerRegister(playerid, password[])
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. new string3[64];
  6. new playername3[MAX_PLAYER_NAME];
  7. GetPlayerName(playerid, playername3, sizeof(playername3));
  8. format(string3, sizeof(string3), "/Accounts/%s.ini", playername3);
  9. new File: hFile = fopen(string3, io_write);
  10. if(hFile)
  11. {
  12. strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
  13. new var[32];
  14. format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  15. PlayerInfo[playerid][pCash] = 5000;
  16. format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
  17. format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
  18. format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
  19. format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
  20. format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
  21. format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
  22. format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
  23. format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
  24. format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
  25. format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
  26. format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
  27. format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
  28. format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  29. format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
  30. format(var, 32, "Kredit=%d\n",PlayerInfo[playerid][pPlayerKredit]);fwrite(hFile, var);
  31. format(var, 32, "KreditDauer=%d\n",PlayerInfo[playerid][pPlayerKreditDauer]);fwrite(hFile, var);
  32. format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
  33. format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
  34. format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
  35. format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
  36. format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
  37. format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
  38. format(var, 32, "Navigationsgerät=%d\n",PlayerInfo[playerid][pNavi]);fwrite(hFile, var);
  39. format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
  40. format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
  41. format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
  42. format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
  43. format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
  44. format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
  45. format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
  46. format(var, 32, "GangJailed=%d\n",PlayerInfo[playerid][pGangJailed]);fwrite(hFile, var);
  47. format(var, 32, "Mauled=%d\n",PlayerInfo[playerid][pMauled]);fwrite(hFile, var);
  48. format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
  49. format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
  50. format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
  51. format(var, 32, "BoxMaterials=%d\n",PlayerInfo[playerid][pBoxMats]);fwrite(hFile, var);
  52. format(var, 32, "BoxDrugs=%d\n",PlayerInfo[playerid][pBoxDrugs]);fwrite(hFile, var);
  53. format(var, 32, "FightingStyle=%d\n",GetPlayerFightingStyle(playerid));fwrite(hFile, var);
  54. format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
  55. format(var, 32, "CoLeader=%d\n",PlayerInfo[playerid][pCoLeader]);fwrite(hFile, var);
  56. format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
  57. format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
  58. format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
  59. format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
  60. format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
  61. format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
  62. format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
  63. format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
  64. format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
  65. format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
  66. format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
  67. format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
  68. format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
  69. format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
  70. format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
  71. format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
  72. format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
  73. GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
  74. format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
  75. format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
  76. format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
  77. format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
  78. format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
  79. format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
  80. format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
  81. format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
  82. format(var, 32, "GWD=%f\n",PlayerInfo[playerid][pGWD]);fwrite(hFile, var);
  83. format(var, 32, "HandyGeld=%d\n",PlayerInfo[playerid][pHandyGeld]);fwrite(hFile, var);
  84. format(var, 32, "HandyVer=%d\n",PlayerInfo[playerid][pHandyVer]);fwrite(hFile, var);
  85. if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
  86. {
  87. PlayerInfo[playerid][pPos_x] = 1684.9;
  88. PlayerInfo[playerid][pPos_y] = -2244.5;
  89. PlayerInfo[playerid][pPos_z] = 13.5;
  90. }
  91. if(Spectate[playerid] != 255)
  92. {
  93. PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
  94. PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
  95. PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
  96. PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  97. PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  98. }
  99. format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
  100. format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
  101. format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
  102. format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
  103. format(var, 32, "NewLic=%d\n",PlayerInfo[playerid][pNewLic]);fwrite(hFile, var);
  104. format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
  105. format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
  106. format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
  107. format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);// hier wird der schein in der Spieler .ini gespeichert
  108. format(var, 32, "LKWLic=%d\n",PlayerInfo[playerid][pLKWLic]);fwrite(hFile, var);
  109. format(var, 32, "RollerLic=%d\n",PlayerInfo[playerid][pRollerLic]);fwrite(hFile, var);
  110. format(var, 32, "MotoLic=%d\n",PlayerInfo[playerid][pMotoLic]);fwrite(hFile, var);
  111. format(var, 32, "Zig=%d\n",PlayerInfo[playerid][pZig]);fwrite(hFile, var);
  112. format(var, 32, "Kekse=%d\n",PlayerInfo[playerid][pKekse]);fwrite(hFile, var);
  113. format(var, 32, "ZigSucht=%d\n",PlayerInfo[playerid][pZigSucht]);fwrite(hFile, var);
  114. format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
  115. format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
  116. format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
  117. format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
  118. format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
  119. format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
  120. format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
  121. format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
  122. format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
  123. format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
  124. format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
  125. format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
  126. format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
  127. format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
  128. format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
  129. format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
  130. format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
  131. format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
  132. format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
  133. format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  134. format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
  135. format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
  136. format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
  137. format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
  138. format(var, 32, "SpawnChange=%d\n",SpawnChange[playerid]);fwrite(hFile, var);
  139. format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
  140. format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
  141. format(var, 32, "PlayMinutes=%d\n",PlayerInfo[playerid][pPlayMinutes]);fwrite(hFile, var);
  142. format(var, 32, "GesamtMinutes=%d\n",PlayerInfo[playerid][pGesamtMinutes]);fwrite(hFile, var);
  143. format(var, 32, "MinutesSinceAn=%d\n",PlayerInfo[playerid][pMinutesSinceAn]);fwrite(hFile, var);
  144. format(var, 32, "SFPASS=%d\n",PlayerInfo[playerid][pSFPASS]);fwrite(hFile, var);
  145. format(var, 32, "LVPASS=%d\n",PlayerInfo[playerid][pLVPASS]);fwrite(hFile, var);
  146. format(var, 32, "Offflucht=%d\n",OfflineFlucht[playerid]);fwrite(hFile, var);
  147. format(var, 32, "Knast=%d\n",Knast[playerid]);fwrite(hFile, var);
  148. format(var, 32, "Uhr=%d\n",PlayerInfo[playerid][pUhrID]);fwrite(hFile, var);
  149. format(var, 32, "Handy=%d\n",PlayerInfo[playerid][pHandyID]);fwrite(hFile, var);
  150. format(var, 32, "KnastTime=%d\n",KnastTime[playerid]);fwrite(hFile, var);
  151. format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);
  152. format(var, 32, "PersoZeit=%d\n",PlayerInfo[playerid][pPersoStop]);fwrite(hFile, var);
  153. format(var, 32, "FrakSperre=%d\n",PlayerInfo[playerid][pFrakSperre]);fwrite(hFile, var);
  154. format(var, 32, "Gehalt=%d\n",PlayerInfo[playerid][pGehalt]);fwrite(hFile, var);
  155. format(var, 32, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var);
  156. format(var, 32, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var);
  157. format(var, 32, "InvWeapon2=%d\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var);
  158. format(var, 32, "InvAmmo2=%d\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var);
  159. format(var, 32, "InvMats=%d\n",PlayerInfo[playerid][pInvMats]);fwrite(hFile, var);
  160. format(var, 32, "InvDrugs=%d\n",PlayerInfo[playerid][pInvDrugs]);fwrite(hFile, var);
  161. //format(var, 32, "Mulltime=%d\n",PlayerInfo[playerid][pMullTime]);fwrite(hFile, var);
  162. //format(var, 32, "FlugTime=%d\n",PlayerInfo[playerid][pFlugTime]);fwrite(hFile, var);
  163. //format(var, 32, "FarmTime=%d\n",PlayerInfo[playerid][pFarmTime]);fwrite(hFile, var);
  164. //format(var, 32, "TruckerTime=%d\n",PlayerInfo[playerid][pTruckerTime]);fwrite(hFile, var);
  165. //format(var, 32, "TotengTime=%d\n",PlayerInfo[playerid][pTotengTime]);fwrite(hFile, var);
  166. format(var, 32, "BombenTime=%d\n",PlayerInfo[playerid][pBombStatus]);fwrite(hFile, var);
  167. format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
  168. format(var, 32, "GDeaths=%d\n",PlayerInfo[playerid][pGDeaths]);fwrite(hFile, var);
  169. format(var, 32, "GKills=%d\n",PlayerInfo[playerid][pGKills]);fwrite(hFile, var);
  170. format(var, 32, "Meldung=%d\n",PlayerInfo[playerid][pMeldung]);fwrite(hFile, var);
  171. format(var, 32, "HouseKey=%d\n", PlayerInfo[playerid][pHouseKey]); fwrite(hFile, var);
  172. format(var, 32, "RentHouseKey=%d\n", PlayerInfo[playerid][pRentHouseKey]); fwrite(hFile, var);
  173. format(var, 32, "Zollpass=%d\n",PlayerInfo[playerid][pZollPass]);fwrite(hFile, var);
  174. format(var, 32, "ZollpassTime=%d\n",PlayerInfo[playerid][pZollPassTime]);fwrite(hFile, var);
  175. format(var, 32, "Gesperrt=%d\n",PlayerInfo[playerid][pGesperrt]);fwrite(hFile, var);
  176. format(var, 32, "Tuningteile=%d\n",PlayerInfo[playerid][pTuningParts]);fwrite(hFile, var);
  177. fclose(hFile);
  178. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Willkommen auf Arcticbytes Reallife,\n\n\n\n Bitte Logge dich nun ein!\n\n\n ","Login","Abbrechen");
  179. LoginTextForPlayer(playerid, 1);
  180. }
  181. }
  182. return 1;
  183. }
  184.  
  185. public PlayerUpdate(playerid)
  186. {
  187. if(IsPlayerConnected(playerid))
  188. {
  189. if(gPlayerLogged[playerid])
  190. {
  191. //Anti - samp Crasher
  192. new Float:x,Float:y,Float:z;
  193. GetPlayerCameraFrontVector(playerid,x,y,z);
  194. if(((-1.0< x <1.0) && (-1.0< y <1.0) && (-1.0< z <1.0)) == false)
  195. {
  196. if(AOFCT[playerid] > GetTickCount())AOFCW{playerid}++; else AOFCW{playerid}=0;
  197. AOFCT[playerid]=GetTickCount()+1000;
  198. if(AOFCW{playerid} == 2)
  199. {
  200. SendClientMessage(playerid, COLOR_RED, " Lass deinen Dreck aus!");
  201. Kick(playerid);//hat den crasher an
  202. }
  203. return 0;
  204. }
  205. //Anti - samp Crasher ENDE
  206. M_OnPlayerUpdate(playerid);
  207. new string3[64];
  208. new playername3[MAX_PLAYER_NAME];
  209. GetPlayerName(playerid, playername3, sizeof(playername3));
  210. format(string3, sizeof(string3), "/Accounts/%s.ini", playername3);
  211. new File: hFile = fopen(string3, io_write);
  212. if(hFile)
  213. {
  214. new var[32];
  215. format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  216. PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
  217. format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
  218. format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
  219. format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
  220. format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
  221. format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
  222. format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
  223. format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
  224. format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
  225. format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
  226. format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
  227. format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
  228. format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
  229. format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  230. format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
  231. format(var, 32, "Kredit=%d\n",PlayerInfo[playerid][pPlayerKredit]);fwrite(hFile, var);
  232. format(var, 32, "KreditDauer=%d\n",PlayerInfo[playerid][pPlayerKreditDauer]);fwrite(hFile, var);
  233. format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
  234. format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
  235. format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
  236. format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
  237. format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
  238. format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
  239. format(var, 32, "Navigationsgerät=%d\n",PlayerInfo[playerid][pNavi]);fwrite(hFile, var);
  240. format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
  241. format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
  242. format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
  243. format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
  244. format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
  245. format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
  246. format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
  247. format(var, 32, "GangJailed=%d\n",PlayerInfo[playerid][pGangJailed]);fwrite(hFile, var);
  248. format(var, 32, "Mauled=%d\n",PlayerInfo[playerid][pMauled]);fwrite(hFile, var);
  249. format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
  250. format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
  251. format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
  252. format(var, 32, "BoxMaterials=%d\n",PlayerInfo[playerid][pBoxMats]);fwrite(hFile, var);
  253. format(var, 32, "BoxDrugs=%d\n",PlayerInfo[playerid][pBoxDrugs]);fwrite(hFile, var);
  254. //format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][GetPlayerFightingStyle]);fwrite(hFile, var);
  255. format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
  256. format(var, 32, "CoLeader=%d\n",PlayerInfo[playerid][pCoLeader]);fwrite(hFile, var);
  257. format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
  258. format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
  259. format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
  260. format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
  261. format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
  262. format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
  263. format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
  264. format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
  265. format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
  266. format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
  267. format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
  268. format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
  269. format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
  270. format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
  271. format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
  272. format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
  273. format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
  274. GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
  275. format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
  276. format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
  277. format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
  278. format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
  279. format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
  280. format(var, 32, "GWD=%f\n",PlayerInfo[playerid][pGWD]);fwrite(hFile, var);
  281. format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
  282. format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
  283. format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
  284. format(var, 32, "HandyGeld=%d\n",PlayerInfo[playerid][pHandyGeld]);fwrite(hFile, var);
  285. format(var, 32, "HandyVer=%d\n",PlayerInfo[playerid][pHandyVer]);fwrite(hFile, var);
  286. format(var, 32, "Autoradio=%d\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var);
  287. if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
  288. {
  289. PlayerInfo[playerid][pPos_x] = 1684.9;
  290. PlayerInfo[playerid][pPos_y] = -2244.5;
  291. PlayerInfo[playerid][pPos_z] = 13.5;
  292. }
  293. if(Spectate[playerid] != 255)
  294. {
  295. PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
  296. PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
  297. PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
  298. PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  299. PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  300. }
  301. format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
  302. format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
  303. format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
  304. format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
  305. format(var, 32, "NewLic=%d\n",PlayerInfo[playerid][pNewLic]);fwrite(hFile, var);
  306. format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
  307. format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
  308. format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
  309. format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);// hier wird aller 30 min alles geupdated und gespeichert
  310. format(var, 32, "LKWLic=%d\n",PlayerInfo[playerid][pLKWLic]);fwrite(hFile, var);
  311. format(var, 32, "RollerLic=%d\n",PlayerInfo[playerid][pRollerLic]);fwrite(hFile, var);
  312. format(var, 32, "MotoLic=%d\n",PlayerInfo[playerid][pMotoLic]);fwrite(hFile, var);
  313. format(var, 32, "Zig=%d\n",PlayerInfo[playerid][pZig]);fwrite(hFile, var);
  314. format(var, 32, "Kekse=%d\n",PlayerInfo[playerid][pKekse]);fwrite(hFile, var);
  315. format(var, 32, "ZigSucht=%d\n",PlayerInfo[playerid][pZigSucht]);fwrite(hFile, var);
  316. format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
  317. format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
  318. format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
  319. format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
  320. format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
  321. format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
  322. format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
  323. format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
  324. format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
  325. format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
  326. format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
  327. format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
  328. format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
  329. format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
  330. format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
  331. format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
  332. format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
  333. format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
  334. format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
  335. format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  336. format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
  337. format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
  338. format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
  339. format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
  340. format(var, 32, "SpawnChange=%d\n",SpawnChange[playerid]);fwrite(hFile, var);
  341. format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
  342. format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
  343. format(var, 32, "PlayMinutes=%d\n",PlayerInfo[playerid][pPlayMinutes]);fwrite(hFile, var);
  344. format(var, 32, "GesamtMinutes=%d\n",PlayerInfo[playerid][pGesamtMinutes]);fwrite(hFile, var);
  345. format(var, 32, "MinutesSinceAn=%d\n",PlayerInfo[playerid][pMinutesSinceAn]);fwrite(hFile, var);
  346. format(var, 32, "SFPASS=%d\n",PlayerInfo[playerid][pSFPASS]);fwrite(hFile, var);
  347. format(var, 32, "LVPASS=%d\n",PlayerInfo[playerid][pLVPASS]);fwrite(hFile, var);
  348. format(var, 32, "Offflucht=%d\n",OfflineFlucht[playerid]);fwrite(hFile, var);
  349. format(var, 32, "Knast=%d\n",Knast[playerid]);fwrite(hFile, var);
  350. format(var, 32, "Uhr=%d\n",PlayerInfo[playerid][pUhrID]);fwrite(hFile, var);
  351. format(var, 32, "Handy=%d\n",PlayerInfo[playerid][pHandyID]);fwrite(hFile, var);
  352. format(var, 32, "KnastTime=%d\n",KnastTime[playerid]);fwrite(hFile, var);
  353. format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);
  354. format(var, 32, "PersoZeit=%d\n",PlayerInfo[playerid][pPersoStop]);fwrite(hFile, var);
  355. format(var, 32, "FrakSperre=%d\n",PlayerInfo[playerid][pFrakSperre]);fwrite(hFile, var);
  356. format(var, 32, "Gehalt=%d\n",PlayerInfo[playerid][pGehalt]);fwrite(hFile, var);
  357. format(var, 32, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var);
  358. format(var, 32, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var);
  359. format(var, 32, "InvWeapon2=%d\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var);
  360. format(var, 32, "InvAmmo2=%d\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var);
  361. format(var, 32, "InvMats=%d\n",PlayerInfo[playerid][pInvMats]);fwrite(hFile, var);
  362. format(var, 32, "InvDrugs=%d\n",PlayerInfo[playerid][pInvDrugs]);fwrite(hFile, var);
  363. //format(var, 32, "Mulltime=%d\n",PlayerInfo[playerid][pMullTime]);fwrite(hFile, var);
  364. //format(var, 32, "FlugTime=%d\n",PlayerInfo[playerid][pFlugTime]);fwrite(hFile, var);
  365. //format(var, 32, "FarmTime=%d\n",PlayerInfo[playerid][pFarmTime]);fwrite(hFile, var);
  366. //format(var, 32, "TruckerTime=%d\n",PlayerInfo[playerid][pTruckerTime]);fwrite(hFile, var);
  367. //format(var, 32, "TotengTime=%d\n",PlayerInfo[playerid][pTotengTime]);fwrite(hFile, var);
  368. format(var, 32, "BombenTime=%d\n",PlayerInfo[playerid][pBombStatus]);fwrite(hFile, var);
  369. format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
  370. format(var, 32, "GDeaths=%d\n",PlayerInfo[playerid][pGDeaths]);fwrite(hFile, var);
  371. format(var, 32, "GKills=%d\n",PlayerInfo[playerid][pGKills]);fwrite(hFile, var);
  372. format(var, 32, "Meldung=%d\n",PlayerInfo[playerid][pMeldung]);fwrite(hFile, var);
  373. format(var, 32, "HouseKey=%d\n", PlayerInfo[playerid][pHouseKey]);fwrite(hFile, var);
  374. format(var, 32, "RentHouseKey=%d\n", PlayerInfo[playerid][pRentHouseKey]);fwrite(hFile, var);
  375. format(var, 32, "Zollpass=%d\n",PlayerInfo[playerid][pZollPass]);fwrite(hFile, var);
  376. format(var, 32, "ZollpassTime=%d\n",PlayerInfo[playerid][pZollPassTime]);fwrite(hFile, var);
  377. format(var, 32, "Bombe=%d\n",PlayerInfo[playerid][pBombe]);fwrite(hFile, var);
  378. format(var, 32, "sdm=%d\n",PlayerInfo[playerid][sdm]);fwrite(hFile, var);
  379. format(var, 32, "Goldbarren=%d\n",PlayerInfo[playerid][pGold]);fwrite(hFile, var);
  380. format(var, 32, "Friedhof=%d\n",PlayerInfo[playerid][pDeathTime]);fwrite(hFile, var);
  381. format(var, 32, "Guertel=%d\n",PlayerInfo[playerid][pGuertel]);fwrite(hFile, var);
  382. format(var, 32, "CIA=%d\n",PlayerInfo[playerid][CIA]);fwrite(hFile, var);
  383. format(var, 32, "Gesperrt=%d\n",PlayerInfo[playerid][pGesperrt]);fwrite(hFile, var);
  384. format(var, 32, "Tuningteile=%d\n",PlayerInfo[playerid][pTuningParts]);fwrite(hFile, var);
  385. new weapons[13];
  386. new ammo[13];
  387. for (new i = 0; i < 13; i++)
  388. {
  389. GetPlayerWeaponData(playerid, i, weapons, ammo);
  390. }
  391. format(var, 32, "waffenslot1=%d\n", weapons[0]);fwrite(hFile, var);
  392. format(var, 32, "ammoslot1=%d\n", ammo[0]);fwrite(hFile, var);
  393. format(var, 32, "waffenslot2=%d\n", weapons[1]);fwrite(hFile, var);
  394. format(var, 32, "ammoslot2=%d\n", ammo[1]);fwrite(hFile, var);
  395. format(var, 32, "waffenslot3=%d\n", weapons[2]);fwrite(hFile, var);
  396. format(var, 32, "ammoslot3=%d\n", ammo[2]);fwrite(hFile, var);
  397. format(var, 32, "waffenslot4=%d\n", weapons[3]);fwrite(hFile, var);
  398. format(var, 32, "ammoslot4=%d\n", ammo[3]);fwrite(hFile, var);
  399. format(var, 32, "waffenslot5=%d\n", weapons[4]);fwrite(hFile, var);
  400. format(var, 32, "ammoslot5=%d\n", ammo[4]);fwrite(hFile, var);
  401. format(var, 32, "waffenslot6=%d\n", weapons[5]);fwrite(hFile, var);
  402. format(var, 32, "ammoslot6=%d\n", ammo[5]);fwrite(hFile, var);
  403. format(var, 32, "waffenslot7=%d\n", weapons[6]);fwrite(hFile, var);
  404. format(var, 32, "ammoslot7=%d\n", ammo[6]);fwrite(hFile, var);
  405. format(var, 32, "waffenslot8=%d\n", weapons[7]);fwrite(hFile, var);
  406. format(var, 32, "ammoslot8=%d\n", ammo[7]);fwrite(hFile, var);
  407. format(var, 32, "waffenslot9=%d\n", weapons[8]);fwrite(hFile, var);
  408. format(var, 32, "ammoslot9=%d\n", ammo[8]);fwrite(hFile, var);
  409. format(var, 32,"waffenslot10=%d\n", weapons[9]);fwrite(hFile, var);
  410. format(var, 32, "ammoslot10=%d\n", ammo[9]);fwrite(hFile, var);
  411. format(var, 32, "waffenslot11=%d\n", weapons[10]);fwrite(hFile, var);
  412. format(var, 32, "ammoslot11=%d\n", ammo[10]);fwrite(hFile, var);
  413. format(var, 32, "waffenslot12=%d\n", weapons[11]);fwrite(hFile, var);
  414. format(var, 32, "ammoslot12=%d\n", ammo[11]);fwrite(hFile, var);
  415. format(var, 32, "waffenslot13=%d\n", weapons[12]);fwrite(hFile, var);
  416. format(var, 32, "ammoslot13=%d\n", ammo[12]);fwrite(hFile, var);
  417. fclose(hFile);
  418. }
  419. }
  420. }
  421. return 1;
  422. }
  423.  
  424. public OnPlayerLogin(playerid,password[])
  425. {
  426. new tmp2[256];
  427. new string2[128];
  428. new playername2[MAX_PLAYER_NAME];
  429. GetPlayerName(playerid, playername2, sizeof(playername2));
  430. format(string2, sizeof(string2), "/Accounts/%s.ini", playername2);
  431. new File: UserFile = fopen(string2, io_read);
  432. if(UserFile)
  433. {
  434. new PassData[256];
  435. new keytmp[256], valtmp[256];
  436. fread(UserFile , PassData , sizeof(PassData));
  437. keytmp = ini_GetKey(PassData);
  438. if( strcmp( keytmp , "Key" , true ) == 0 )
  439. {
  440. valtmp = ini_GetValue( PassData );
  441. strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
  442. }
  443. if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
  444. {
  445. new key[256] , val[256];
  446. new Data[256];
  447. while(fread(UserFile , Data , sizeof(Data)))
  448. {
  449. key = ini_GetKey( Data );
  450. if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
  451. if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
  452. if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }
  453. if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
  454. if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
  455. if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
  456. if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
  457. if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
  458. if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
  459. if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
  460. if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
  461. if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
  462. if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
  463. if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
  464. if( strcmp( key , "Kredit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayerKredit] = strval( val ); }
  465. if( strcmp( key , "KreditDauer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayerKreditDauer] = strval( val ); }
  466. if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
  467. if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
  468. if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
  469. if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
  470. if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
  471. if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
  472. if( strcmp( key , "Navigationsgerät" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNavi] = strval( val ); }
  473. if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
  474. if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
  475. if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
  476. if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
  477. if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
  478. if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
  479. if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
  480. if( strcmp( key , "GangJailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGangJailed] = strval( val ); }
  481. if( strcmp( key , "Mauled" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMauled] = strval( val ); }
  482. if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
  483. if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
  484. if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
  485. if( strcmp( key , "BoxMaterials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxMats] = strval( val ); }
  486. if( strcmp( key , "BoxDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxDrugs] = strval( val ); }
  487. if( strcmp( key , "FightingStyle" , true ) == 0 ) { val = ini_GetValue( Data ); SetPlayerFightingStyle(playerid,strval(val)); }
  488. if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
  489. if( strcmp( key , "CoLeader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCoLeader] = strval( val ); }
  490. if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
  491. if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
  492. if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
  493. if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
  494. if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
  495. if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
  496. if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
  497. if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
  498. if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
  499. if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
  500. if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
  501. if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
  502. if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
  503. if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
  504. if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
  505. if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
  506. if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
  507. if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
  508. if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
  509. if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
  510. if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
  511. if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
  512. if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
  513. if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
  514. if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
  515. if( strcmp( key , "HandyGeld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyGeld] = strval( val ); }
  516. if( strcmp( key , "HandyVer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyVer] = strval( val ); }
  517. if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
  518. if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
  519. if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
  520. if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
  521. if( strcmp( key , "NewLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewLic] = strval( val ); }
  522. if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
  523. if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
  524. if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
  525. if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }// Laden von schein wenn du /login machst
  526. if( strcmp( key , "LKWLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLKWLic] = strval( val ); }
  527. if( strcmp( key , "RollerLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRollerLic] = strval( val ); }
  528. if( strcmp( key , "MotoLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMotoLic] = strval( val ); }
  529. if( strcmp( key , "Zig" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZig] = strval( val ); }
  530. if( strcmp( key , "Kekse", true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKekse] = strval( val ); }
  531. if( strcmp( key , "ZigSucht" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZigSucht] = strval( val ); }
  532. if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
  533. if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
  534. if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
  535. if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
  536. if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
  537. if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
  538. if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
  539. if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
  540. if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
  541. if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
  542. if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
  543. if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
  544. if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
  545. if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
  546. if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
  547. if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
  548. if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
  549. if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
  550. if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
  551. if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
  552. if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
  553. if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
  554. if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
  555. if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
  556. if( strcmp( key , "SpawnChange" , true ) == 0 ) { val = ini_GetValue( Data ); SpawnChange[playerid] = strval( val ); }
  557. if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); }
  558. if( strcmp( key , "WantedPoints" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = strval( val ); }
  559. if( strcmp( key , "PlayMinutes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayMinutes] = strval( val ); }
  560. if( strcmp( key , "GesamtMinutes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGesamtMinutes] = strval( val ); }
  561. if( strcmp( key , "MinutesSinceAn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMinutesSinceAn] = strval( val ); }
  562. if( strcmp( key , "SFPASS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFPASS] = strval( val ); }
  563. if( strcmp( key , "LVPASS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLVPASS] = strval( val ); }
  564. if( strcmp( key , "Offflucht" , true ) == 0 ) { val = ini_GetValue( Data ); OfflineFlucht[playerid] = strval( val ); }
  565. if( strcmp( key , "Knast" , true ) == 0 ) { val = ini_GetValue( Data ); Knast[playerid] = strval( val ); }
  566. if( strcmp( key , "Handy" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHandyID] = strval( val ); }
  567. if( strcmp( key , "Uhr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUhrID] = strval( val ); }
  568. if( strcmp( key , "KnastTime" , true ) == 0 ) { val = ini_GetValue( Data ); KnastTime[playerid] = strval( val ); }
  569. if( strcmp( key , "Perso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOwnPerso] = strval( val ); }
  570. if( strcmp( key , "PersoZeit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPersoStop] = strval( val ); }
  571. if( strcmp( key , "FrakSperre" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrakSperre] = strval( val ); }
  572. if( strcmp( key , "Gehalt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGehalt] = strval( val ); }
  573. if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
  574. if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
  575. if( strcmp( key , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
  576. if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
  577. if( strcmp( key , "InvMats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvMats] = strval( val ); }
  578. if( strcmp( key , "InvDrugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvDrugs] = strval( val ); }
  579. //if( strcmp( key , "Mulltime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMullTime] = strval( val ); }
  580. //if( strcmp( key , "FlugTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlugTime] = strval( val ); }
  581. //if( strcmp( key , "FarmTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFarmTime] = strval( val ); }
  582. //if( strcmp( key , "TruckerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTruckerTime] = strval( val ); }
  583. //if( strcmp( key , "TotengTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTotengTime] = strval( val ); }
  584. if( strcmp( key , "BombenTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombStatus] = strval( val ); }
  585. if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
  586. if( strcmp( key , "GDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGDeaths] = strval( val ); }
  587. if( strcmp( key , "GKills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGKills] = strval( val ); }
  588. if( strcmp( key , "GWD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGWD] = floatstr( val ); }
  589. if( strcmp( key , "Meldung" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMeldung] = strval( val ); }
  590. if( strcmp( key , "HouseKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseKey] = strval( val ); }
  591. if( strcmp( key , "RentHouseKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentHouseKey] = strval( val ); }
  592. if( strcmp( key , "Zollpass" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZollPass] = strval( val ); }
  593. if( strcmp( key , "ZollpassTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZollPassTime] = strval( val ); }
  594. if( strcmp( key , "Bombe" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombe] = strval( val ); }
  595. if( strcmp( key , "sdm" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][sdm] = strval( val ); }
  596. if( strcmp( key , "Goldbarren" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGold] = strval( val ); }
  597. if( strcmp( key , "Friedhof" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeathTime] = strval( val ); }
  598. if( strcmp( key , "Guertel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGuertel] = strval( val ); }
  599. if( strcmp( key , "CIA" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][CIA] = strval( val ); }
  600. if( strcmp( key , "Gesperrt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGesperrt] = strval( val ); }
  601. if( strcmp( key , "Tuningteile" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTuningParts] = strval( val ); }
  602. /*new weapon[14];
  603. new ammo[14];
  604. for(new i = 1;i< 14;i++)
  605. {
  606. new tmpstring[128];
  607. format(tmpstring,sizeof tmpstring, "waffenslot%d",i);
  608. if( strcmp( key , tmpstring , true ) == 0)weapon[i-1] = strval(ini_GetValue( Data ));
  609. format(tmpstring,sizeof tmpstring, "ammoslot%d",i);
  610. if( strcmp( key , tmpstring , true ) == 0)ammo[i-1] = strval(ini_GetValue( Data ));
  611. GivePlayerWeapon(playerid,weapon[i-1],ammo[i-1]);
  612. }*/
  613. }
  614. fclose(UserFile);
  615. }
  616. else
  617. {
  618. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Das Passwort ist nicht korrekt! Bitte gib nun dein richtiges Passwort ein:","Login","Abbrechen");
  619. fclose(UserFile);
  620. gPlayerLogTries[playerid] += 1;
  621. if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
  622. LoginTextForPlayer(playerid, 1);
  623. return 1;
  624. }
  625. //SupCar[playerid] = 999;
  626. PlayerInfo[playerid][pAdjustable] = 0;
  627. ResetPlayerMoney(playerid);
  628. //ConsumingMoney[playerid] = 1;
  629. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  630. //CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
  631.  
  632. /*if(WantedPoints[playerid] == 2) { if(WantedLevel[playerid] != 1) { WantedLevel[playerid] = 1; } }
  633. else if(WantedPoints[playerid] >= 4 && WantedPoints[playerid] <= 5) { if(WantedLevel[playerid] != 2) { WantedLevel[playerid] = 2; } }
  634. else if(WantedPoints[playerid] >= 6 && WantedPoints[playerid] <= 7) { if(WantedLevel[playerid] != 3) { WantedLevel[playerid] = 3; } }
  635. else if(WantedPoints[playerid] >= 8 && WantedPoints[playerid] <= 9) { if(WantedLevel[playerid] != 4) { WantedLevel[playerid] = 4; } }
  636. else if(WantedPoints[playerid] >= 10 && WantedPoints[playerid] <= 11) { if(WantedLevel[playerid] != 5) { WantedLevel[playerid] = 5; } }
  637. else if(WantedPoints[playerid] >= 12 && WantedPoints[playerid] <= 13) { if(WantedLevel[playerid] != 6) { WantedLevel[playerid] = 6; } }
  638. else if(WantedPoints[playerid] >= 14) { if(WantedLevel[playerid] != 10) { WantedLevel[playerid] = 10; } }
  639. SetPlayerWantedLevel(playerid,WantedLevel[playerid]);
  640. */
  641. /*new pName[MAX_PLAYER_NAME];
  642. GetPlayerName(playerid,pName,sizeof(pName));
  643. format(tbDir,sizeof(tbDir),foxBanFile,pName);
  644. if(dini_Exists(tbDir))
  645. {
  646. if(dini_Int(tbDir,"fbTime")+dini_Int(tbDir,"fbDuration") > Time())
  647. {
  648. new sekki=(dini_Int(tbDir,"fbTime")+dini_Int(tbDir,"fbDuration"))-Time(),minni=sekki/60;
  649. sekki=sekki-minni*60;
  650. format(ALLSTRING,sizeof(ALLSTRING),"Du wurdest für eine Weile vom Server gebannt. Restliche Zeit: %d Minuten %d Sekunden",minni,sekki);
  651. SendClientMessage(playerid,COLOR_LIGHTRED,ALLSTRING);
  652. format(ALLSTRING,sizeof(ALLSTRING),"%s hat versucht mit einem Timeban sich einzuloggen.", pName);
  653. ABroadCast(COLOR_YELLOW,ALLSTRING,1);
  654. Kick(playerid);
  655. }
  656. else
  657. {
  658. dini_Remove(tbDir);
  659. }
  660. }*/
  661. if(PlayerInfo[playerid][pReg] == 0)
  662. {
  663. PlayerInfo[playerid][pLevel] = 1;
  664. PlayerInfo[playerid][pSHealth] = 0.0;
  665. PlayerInfo[playerid][pHealth] = 99.0;
  666. PlayerInfo[playerid][pPos_x] = 2246.6;
  667. PlayerInfo[playerid][pPos_y] = -1161.9;
  668. PlayerInfo[playerid][pPos_z] = 1029.7;
  669. PlayerInfo[playerid][pInt] = 15;
  670. PlayerInfo[playerid][pLocal] = 255;
  671. PlayerInfo[playerid][pTeam] = 3;
  672. PlayerInfo[playerid][pModel] = 212;
  673. PlayerInfo[playerid][pPhousekey] = 255;
  674. PlayerInfo[playerid][pPbiskey] = 255;
  675. PlayerInfo[playerid][pAccount] = 0;
  676. PlayerInfo[playerid][pNewLic] = 1;
  677. PlayerInfo[playerid][pReg] = 1;
  678. PlayerInfo[playerid][pTut] = 0;
  679. //GivePlayerMoney(playerid, 10000);
  680. //PlayerInfo[playerid][pCash] += 10000;
  681. }
  682. if(PlayerInfo[playerid][pGesperrt] == 1)
  683. {
  684. format(string2, sizeof(string2), "AdmCmd: %s versucht mit seinem gebannten Account online zu kommen und wurde gekickt.",playername2);
  685. SendClientMessageToAll(COLOR_LIGHTRED, string2);
  686. SendClientMessage(playerid,COLOR_RED," Du bist hier gebannt also such dir einen anderen Server.");
  687. ABroadCast(COLOR_LIGHTRED,string2,1);
  688. Kick(playerid);
  689. return 1;
  690. }
  691. else if(PlayerInfo[playerid][pCK] > 0)
  692. {
  693. Kick(playerid);
  694. }
  695. format(string2, sizeof(string2), "Erfolgreich eingeloggt, Willkommen %s auf Arcticbytes Reallife",playername2);
  696. SendClientMessage(playerid, COLOR_GREEN,string2);
  697. printf("User: %s hat sich eingeloggt.",playername2);
  698. if(PlayerInfo[playerid][pDonateRank] == 1)
  699. {
  700. SendClientMessage(playerid, 0xC0C0C0FF,"Du bist Silber Premium User.");
  701. }
  702. else if(PlayerInfo[playerid][pDonateRank] == 2)
  703. {
  704. SendClientMessage(playerid, 0xB8860BAA,"Du bist Gold Premium User.");
  705. }
  706. /*if(PlayerInfo[playerid][pAdmin] == 1)
  707. {
  708. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {00CCFF}Probe Supporter{00FF00} eingeloggt.");
  709. }*/
  710. if(PlayerInfo[playerid][pAdmin] == 1)
  711. {
  712. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {00CCFF}Probe Moderator{00FF00} eingeloggt.");
  713. }
  714. if(PlayerInfo[playerid][pAdmin] == 2)
  715. {
  716. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {CCFF00}Moderator{00FF00} eingeloggt.");
  717. }
  718. else if(PlayerInfo[playerid][pAdmin] == 1337)
  719. {
  720. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {FF9900}Administrator{00FF00} eingeloggt.");
  721. }
  722. /*else if(PlayerInfo[playerid][pAdmin] == 1338)
  723. {
  724. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {CC3300}High Administrator{00FF00} eingeloggt.");
  725. }*/
  726. else if(PlayerInfo[playerid][pAdmin] == 1339)
  727. {
  728. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {009933}Communityleiter{00FF00} eingeloggt.");
  729. }
  730. else if(PlayerInfo[playerid][pAdmin] == 2000)
  731. {
  732. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {0033FF}Servermanager{00FF00} eingeloggt.");
  733. }
  734. else if(PlayerInfo[playerid][pAdmin] == 2001)
  735. {
  736. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {993333}Stellv. Projektleiter{00FF00} eingeloggt.");
  737. }
  738. else if(PlayerInfo[playerid][pAdmin] == 2002)
  739. {
  740. SendClientMessage(playerid, 0xF0F0F0FF, "Du bist als {FF0000}Projektleiter{00FF00} eingeloggt.");
  741. }
  742. new string[MAX_PLAYER_NAME];
  743. new sendername[MAX_PLAYER_NAME];
  744. //SendClientMessage(playerid, COLOR_GREEN, "{00CC33}Das {FF6600}Arcticbytes Reallife {FF0000}Team {00CC33}wünscht euch ein frohes neues Jahr und einen guten Rutsch ins Jahr 2014.");
  745. //SendClientMessage(playerid, COLOR_GREEN, " Wenn du sehen möchtest wer zu diesem {00CCFF}Projekt {009933}gehört dann tippe {FF0000}/Das Team {009933}ein.");
  746. format(string,sizeof(string),"Willkommen zurück auf Arcticbytes Reallife %s.",sendername);
  747. //SendClientMessage(playerid, COLOR_GREEN, " Willkommem auf Arcticbytes Reallife wir wünschen dir viel Spaß.");
  748. SendClientMessage(playerid, COLOR_RED, " Bei Fragen oder Problemen benutzt /report.");
  749. SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
  750. if(gTeam[playerid] == 0)
  751. {
  752. gTeam[playerid] = 3;
  753. }
  754. else
  755. {
  756. gTeam[playerid] = PlayerInfo[playerid][pTeam];
  757. }
  758. gPlayerLogged[playerid] = 1;
  759. TogglePlayerSpectating(playerid, 0);
  760. SpawnPlayer(playerid);
  761. format(tmp2, sizeof(tmp2), "~w~Willkommen ~n~~y~ %s", playername2);
  762. GameTextForPlayer(playerid, tmp2, 5000, 1);
  763. SendClientMessage(playerid, COLOR_YELLOW, motd);
  764. }
  765. if(OfflineFlucht[playerid] == 1 && WantedLevel[playerid] > 0)
  766. {
  767. SendClientMessage(playerid,COLOR_LIGHTRED, "* Du wurdest Eingesperrt weil du Offline-Flucht begangen hast!");
  768. SendClientMessage(playerid,COLOR_LIGHTRED, "* Pro WantedLevel 5 Minuten + 30 Minuten Strafe!");
  769. new sendername[MAX_PLAYER_NAME],string[100];
  770. GetPlayerName(playerid, sendername, sizeof(sendername));
  771. format(string, sizeof(string), "*[Auto-Jail] %s wurde wegen Offline-Flucht eignesperrt.", sendername);
  772. for(new i = 0; i < MAX_PLAYERS; i++)
  773. {
  774. if(IsPlayerConnected(i) && IsADChatter(i))
  775. {
  776. SendClientMessage(i,COLOR_ALLDEPT,string);
  777. }
  778. }
  779. OfflineFlucht[playerid] = 0;
  780. ResetPlayerWeapons(playerid);
  781. new wlevel = WantedLevel[playerid];
  782. PlayerInfo[playerid][pJailed] = 1;
  783. PlayerInfo[playerid][pJailTime] = (wlevel*300)+1800;
  784. SetPlayerInterior(playerid, 3);
  785. if(LSPDZellen == 0)//zelle1
  786. {
  787. SetPlayerPos(playerid,219.4217,110.5207,999.0156);
  788. LSPDZellen += 1;
  789. }
  790. if(LSPDZellen == 1)//zelle2
  791. {
  792. SetPlayerPos(playerid,223.2922,110.6890,999.0156);
  793. LSPDZellen += 1;
  794. }
  795. if(LSPDZellen == 2)//zelle3
  796. {
  797. SetPlayerPos(playerid,215.0419,110.2922,999.0156);
  798. LSPDZellen = 0;
  799. }
  800. WantedPoints[playerid] = 0;
  801. SetPlayerWantedLevel(playerid,0);
  802. WantedLevel[playerid] = 0;
  803. }
  804. else if(OfflineFlucht[playerid] == 1 && WantedLevel[playerid] == 0)
  805. {
  806. SendClientMessage(playerid,COLOR_LIGHTRED, "* Du wurdest eingesperrt weil du Offline-Flucht begangen hast!");
  807. new sendername[MAX_PLAYER_NAME],string[100];
  808. GetPlayerName(playerid, sendername, sizeof(sendername));
  809. format(string, sizeof(string), "*[Auto-Jail] %s wurde wegen Offline-Flucht eingesperrt.", sendername);
  810. for(new i = 0; i < MAX_PLAYERS; i++)
  811. {
  812. if(IsPlayerConnected(i) && IsADChatter(i))
  813. {
  814. SendClientMessage(i,COLOR_ALLDEPT,string);
  815. }
  816. }
  817. OfflineFlucht[playerid] = 0;
  818. ResetPlayerWeapons(playerid);
  819. PlayerInfo[playerid][pJailed] = 1;
  820. PlayerInfo[playerid][pJailTime] = 300;
  821. SetPlayerInterior(playerid, 3);
  822. if(LSPDZellen == 0)//zelle1
  823. {
  824. SetPlayerPos(playerid,215.0419,110.2922,999.0156);
  825. LSPDZellen += 1;
  826. }
  827. if(LSPDZellen == 1)//zelle2
  828. {
  829. SetPlayerPos(playerid,227.8457,110.7000,999.0156);
  830. LSPDZellen += 1;
  831. }
  832. if(LSPDZellen == 2)//zelle3
  833. {
  834. SetPlayerPos(playerid,223.2922,110.6890,999.0156);
  835. LSPDZellen = 0;
  836. }
  837. WantedPoints[playerid] = 0;
  838. SetPlayerWantedLevel(playerid,0);
  839. WantedLevel[playerid] = 0;
  840. }
  841. else if(OfflineFlucht[playerid] == 2 && WantedLevel[playerid] > 0)
  842. {
  843. SendClientMessage(playerid,COLOR_LIGHTRED, "* Du wurdest Eingesperrt weil du Gecuffed einen Crash hattest!");
  844. SendClientMessage(playerid,COLOR_LIGHTRED, "* Pro WantedLevel 5 Minuten!");
  845. new sendername[MAX_PLAYER_NAME],string[100];
  846. GetPlayerName(playerid, sendername, sizeof(sendername));
  847. format(string, sizeof(string), "*[Auto-Jail] %s wurde wegen Exe-Crash eingesperrt.", sendername);
  848. for(new i = 0; i < MAX_PLAYERS; i++)
  849. {
  850. if(IsPlayerConnected(i) && IsADChatter(i))
  851. {
  852. SendClientMessage(i,COLOR_ALLDEPT,string);
  853. }
  854. }
  855. OfflineFlucht[playerid] = 0;
  856. ResetPlayerWeapons(playerid);
  857. new wlevel = WantedLevel[playerid];
  858. PlayerInfo[playerid][pJailed] = 1;
  859. PlayerInfo[playerid][pJailTime] = wlevel*300;
  860. SetPlayerInterior(playerid, 3);
  861. if(LSPDZellen == 0)//zelle1
  862. {
  863. SetPlayerPos(playerid,223.2922,110.6890,999.0156);
  864. LSPDZellen += 1;
  865. }
  866. if(LSPDZellen == 1)//zelle2
  867. {
  868. SetPlayerPos(playerid,227.8457,110.7000,999.0156);
  869. LSPDZellen += 1;
  870. }
  871. if(LSPDZellen == 2)//zelle3
  872. {
  873. SetPlayerPos(playerid,215.0419,110.2922,999.0156);
  874. LSPDZellen = 0;
  875. }
  876. WantedPoints[playerid] = 0;
  877. SetPlayerWantedLevel(playerid,0);
  878. WantedLevel[playerid] = 0;
  879. }
  880. new stern = WantedLevel[playerid];
  881. SetPlayerWantedLevel(playerid,stern);
  882. WantedPoints[playerid] = stern * 2;
  883. /*if(PlayerInfo[playerid][pLevel] <= 4)
  884. {
  885. Noob[playerid] = Create3DTextLabel("*Neuling*",0x00AFFFFF,30.0,40.0,50.0,40.0,0);
  886. Attach3DTextLabelToPlayer(Noob[playerid], playerid, 0.0, 0.0, 0.4);
  887. Noobi[playerid] = 1;
  888. }*/
  889. KHSperre[playerid] = 1;
  890. SetTimerEx("KHSP",60000,0,"i",playerid);
  891. for(new i=0;i<MAX_PLAYERS;i++)
  892. {
  893. if(IsPlayerConnected(i) && Maske == 1)
  894. {
  895. ShowPlayerNameTagForPlayer(playerid, i, 0);
  896. }
  897. }
  898. return 1;
  899. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement