Guest User

Untitled

a guest
Oct 9th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. if(fexist(Path(playerid)))
  2. {
  3. new INI:file = INI_Open(Path(playerid));
  4. INI_SetTag(file,"Informacije");
  5. INI_WriteInt(file,"Level",PlayerInfo[playerid][pLevel]);
  6. INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][pAdmin]);
  7. INI_WriteInt(file,"DonateRank",PlayerInfo[playerid][pDonateRank]);
  8. INI_WriteInt(file,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
  9. INI_WriteInt(file,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
  10. INI_WriteInt(file,"Registered",PlayerInfo[playerid][pReg]);
  11. INI_WriteInt(file,"Sex",PlayerInfo[playerid][pSex]);
  12. INI_WriteInt(file,"Age",PlayerInfo[playerid][pAge]);
  13. INI_WriteInt(file,"Origin",PlayerInfo[playerid][pOrigin]);
  14. INI_WriteInt(file,"CK",PlayerInfo[playerid][pCK]);
  15. INI_WriteInt(file,"Muted",PlayerInfo[playerid][pMuted]);
  16. INI_WriteInt(file,"Respect",PlayerInfo[playerid][pExp]);
  17. INI_WriteInt(file,"Money",PlayerInfo[playerid][pCash]);
  18. INI_WriteInt(file,"Bank",PlayerInfo[playerid][pAccount]);
  19. INI_WriteInt(file,"Crimes",PlayerInfo[playerid][pCrimes]);
  20. INI_WriteInt(file,"Kills",PlayerInfo[playerid][pKills]);
  21. INI_WriteInt(file,"Deaths",PlayerInfo[playerid][pDeaths]);
  22. INI_WriteInt(file,"Arrested",PlayerInfo[playerid][pArrested]);
  23. INI_WriteInt(file,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]);
  24. INI_WriteInt(file,"Phonebook",PlayerInfo[playerid][pPhoneBook]);
  25. INI_WriteInt(file,"Job",PlayerInfo[playerid][pJob]);
  26. INI_WriteInt(file,"Paycheck",PlayerInfo[playerid][pPayCheck]);
  27. INI_WriteInt(file,"HeadValue",PlayerInfo[playerid][pHeadValue]);
  28. INI_WriteInt(file,"Jailed",PlayerInfo[playerid][pJailed]);
  29. INI_WriteInt(file,"JailTime",PlayerInfo[playerid][pJailTime]);
  30. INI_WriteInt(file,"Materials",PlayerInfo[playerid][pMats]);
  31. INI_WriteInt(file,"Drugs",PlayerInfo[playerid][pDrugs]);
  32. INI_WriteInt(file,"Leader",PlayerInfo[playerid][pLeader]);
  33. INI_WriteInt(file,"Member",PlayerInfo[playerid][pMember]);
  34. INI_WriteInt(file,"Rank",PlayerInfo[playerid][pRank]);
  35. INI_WriteInt(file,"Char",PlayerInfo[playerid][pChar]);
  36. INI_WriteInt(file,"ContractTime",PlayerInfo[playerid][pContractTime]);
  37. INI_WriteInt(file,"DetSkill",PlayerInfo[playerid][pDetSkill]);
  38. INI_WriteInt(file,"SexSkill",PlayerInfo[playerid][pSexSkill]);
  39. INI_WriteInt(file,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
  40. INI_WriteInt(file,"LawSkill",PlayerInfo[playerid][pLawSkill]);
  41. INI_WriteInt(file,"MechSkill",PlayerInfo[playerid][pMechSkill]);
  42. INI_WriteInt(file,"JackSkill",PlayerInfo[playerid][pJackSkill]);
  43. INI_WriteInt(file,"CarSkill",PlayerInfo[playerid][pCarSkill]);
  44. INI_WriteInt(file,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
  45. INI_WriteInt(file,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]);
  46. INI_WriteFloat(file,"SHealth%.1f",PlayerInfo[playerid][pSHealth]);
  47. INI_WriteInt(file,"Int",PlayerInfo[playerid][pInt]);
  48. INI_WriteInt(file,"Local",PlayerInfo[playerid][pLocal]);
  49. INI_WriteInt(file,"Team",PlayerInfo[playerid][pTeam]);
  50. INI_WriteInt(file,"Model",PlayerInfo[playerid][pModel]);
  51. INI_WriteInt(file,"PhoneNr",PlayerInfo[playerid][pPnumber]);
  52. INI_WriteInt(file,"Car",PlayerInfo[playerid][pPcarkey]);
  53. INI_WriteInt(file,"Car2",PlayerInfo[playerid][pPcarkey2]);
  54. INI_WriteInt(file,"Car3",PlayerInfo[playerid][pPcarkey3]);
  55. INI_WriteInt(file,"House",PlayerInfo[playerid][pPhousekey]);
  56. INI_WriteInt(file,"Bizz",PlayerInfo[playerid][pPbiskey]);
  57. if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
  58. {
  59. PlayerInfo[playerid][pPos_x] = 1684.9;
  60. PlayerInfo[playerid][pPos_y] = -2244.5;
  61. PlayerInfo[playerid][pPos_z] = 13.5;
  62. }
  63. if(Spectate[playerid] != 255)
  64. {
  65. PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
  66. PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
  67. PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
  68. PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  69. PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  70. }
  71. new Float:x, Float:y, Float:z;
  72. GetPlayerPos(playerid,x,y,z);
  73. PlayerInfo[playerid][pPos_x] = x;
  74. PlayerInfo[playerid][pPos_y] = y;
  75. PlayerInfo[playerid][pPos_z] = z;
  76. INI_WriteFloat(file,"Pos_x%.1f",PlayerInfo[playerid][pPos_x]);
  77. INI_WriteFloat(file,"Pos_y%.1f",PlayerInfo[playerid][pPos_y]);
  78. INI_WriteFloat(file,"Pos_z%.1f",PlayerInfo[playerid][pPos_z]);
  79. INI_WriteInt(file,"CarLic",PlayerInfo[playerid][pCarLic]);
  80. INI_WriteInt(file,"FlyLic",PlayerInfo[playerid][pFlyLic]);
  81. INI_WriteInt(file,"BoatLic",PlayerInfo[playerid][pBoatLic]);
  82. INI_WriteInt(file,"GunLic",PlayerInfo[playerid][pGunLic]);
  83. INI_WriteInt(file,"Gun1",PlayerInfo[playerid][pGun1]);
  84. INI_WriteInt(file,"Gun2",PlayerInfo[playerid][pGun2]);
  85. INI_WriteInt(file,"Gun3",PlayerInfo[playerid][pGun3]);
  86. INI_WriteInt(file,"Gun4",PlayerInfo[playerid][pGun4]);
  87. INI_WriteInt(file,"Ammo1",PlayerInfo[playerid][pAmmo1]);
  88. INI_WriteInt(file,"Ammo2",PlayerInfo[playerid][pAmmo2]);
  89. INI_WriteInt(file,"Ammo3",PlayerInfo[playerid][pAmmo3]);
  90. INI_WriteInt(file,"Ammo4",PlayerInfo[playerid][pAmmo4]);
  91. INI_WriteInt(file,"CarTime",PlayerInfo[playerid][pCarTime]);
  92. INI_WriteInt(file,"PayDay",PlayerInfo[playerid][pPayDay]);
  93. INI_WriteInt(file,"PayDayHad",PlayerInfo[playerid][pPayDayHad]);
  94. INI_WriteInt(file,"Watch",PlayerInfo[playerid][pWatch]);
  95. INI_WriteInt(file,"Crashed",PlayerInfo[playerid][pCrashed]);
  96. INI_WriteInt(file,"Wins",PlayerInfo[playerid][pWins]);
  97. INI_WriteInt(file,"Loses",PlayerInfo[playerid][pLoses]);
  98. INI_WriteInt(file,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
  99. INI_WriteInt(file,"DrugPerk",PlayerInfo[playerid][pDrugPerk]);
  100. INI_WriteInt(file,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
  101. INI_WriteInt(file,"PainPerk",PlayerInfo[playerid][pPainPerk]);
  102. INI_WriteInt(file,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
  103. INI_WriteInt(file,"Mission",PlayerInfo[playerid][pMissionNr]);
  104. INI_WriteInt(file,"Warnings",PlayerInfo[playerid][pWarns]);
  105. INI_WriteInt(file,"VirWorld",PlayerInfo[playerid][pVirWorld]);
  106. if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
  107. INI_WriteInt(file,"Fuel",PlayerInfo[playerid][pFuel]);
  108. INI_WriteInt(file,"InvWeapon",PlayerInfo[playerid][pInvWeapon]);
  109. INI_WriteInt(file,"InvAmmo",PlayerInfo[playerid][pInvAmmo]);
  110. INI_WriteInt(file,"Lighter",PlayerInfo[playerid][pLighter]);
  111. INI_WriteInt(file,"Cigarettes",PlayerInfo[playerid][pCigarettes]);
  112. PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
  113. INI_Close(file);
  114. return 1;
  115. }
Advertisement
Add Comment
Please, Sign In to add comment