SHARE
TWEET

Untitled

a guest Jul 16th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerUpdate(playerid)
  2. {
  3.     if(IsPlayerConnected(playerid))
  4.     {
  5.         if(gPlayerLogged[playerid])
  6.         {
  7.             new string3[32];
  8.             new playername3[MAX_PLAYER_NAME];
  9.             GetPlayerName(playerid, playername3, sizeof(playername3));
  10.             format(string3, sizeof(string3), "Smetke/%s.ini", playername3);
  11.             new File: hFile = fopen(string3, io_write);
  12.             if (hFile)
  13.             {
  14.                 new var[32];
  15.                 format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  16.                 format(var, 64, "Reputacija=%d\n",PlayerInfo[playerid][pReputacija]);fwrite(hFile, var);
  17.                 format(var, 64, "OdgovoreniPrasnja=%d\n",PlayerInfo[playerid][pOdgovoreniPrasanja]);fwrite(hFile, var);
  18.                 format(var, 64, "Avtomobil+=%d\n",PlayerInfo[playerid][pAvtomobil]);fwrite(hFile, var);
  19.                 format(var, 32, "Pasos=%d\n",PlayerInfo[playerid][pPasos]);fwrite(hFile, var);
  20.                 format(var, 32, "Kod=%d\n",PlayerInfo[playerid][pKod]);fwrite(hFile, var);
  21.                 format(var, 64, "Moto+=%d\n",PlayerInfo[playerid][pMoto]);fwrite(hFile, var);
  22.                 PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
  23.                 format(var, 32, "Email=%s\n",PlayerInfo[playerid][pEmail]);fwrite(hFile, var);
  24.                 format(var, 32, "Biro=%s\n", PlayerInfo[playerid][pBiro]);fwrite(hFile, var);
  25.                 format(var, 32, "PClen=%d\n",PlayerInfo[playerid][pPClen]);fwrite(hFile, var);
  26.                 format(var, 32, "PRank=%d\n",PlayerInfo[playerid][pPRank]);fwrite(hFile, var);
  27.                 format(var, 32, "PLider=%d\n",PlayerInfo[playerid][pPLider]);fwrite(hFile, var);
  28.                 format(var, 32, "Bzona=%d\n",PlayerInfo[playerid][pBzona]);fwrite(hFile, var);//pCTT
  29.                 format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
  30.                 format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
  31.                 format(var, 32, "GameMasterLevel=%d\n",PlayerInfo[playerid][pGameMaster]);fwrite(hFile, var);
  32.                 format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
  33.                 format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
  34.                 format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
  35.                 format(var, 64, "Kapa=%d\n",PlayerInfo[playerid][pKapa]);fwrite(hFile, var);
  36.                 format(var, 64, "Naocale=%d\n",PlayerInfo[playerid][pNaocale]);fwrite(hFile, var);
  37.                 format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
  38.                 format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
  39.                 format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
  40.                 format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
  41.                 format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
  42.                 format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
  43.                 format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
  44.                 format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  45.                 format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
  46.                 format(var, 32, "Lekovi=%d\n",PlayerInfo[playerid][pLekovi]);fwrite(hFile, var);
  47.                 format(var, 32, "Struja=%d\n",PlayerInfo[playerid][pStruja]);fwrite(hFile, var);
  48.                 format(var, 32, "Voda=%d\n",PlayerInfo[playerid][pVoda]);fwrite(hFile, var);
  49.                 format(var, 32, "Komunalno=%d\n",PlayerInfo[playerid][pKomunalno]);fwrite(hFile, var);
  50.                 format(var, 32, "Televizor=%d\n",PlayerInfo[playerid][pTelevizor]);fwrite(hFile, var);
  51.                 format(var, 32, "WL=%d\n",PlayerInfo[playerid][pWL]);fwrite(hFile, var);
  52.                 format(var, 64, "AdministrativenPw=%d\n",PlayerInfo[playerid][pAdministrativenPw]);fwrite(hFile, var);
  53.                 format(var, 32, "Bankomat=%d\n",PlayerInfo[playerid][pBankomatA]);fwrite(hFile, var);
  54.                 format(var, 32, "Pincard=%d\n",PlayerInfo[playerid][pPincard]);fwrite(hFile, var);
  55.                 format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
  56.                 format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
  57.                 format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
  58.                 format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
  59.                 format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
  60.                 format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
  61.                 format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
  62.                 format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
  63.                 format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
  64.                 format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
  65.                 format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
  66.                 format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
  67.                 format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
  68.                 format(var, 32, "Moraa=%d\n",PlayerInfo[playerid][pMoraa]);fwrite(hFile, var);
  69.                 format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
  70.                 format(var, 32, "Zabrana=%d\n",PlayerInfo[playerid][pZabrana]);fwrite(hFile, var);
  71.                 format(var, 32, "LGodina=%d\n",PlayerInfo[playerid][pLGodina]);fwrite(hFile, var);
  72.                 format(var, 32, "LMesec=%d\n",PlayerInfo[playerid][pLMesec]);fwrite(hFile, var);
  73.                 format(var, 32, "LDen=%d\n",PlayerInfo[playerid][pLDen]);fwrite(hFile, var);
  74.                 format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
  75.                 format(var, 32, "SkladM=%d\n",PlayerInfo[playerid][pSkladM]);fwrite(hFile, var);
  76.                 format(var, 32, "SkladD=%d\n",PlayerInfo[playerid][pSkladD]);fwrite(hFile, var);
  77.                 format(var, 32, "SkladB=%d\n",PlayerInfo[playerid][pSkladB]);fwrite(hFile, var);
  78.                 format(var, 32, "Bombi=%d\n",PlayerInfo[playerid][pBombi]);fwrite(hFile, var);
  79.                 format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
  80.                 format(var, 32, "Seme=%d\n",PlayerInfo[playerid][pSeme]);fwrite(hFile, var);
  81.                 format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
  82.                 format(var, 32, "BazaKluc=%d\n",PlayerInfo[playerid][pBazaKluc]);fwrite(hFile, var);
  83.                 format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
  84.                 format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
  85.                 format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
  86.                 format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
  87.                 format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
  88.                 format(var, 32, "RabotnaKniska=%d\n",PlayerInfo[playerid][pRabotnaKniska]);fwrite(hFile, var);
  89.                 format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
  90.                 format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
  91.                 format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
  92.                 format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
  93.                 format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
  94.                 format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
  95.                 format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
  96.                 format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
  97.                 format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
  98.                 format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
  99.                 format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
  100.                 format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
  101.                 format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
  102.                 GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
  103.                 format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
  104.                 format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
  105.                 format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
  106.                 format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
  107.                 format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
  108.                 format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
  109.                 format(var, 32, "OnDutyH=%d\n",PlayerInfo[playerid][pOnDutyH]);fwrite(hFile, var);
  110.                 format(var, 32, "OnDutyM=%d\n",PlayerInfo[playerid][pOnDutyM]);fwrite(hFile, var);
  111.                 format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
  112.                 format(var, 32, "Imanovbroj=%d\n",PlayerInfo[playerid][pImanovbroj]);fwrite(hFile, var);
  113.                 format(var, 32, "Rent=%s\n", PlayerInfo[playerid][pRent]);fwrite(hFile, var);
  114.                 format(var, 32, "Kukja=%d\n",PlayerInfo[playerid][pPosedovanjeKuce]);fwrite(hFile, var);
  115.                 format(var, 32, "Stan=%d\n",PlayerInfo[playerid][pPosedovanjeStana]);fwrite(hFile, var);
  116.                 format(var, 32, "Vikendica=%d\n",PlayerInfo[playerid][pPosedovanjeVikendice]);fwrite(hFile, var);
  117.                 format(var, 32, "Kancelarija=%d\n",PlayerInfo[playerid][pPosedovanjeKancelarija]);fwrite(hFile, var);
  118.                 format(var, 32, "Garaza=%d\n",PlayerInfo[playerid][pPosedovanjeGaraza]);fwrite(hFile, var);
  119.                 format(var, 32, "Biznis=%d\n",PlayerInfo[playerid][pPosedovanjeFirme]);fwrite(hFile, var);
  120.                 format(var, 32, "Spawn=%d\n", PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
  121.                 format(var, 32, "WantedLevel=%d\n", PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
  122.                 format(var, 32, "Padiploma=%d\n", PlayerInfo[playerid][pPadiploma]);fwrite(hFile, var);
  123.                 format(var, 32, "Vozacka=%d\n",PlayerInfo[playerid][pVozacka]);fwrite(hFile, var);
  124.                 format(var, 32, "Radar=%d\n",PlayerInfo[playerid][pRadar]);fwrite(hFile, var);
  125.                 if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
  126.                 {
  127.                     PlayerInfo[playerid][pPos_x] = 1684.9;
  128.                     PlayerInfo[playerid][pPos_y] = -2244.5;
  129.                     PlayerInfo[playerid][pPos_z] = 13.5;
  130.                 }
  131.                 if(Spectate[playerid] != 255)
  132.                 {
  133.                     PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
  134.                     PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
  135.                     PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
  136.                     PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  137.                     PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  138.                 }
  139.                 format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
  140.                 format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
  141.                 format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
  142.                 format(var, 64, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
  143.                 format(var, 64, "Car2=%d\n",PlayerInfo[playerid][pPcarkey2]);fwrite(hFile, var);
  144.                 format(var, 32, "Moto=%d\n",PlayerInfo[playerid][pPmotokey]);fwrite(hFile, var);
  145.                 format(var, 32, "Letalo=%d\n",PlayerInfo[playerid][pPletalokey]);fwrite(hFile, var);
  146.                 format(var, 32, "Brod=%d\n",PlayerInfo[playerid][pPbrodkey]);fwrite(hFile, var);
  147.                 format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
  148.                 format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
  149.                 format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
  150.                 format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
  151.                 format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
  152.                 format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
  153.                 format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
  154.                 format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
  155.                 format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
  156.                 format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
  157.                 format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
  158.                 format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
  159.                 format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
  160.                 format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
  161.                 format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
  162.                 format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
  163.                 format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
  164.                 format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
  165.                 format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
  166.                 format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
  167.                 format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
  168.                 format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
  169.                 format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
  170.                 format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
  171.                 format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
  172.                 format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  173.                 format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
  174.                 if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
  175.                 format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
  176.                 format(var, 32, "Ban=%d\n",PlayerInfo[playerid][pBan]);fwrite(hFile, var);
  177.                 format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
  178.                 format(var, 32, "GoldBodovi=%d\n",PlayerInfo[playerid][pDonatorPoeni]);fwrite(hFile, var);
  179.                 format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
  180.                 format(var, 32, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var);
  181.                 format(var, 32, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
  182.                 format(var, 64, "Fastfood=%d\n",PlayerInfo[playerid][pFastfood]);fwrite(hFile, var);
  183.                 format(var, 32, "Firma=%d\n",PlayerInfo[playerid][pPosedovanjeFirme2]);fwrite(hFile, var);
  184.                 fclose(hFile);
  185.             }
  186.         }
  187.     }
  188.     return 1;
  189. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top