Advertisement
Guest User

SA:MP OnPlayerUpdate

a guest
Jul 27th, 2011
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 18.31 KB | None | 0 0
  1. public OnPlayerUpdate(playerid)
  2. {
  3.     TextDrawHideForPlayer(playerid, SPEEDOS[playerid]);
  4.     TextDrawHideForPlayer(playerid, SPEEDOS1[playerid]);
  5.     TextDrawHideForPlayer(playerid, SPEEDOS2[playerid]);
  6.     TextDrawHideForPlayer(playerid, SPEEDOS3[playerid]);
  7.     TextDrawHideForPlayer(playerid, SPEEDOS4[playerid]);
  8.     TextDrawHideForPlayer(playerid, SPEEDOS5[playerid]);
  9.     if(IsPlayerConnected(playerid))
  10.     {
  11.         if(gPlayerLogged[playerid])
  12.         {
  13.             MySQLCheckConnection();
  14.             new query[MAX_STRING];
  15.             format(query, MAX_STRING, "UPDATE players SET ");
  16.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Password", PlayerInfo[playerid][pKey]);
  17.             PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
  18.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "PlayerLevel", PlayerInfo[playerid][pLevel]);
  19.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "AdminLevel", PlayerInfo[playerid][pAdmin]);
  20.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "DonateRank", PlayerInfo[playerid][pDonateRank]);
  21.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "UpgradePoints",PlayerInfo[playerid][gPupgrade]);
  22.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "ConnectedTime",PlayerInfo[playerid][pConnectTime]);
  23.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Registered",PlayerInfo[playerid][pReg]);
  24.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Sex",PlayerInfo[playerid][pSex]);
  25.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Age",PlayerInfo[playerid][pAge]);
  26.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Spawn",PlayerInfo[playerid][pOrigin]);
  27.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CK",PlayerInfo[playerid][pCK]);
  28.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Muted",PlayerInfo[playerid][pMuted]);
  29.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Respect",PlayerInfo[playerid][pExp]);
  30.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Money",PlayerInfo[playerid][pCash]);
  31.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Bank",PlayerInfo[playerid][pAccount]);
  32.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Crimes",PlayerInfo[playerid][pCrimes]);
  33.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Kills",PlayerInfo[playerid][pKills]);
  34.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Deaths",PlayerInfo[playerid][pDeaths]);
  35.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Arrested",PlayerInfo[playerid][pArrested]);
  36.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "WantedDeaths",PlayerInfo[playerid][pWantedDeaths]);
  37.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Phonebook",PlayerInfo[playerid][pPhoneBook]);
  38.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "LottoNr",PlayerInfo[playerid][pLottoNr]);
  39.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Fishes",PlayerInfo[playerid][pFishes]);
  40.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "BiggestFish",PlayerInfo[playerid][pBiggestFish]);
  41.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Job",PlayerInfo[playerid][pJob]);
  42.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Paycheck",PlayerInfo[playerid][pPayCheck]);
  43.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "HeadValue",PlayerInfo[playerid][pHeadValue]);
  44.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Jailed",PlayerInfo[playerid][pJailed]);
  45.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "JailTime",PlayerInfo[playerid][pJailTime]);
  46.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Materials",PlayerInfo[playerid][pMats]);
  47.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Drugs",PlayerInfo[playerid][pDrugs]);
  48.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Leader",PlayerInfo[playerid][pLeader]);
  49.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Member",PlayerInfo[playerid][pMember]);
  50.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "FMember",PlayerInfo[playerid][pFMember]);
  51.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Rank",PlayerInfo[playerid][pRank]);
  52.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Char",PlayerInfo[playerid][pChar]);
  53.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "ContractTime",PlayerInfo[playerid][pContractTime]);
  54.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "DetSkill",PlayerInfo[playerid][pDetSkill]);
  55.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "SexSkill",PlayerInfo[playerid][pSexSkill]);
  56.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "BoxSkill",PlayerInfo[playerid][pBoxSkill]);
  57.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "LawSkill",PlayerInfo[playerid][pLawSkill]);
  58.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "MechSkill",PlayerInfo[playerid][pMechSkill]);
  59.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "JackSkill",PlayerInfo[playerid][pJackSkill]);
  60.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CarSkill",PlayerInfo[playerid][pCarSkill]);
  61.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "NewsSkill",PlayerInfo[playerid][pNewsSkill]);
  62.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "DrugsSkill",PlayerInfo[playerid][pDrugsSkill]);
  63.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CookSkill",PlayerInfo[playerid][pCookSkill]);
  64.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "FishSkill",PlayerInfo[playerid][pFishSkill]);
  65.             MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "pSHealth",PlayerInfo[playerid][pSHealth]);
  66.             GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
  67.             MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "pHealth",PlayerInfo[playerid][pHealth]);
  68.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Int",PlayerInfo[playerid][pInt]);
  69.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Local",PlayerInfo[playerid][pLocal]);
  70.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Team",PlayerInfo[playerid][pTeam]);
  71.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Model",PlayerInfo[playerid][pModel]);
  72.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "PhoneNr",PlayerInfo[playerid][pPnumber]);
  73.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "House",PlayerInfo[playerid][pPhousekey]);
  74.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Bizz",PlayerInfo[playerid][pPbiskey]);
  75.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "SpawnChange",SpawnChange[playerid]);
  76.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "WantedLevel",WantedLevel[playerid]);
  77.             //MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CarKey1",PlayerInfo[playerid][pPcarkey]);
  78.             //MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CarKey2",PlayerInfo[playerid][pPcarkey2]);
  79.             //MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CarKey3",PlayerInfo[playerid][pPcarkey3]);
  80.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "InvMask",PlayerInfo[playerid][pInvMask]);
  81.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "InvWeapon",PlayerInfo[playerid][pInvWeapon]);
  82.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "InvAmmo",PlayerInfo[playerid][pInvAmmo]);
  83.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement1",PlayerInfo[playerid][pAchievement1]);
  84.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement3",PlayerInfo[playerid][pAchievement3]);
  85.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement2",PlayerInfo[playerid][pAchievement2]);
  86.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement4",PlayerInfo[playerid][pAchievement4]);
  87.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement5",PlayerInfo[playerid][pAchievement5]);
  88.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement6",PlayerInfo[playerid][pAchievement6]);
  89.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement7",PlayerInfo[playerid][pAchievement7]);
  90.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement8",PlayerInfo[playerid][pAchievement8]);
  91.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Achievement9",PlayerInfo[playerid][pAchievement9]);
  92.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Points",PlayerInfo[playerid][pGPPoints]);
  93.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Car",gPlayerHasCar[playerid]);
  94.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Car1",gPlayerHasCar1[playerid]);
  95.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Boost",PlayerInfo[playerid][pRPBoost]);
  96.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "BoxingSkill",PlayerInfo[playerid][pBoxingSkill]);
  97.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "KarateSkill",PlayerInfo[playerid][pKarateSkill]);
  98.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "BoxFightStyle",PlayerInfo[playerid][pBoxFightStyle]);
  99.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Ghiozdan",PlayerInfo[playerid][pBag]);
  100.             if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
  101.             {
  102.                             PlayerInfo[playerid][pPos_x] = 1684.9;
  103.                             PlayerInfo[playerid][pPos_y] = -2244.5;
  104.                             PlayerInfo[playerid][pPos_z] = 13.5;
  105.             }
  106.             if(Spectate[playerid] != 255)
  107.             {
  108.                             PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
  109.                             PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
  110.                             PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
  111.                             PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  112.                             PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  113.             }
  114.             MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "Pos_x",PlayerInfo[playerid][pPos_x]);
  115.             MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "Pos_y",PlayerInfo[playerid][pPos_y]);
  116.             MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "Pos_z",PlayerInfo[playerid][pPos_z]);
  117.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Tow",PlayerInfo[playerid][pTow]);
  118.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CarLic",PlayerInfo[playerid][pCarLic]);
  119.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "BoatLic",PlayerInfo[playerid][pBoatLic]);
  120.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "FishLic",PlayerInfo[playerid][pFishLic]);
  121.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "GunLic",PlayerInfo[playerid][pGunLic]);
  122.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "MatsLic",PlayerInfo[playerid][pMatsLic]);
  123.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Passport",PlayerInfo[playerid][pPassport]);
  124.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Gun1",PlayerInfo[playerid][pGun1]);
  125.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Gun2",PlayerInfo[playerid][pGun2]);
  126.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Gun3",PlayerInfo[playerid][pGun3]);
  127.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Gun4",PlayerInfo[playerid][pGun4]);
  128.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Ammo1",PlayerInfo[playerid][pAmmo1]);
  129.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Ammo2",PlayerInfo[playerid][pAmmo2]);
  130.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Ammo3",PlayerInfo[playerid][pAmmo3]);
  131.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Ammo4",PlayerInfo[playerid][pAmmo4]);
  132.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CarTime",PlayerInfo[playerid][pCarTime]);
  133.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "PayDay",PlayerInfo[playerid][pPayDay]);
  134.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "PayDayHad",PlayerInfo[playerid][pPayDayHad]);
  135.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "PayDayHad2",PlayerInfo[playerid][pPayDayHad2]);
  136.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "CDPlayer",PlayerInfo[playerid][pCDPlayer]);
  137.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Wins",PlayerInfo[playerid][pWins]);
  138.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Loses",PlayerInfo[playerid][pLoses]);
  139.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
  140.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "DrugPerk",PlayerInfo[playerid][pDrugPerk]);
  141.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "MiserPerk",PlayerInfo[playerid][pMiserPerk]);
  142.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "PainPerk",PlayerInfo[playerid][pPainPerk]);
  143.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "TraderPerk",PlayerInfo[playerid][pTraderPerk]);
  144.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Tutorial",PlayerInfo[playerid][pTut]);
  145.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Mission",PlayerInfo[playerid][pMissionNr]);
  146.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Warnings",PlayerInfo[playerid][pWarns]);
  147.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "FWarnings",PlayerInfo[playerid][pFWarns]);
  148.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Adjustable",PlayerInfo[playerid][pAdjustable]);
  149.             if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
  150.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Fuel",PlayerInfo[playerid][pFuel]);
  151.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Married",PlayerInfo[playerid][pMarried]);
  152.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "MarriedTo",PlayerInfo[playerid][pMarriedTo]);
  153.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "Epi",PlayerInfo[playerid][pEpi]);
  154.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "EpiPoints",PlayerInfo[playerid][pEpiPoints]);
  155.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "EpiON",PlayerInfo[playerid][pEpiON]);
  156.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "AdoptingAttempt",AdoptingAttempt[playerid]);
  157.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "AdoptedPerson",AdoptedPerson[playerid]);
  158.             MySQLUpdatePlayerStr(query, PlayerInfo[playerid][pSQLID], "LifeInsurance",LifeInsurance[playerid]);
  159.             }
  160.             }
  161.             /*new file[256], name[24];
  162.             GetPlayerName(playerid, name, 24);
  163.             format(file,sizeof(file),"Cars/%s.ini",name);
  164.             if(dini_Exists(file))
  165.             {
  166.                 dini_IntSet(file, "Model", GetVehicleModel(Vehicle[playerid]));
  167.                 dini_IntSet(file, "Price", VehicleInfo[playerid][Price]);
  168.                 dini_FloatSet(file, "X", VehicleInfo[playerid][CarX]);
  169.                 dini_FloatSet(file, "Y", VehicleInfo[playerid][CarY]);
  170.                 dini_FloatSet(file, "Z", VehicleInfo[playerid][CarZ]);
  171.                 dini_FloatSet(file, "Rot", VehicleInfo[playerid][CarRot]);
  172.                 dini_IntSet(file, "Locked", VehicleInfo[playerid][Locked]);
  173.                 dini_Set(file, "Plate", VehPlate[Vehicle[playerid]]);
  174.                 dini_IntSet(file, "mod1", VehicleInfo[playerid][mod1]);
  175.                 dini_IntSet(file, "mod2", VehicleInfo[playerid][mod2]);
  176.                 dini_IntSet(file, "mod3", VehicleInfo[playerid][mod3]);
  177.                 dini_IntSet(file, "mod4", VehicleInfo[playerid][mod4]);
  178.                 dini_IntSet(file, "mod5", VehicleInfo[playerid][mod5]);
  179.                 dini_IntSet(file, "mod6", VehicleInfo[playerid][mod6]);
  180.                 dini_IntSet(file, "mod7", VehicleInfo[playerid][mod7]);
  181.                 dini_IntSet(file, "mod8", VehicleInfo[playerid][mod8]);
  182.                 dini_IntSet(file, "mod9", VehicleInfo[playerid][mod9]);
  183.                 dini_IntSet(file, "mod10", VehicleInfo[playerid][mod10]);
  184.                 dini_IntSet(file, "mod11", VehicleInfo[playerid][mod11]);
  185.                 dini_IntSet(file, "mod12", VehicleInfo[playerid][mod12]);
  186.                 dini_IntSet(file, "mod13", VehicleInfo[playerid][mod13]);
  187.                 dini_IntSet(file, "mod14", VehicleInfo[playerid][mod14]);
  188.                 dini_IntSet(file, "mod15", VehicleInfo[playerid][mod15]);
  189.                 dini_IntSet(file, "mod16", VehicleInfo[playerid][mod16]);
  190.                 dini_IntSet(file, "mod17", VehicleInfo[playerid][mod17]);
  191.                 dini_IntSet(file, "paintjob", VehicleInfo[playerid][paintjob]);
  192.                 dini_IntSet(file, "color1", VehicleInfo[playerid][colora]);
  193.                 dini_IntSet(file, "color2", VehicleInfo[playerid][colorb]);
  194.                 dini_IntSet(file, "Towed", VehicleInfo[playerid][towed]);
  195.                 SaveTrunk(playerid);
  196.                 if(gPlayerHasCar1[playerid] == 1)
  197.                 {
  198.                     dini_IntSet(file, "Model1", GetVehicleModel(Vehicle1[playerid]));
  199.                     dini_IntSet(file, "Price1", VehicleInfo1[playerid][Price1]);
  200.                     dini_FloatSet(file, "X1", VehicleInfo1[playerid][CarX1]);
  201.                     dini_FloatSet(file, "Y1", VehicleInfo1[playerid][CarY1]);
  202.                     dini_FloatSet(file, "Z1", VehicleInfo1[playerid][CarZ1]);
  203.                     dini_FloatSet(file, "Rot1", VehicleInfo1[playerid][CarRot1]);
  204.                     dini_IntSet(file, "Locked1", VehicleInfo1[playerid][Locked1]);
  205.                     dini_Set(file, "Plate1", VehPlate[Vehicle1[playerid]]);
  206.                     dini_IntSet(file, "mod11", VehicleInfo1[playerid][mod11]);
  207.                     dini_IntSet(file, "mod21", VehicleInfo1[playerid][mod21]);
  208.                     dini_IntSet(file, "mod31", VehicleInfo1[playerid][mod31]);
  209.                     dini_IntSet(file, "mod41", VehicleInfo1[playerid][mod41]);
  210.                     dini_IntSet(file, "mod51", VehicleInfo1[playerid][mod51]);
  211.                     dini_IntSet(file, "mod61", VehicleInfo1[playerid][mod61]);
  212.                     dini_IntSet(file, "mod71", VehicleInfo1[playerid][mod71]);
  213.                     dini_IntSet(file, "mod81", VehicleInfo1[playerid][mod81]);
  214.                     dini_IntSet(file, "mod91", VehicleInfo1[playerid][mod91]);
  215.                     dini_IntSet(file, "mod101", VehicleInfo1[playerid][mod101]);
  216.                     dini_IntSet(file, "mod111", VehicleInfo1[playerid][mod111]);
  217.                     dini_IntSet(file, "mod121", VehicleInfo1[playerid][mod121]);
  218.                     dini_IntSet(file, "mod131", VehicleInfo1[playerid][mod131]);
  219.                     dini_IntSet(file, "mod141", VehicleInfo1[playerid][mod141]);
  220.                     dini_IntSet(file, "mod151", VehicleInfo1[playerid][mod151]);
  221.                     dini_IntSet(file, "mod161", VehicleInfo1[playerid][mod161]);
  222.                     dini_IntSet(file, "mod171", VehicleInfo1[playerid][mod171]);
  223.                     dini_IntSet(file, "paintjob1", VehicleInfo1[playerid][paintjob1]);
  224.                     dini_IntSet(file, "color11", VehicleInfo1[playerid][colora1]);
  225.                     dini_IntSet(file, "color21", VehicleInfo1[playerid][colorb1]);
  226.                     dini_IntSet(file, "Towed1", VehicleInfo1[playerid][towed1]);
  227.                     DestroyVehicle(Vehicle1[playerid]);
  228.                     SaveTrunk(playerid);
  229.                 }
  230.             }*/
  231.             return 1;
  232. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement