[Pomoc]Paintjob

Započeo xLanmi, Februar 10, 2016, 18:51:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta koju koristim:Moj edit Up-a  :D
Detaljno objasnjenje problema:E ovako imam jedan malo veci problem
Tuning mi se sacuva kao sto je i pre ali paintjob se ne sacuva..
[pawn]
forward SaveVehicleComponents(car,i);
public SaveVehicleComponents(car,i)
{
   new slot[14];
   slot[0] = GetVehicleComponentInSlot(car, 0);
   slot[1] = GetVehicleComponentInSlot(car, 1);
   slot[2] = GetVehicleComponentInSlot(car, 2);
   slot[3] = GetVehicleComponentInSlot(car, 3);
   slot[4] = GetVehicleComponentInSlot(car, 4);
   slot[5] = GetVehicleComponentInSlot(car, 5);
   slot[6] = GetVehicleComponentInSlot(car, 6);
   slot[7] = GetVehicleComponentInSlot(car, 7);
   slot[8] = GetVehicleComponentInSlot(car, 8);
   slot[9] = GetVehicleComponentInSlot(car, 9);
   slot[10] = GetVehicleComponentInSlot(car, 10);
   slot[11] = GetVehicleComponentInSlot(car, 11);
   slot[12] = GetVehicleComponentInSlot(car, 12);
   slot[13] = GetVehicleComponentInSlot(car, 13);
   if(slot[0] != 0)
   {
      VoziloInfo[vComponent0] = slot[0];
   }
   if(slot[1] != 0)
   {
      VoziloInfo[vComponent1] = slot[1];
   }
   if(slot[2] != 0)
   {
      VoziloInfo[vComponent2] = slot[2];
   }
   if(slot[3] != 0)
   {
      VoziloInfo[vComponent3] = slot[3];
   }
   if(slot[4] != 0)
   {
      VoziloInfo[vComponent4] = slot[4];
   }
   if(slot[5] != 0)
   {
      VoziloInfo[vComponent5] = slot[5];
   }
   if(slot[6] != 0)
   {
      VoziloInfo[vComponent6] = slot[6];
   }
   if(slot[7] != 0)
   {
      VoziloInfo[vComponent7] = slot[7];
   }
   if(slot[8] != 0)
   {
      VoziloInfo[vComponent8] = slot[8];
   }
   if(slot[9] != 0)
   {
      VoziloInfo[vComponent9] = slot[9];
   }
   if(slot[10] != 0)
   {
      VoziloInfo[vComponent10] = slot[10];
   }
   if(slot[11] != 0)
   {
      VoziloInfo[vComponent11] = slot[11];
   }
   if(slot[12] != 0)
   {
      VoziloInfo[vComponent12] = slot[12];
   }
   if(slot[13] != 0)
   {
      VoziloInfo[vComponent13] = slot[13];
   }
   SacuvajVozilo(i);
}
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
    if(enterexit == 0)
    {
        SendClientMessage(playerid, -1, ""NARANDZASTA"Vozilo |"BELA" Ukoliko zelite sa sacuvate vas tuning korisite "NARANDZASTA"/v"BELA" pa pod "ZUTA"'Sacuvaj tuning' ");
       // new car = GetPlayerVehicleID(playerid);
       // SaveVehicleComponents(car);
    }
    if(enterexit == 1)
    {
        SendClientMessage(playerid, -1, ""NARANDZASTA"[DOBRODOSLI]"BELA" Nalazite se u tuning garazi,mozete natunirati vase vozilo!");
    }
    return 1;
}

forward ClearVehicleComponents(i);
public ClearVehicleComponents(i)
{
   VoziloInfo[vComponent0] = 0;
   VoziloInfo[vComponent1] = 0;
   VoziloInfo[vComponent2] = 0;
   VoziloInfo[vComponent3] = 0;
   VoziloInfo[vComponent4] = 0;
   VoziloInfo[vComponent5] = 0;
   VoziloInfo[vComponent6] = 0;
   VoziloInfo[vComponent7] = 0;
   VoziloInfo[vComponent8] = 0;
   VoziloInfo[vComponent9] = 0;
   VoziloInfo[vComponent10] = 0;
   VoziloInfo[vComponent11] = 0;
   VoziloInfo[vComponent12] = 0;
   VoziloInfo[vComponent13] = 0;
   SacuvajVozilo(i);
}

forward SetVehicleModifications(i,car);
public SetVehicleModifications(i,car)
{
   if(VoziloInfo[vComponent0] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent0]);
   }
   if(VoziloInfo[vComponent1] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent1]);
   }
   if(VoziloInfo[vComponent2] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent2]);
   }
   if(VoziloInfo[vComponent3] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent3]);
   }
   if(VoziloInfo[vComponent4] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent4]);
   }
   if(VoziloInfo[vComponent5] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent5]);
   }
   if(VoziloInfo[vComponent6] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent6]);
   }
   if(VoziloInfo[vComponent7] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent7]);
   }
   if(VoziloInfo[vComponent8] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent8]);
   }
   if(VoziloInfo[vComponent9] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent9]);
   }
   if(VoziloInfo[vComponent10] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent10]);
   }
   if(VoziloInfo[vComponent11] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent11]);
   }
   if(VoziloInfo[vComponent12] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent12]);
   }
   if(VoziloInfo[vComponent13] >= 0)
   {
      AddVehicleComponent(car, VoziloInfo[vComponent13]);
   }
}[/pawn]
Tuning sacuva ali paintjob ne
Slika kod/nesto:Ne ako treba dacu nesto :)

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

preko ovog dobijes paintjob ID i sacuvas: https://wiki.sa-mp.com/wiki/OnVehiclePaintjob

My Bike KTM 450 SXF 2008