[Pomoc] Save tune

Započeo ProGlide26, Maj 11, 2014, 10:50:23 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

SaveTuning(playerid); - koja je već funkcija dodaješ u /v park.
Prouči malo.

Nemogu da nadjem funkciju /v park u modu :D

A daa ti komanda nije samo /v ?
pa kasnije /v park ako me razumiš šta ti oču reć..

Moja komanda za parkiranje vozila je /v park ali neznam gde treba da stavim SaveTuning(playerid, ...) kao ste vec rekli .... ?

Ljudi, moze neko reci gde treba da ubacim to SaveTune(playerid, 0);
kazete pod /v park ali nemogu da nadjem tu funkciju ....


Evo:

   if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Morate se prvo prijaviti ! ");
               return 1;
           }
           new x_nr[256];
           x_nr = strtok(cmdtext, idx);
         if(!strlen(x_nr))
           {
               ShowPlayerDialog(playerid,213,DIALOG_STYLE_MSGBOX, "{0F629F}Vozilo Pomoc","{0F629F}/v park - {FFFFFF}Parkirati vozilo\n{0F629F}/v lock (1-3) - {FFFFFF}Zakljucati-Otkljucati vozilo\n{0F629F}/v sell - {FFFFFF}Prodati vozilo\n{0F629F}/v sellto - {FFFFFF}Prodati vozilo igracu\n{0F629F}/v color - {FFFFFF}Ofarbati vozilo\n{0F629F}/v list - {FFFFFF}Videti listu vozila\n{0F629F}/v find(1-3) - {FFFFFF}Pronaci vozilo","Ok","");
               return 1;
           }
          if(strcmp(x_nr,"sell",true) == 0)
           {
                  if(PlayerToPoint(350.0,playerid, 1643.6754,-1054.5780,23.8984))
                  {
                if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3])
                   {
                       GetPlayerName(playerid, sendername, sizeof(sendername));
                       new ownvehkey;
                       if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; }
                       else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; }
                       else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { ownvehkey = PlayerInfo[playerid][pPcarkey3]; }
                       else { return 1; }
                       if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0)
                       {
                           new carsellprice = CarInfo[ownvehkey][cValue] / 4;
                           new Float:x,Float:y,Float:z;
                           new Float:a;
                           CarInfo[ownvehkey][cOwned] = 0;
                           strmid(CarInfo[ownvehkey][cOwner], "Dealership", 0, strlen("Dealership"), 999);
                           GivePlayerMoney(playerid,carsellprice);
                           PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                           format(string, sizeof(string), "~w~Prodali ste auto za: ~n~~g~$%d", carsellprice);
                           GameTextForPlayer(playerid, string, 10000, 3);
                           GetVehiclePos(ownvehkey, x, y, z);
                           GetVehicleZAngle(ownvehkey, a);
                           CarInfo[ownvehkey][cLocationx] = x;
                           CarInfo[ownvehkey][cLocationy] = y;
                           CarInfo[ownvehkey][cLocationz] = z;
                           CarInfo[ownvehkey][cAngle] = a;

// -------------------  gasi vozilo i otkljucava ga
                     gEngine[playerid] = 0;
                     engineOn[GetPlayerVehicleID(playerid)] = 0;
                     CarInfo[ownvehkey][cLock] = 0;
// -------------------
                           if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = 999; }
                           else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { PlayerInfo[playerid][pPcarkey2] = 999; }
                           else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { PlayerInfo[playerid][pPcarkey3] = 999; }
                           RemovePlayerFromVehicle(playerid);
                           TogglePlayerControllable(playerid, 1);
                          
                           if(CarInfo[ownvehkey][cOwned]==0)
          {
          GetVehiclePos(ownvehkey, x,y,z);
           format(PropertyString,sizeof(PropertyString),"{F81414}Auto na prodaju\n Model: %s \n Cena: $%d \n{00C0FF} /v buy da kupis!{FFFFFF}",CarInfo[ownvehkey][cDescription],CarInfo[ownvehkey][cValue]);
           VehicleLabel[ownvehkey] = Create3DTextLabel(PropertyString, 0xFF0000CC, x, y, z, 20, 0, 1);
           Attach3DTextLabelToVehicle(VehicleLabel[ownvehkey],ownvehkey,0,0,0);
      }
                           if(PlayerInfo[playerid][pLocal] == ownvehkey)
                           {
                               SetPlayerInterior(playerid,0);
                               SetPlayerPos(playerid,CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]);
                               PlayerInfo[playerid][pInt] = 0;
                           }

                           OnPlayerUpdateCustom(playerid);
                           DestroyVehicle(ownvehkey);
                     CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],60000);
                           return 1;
                       }
                   }
                   else
                   {
                       SendClientMessage(playerid, COLOR_GREY, "  Morate sesti u auto da biste ga prodali! ");
                       return 1;
                   }
               }
               else
               {
                   SendClientMessage(playerid, COLOR_GREY, "Nisi kod prodavnice vozila");
                   return 1;
               }
           }
           else if(strcmp(x_nr,"sellto",true) == 0)
           {
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3])
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                new ownvehkey;
                   if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; }
                   else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; }
                   else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { ownvehkey = PlayerInfo[playerid][pPcarkey3]; }
                 else { return 1; }
                if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0)
                {
                  tmp = strtok(cmdtext, idx);
                  if(!strlen(tmp))
                  {
                      SendClientMessage(playerid, COLOR_WHITE, "Podsetnik: /v sellto [ID Igraca/Dio Imena] [price]");
                      return 1;
                  }
                  giveplayerid = ReturnUser(tmp);
                  if(IsPlayerConnected(giveplayerid))
                  {
                     if(giveplayerid != INVALID_PLAYER_ID)
                     {
                         if(ProxDetectorS(8.0, playerid, giveplayerid))
                            {
                            if(PlayerInfo[giveplayerid][pPcarkey] == 999)
                            {
                                 tmp = strtok(cmdtext, idx);
                                 if(!strlen(tmp))
                                 {
                                     SendClientMessage(playerid, COLOR_WHITE, "Podsetnik: /v sellto [ID Igraca/Dio Imena] [price]");
                                     return 1;
                                 }
                                 new newcar = GetPlayerVehicleID(playerid);
                                 new price;
                                 price = strval(tmp);
                                 if(price < 1 || price > 1500000)
                                 {
                                     SendClientMessage(playerid, COLOR_GREY, "  Cena ne moze biti manja od 1 ni veca od 1500000. ");
                                     return 1;
                                 }
                                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                                  format(string, sizeof(string), "* Ponudili ste vas auto %s-u za $%d .", giveplayer, price);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* Vlasnik auta %s vam je ponudio auto/motor za $%d (kucajte /accept ownablecar).", playername, price);
                                SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "Model: %s | Cena vozila na /v buy je $%d",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
                                SendClientMessage(giveplayerid, COLOR_BLUE, string);
                                OwnableCarOffer[giveplayerid] = playerid;
                                OwnableCarID[giveplayerid] = ownvehkey;
                                OwnableCarPrice[giveplayerid] = price;
                                return 1;
                             }
                             else if(PlayerInfo[giveplayerid][pPcarkey2] == 999)
                             {
                                 tmp = strtok(cmdtext, idx);
                                 if(!strlen(tmp))
                                 {
                                     SendClientMessage(playerid, COLOR_WHITE, "Podsetnik: /v sellto [ID Igraca/Dio Imena] [price]");
                                     return 1;
                                 }
                                 new newcar = GetPlayerVehicleID(playerid);
                                 new price;
                                 price = strval(tmp);
                                 if(price < 1 || price > 1500000)
                                 {
                                     SendClientMessage(playerid, COLOR_GREY, "  Cena ne moze biti manja od 1 ni veca od 1500000. ");
                                     return 1;
                                 }
                                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                                  format(string, sizeof(string), "* Ponudili ste vas auto %s-u za $%d .", giveplayer, price);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* Vlasnik auta %s vam je ponudio auto/motor za $%d (kucajte /accept ownablecar).", playername, price);
                                SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "Model: %s | Cena vozila na /v buy je $%d",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
                                SendClientMessage(giveplayerid, COLOR_BLUE, string);
                                OwnableCarOffer[giveplayerid] = playerid;
                                OwnableCarID[giveplayerid] = ownvehkey;
                                OwnableCarPrice[giveplayerid] = price;
                                return 1;
                             }
                             else if(PlayerInfo[giveplayerid][pPcarkey3] == 999)
                             {
                                 tmp = strtok(cmdtext, idx);
                                 if(!strlen(tmp))
                                 {
                                     SendClientMessage(playerid, COLOR_WHITE, "Podsetnik: /v sellto [ID Igraca/Dio Imena] [price]");
                                     return 1;
                                 }
                                        new newcar = GetPlayerVehicleID(playerid);
                                 new price;
                                 price = strval(tmp);
                                 if(price < 1 || price > 1500000)
                                 {
                                     SendClientMessage(playerid, COLOR_GREY, "  Cena ne moze biti manja od 1 ni veca od 1500000. ");
                                     return 1;
                                 }
                                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                                  format(string, sizeof(string), "* Ponudili ste vas auto %s-u za $%d .", giveplayer, price);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* Vlasnik auta %s vam je ponudio auto/motor za $%d (kucajte /accept ownablecar).", playername, price);
                                SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "Model: %s | Cena vozila na /v buy je $%d",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
                                SendClientMessage(giveplayerid, COLOR_BLUE, string);
                                OwnableCarOffer[giveplayerid] = playerid;
                                OwnableCarID[giveplayerid] = ownvehkey;
                                OwnableCarPrice[giveplayerid] = price;
                                return 1;
                             }
                             else
                             {
                                 SendClientMessage(playerid, COLOR_GREY, "   Igrac vec ima 3 vozila ! ");
                                 return 1;
                             }
                         }
                         else
                         {
                             SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas ! ");
                             return 1;
                         }
                     }
                  }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  To nije vas auto");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "  Morate sjesti u autu da biste ga prodali");
                return 1;
            }
           }
           else if(strcmp(x_nr,"park",true) == 0)
           {



               new Float:x,Float:y,Float:z;
            new Float:a;
            new carid;
            new getcarid;
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; } // novi auto
            else { return 1; }
            getcarid = GetPlayerVehicleID(playerid);
            GetPlayerName(playerid, playername, sizeof(playername));
            GetVehiclePos(carid, x, y, z);
            GetVehicleZAngle(carid, a);
            if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
            {
                  if(PlayerInfo[playerid][pPcarkey] == 999  && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
               {
                  SendClientMessage(playerid, COLOR_GREY, "Neposjedujes vozilo.");
                  return 1;
               }


Ako sam dao visak :D nema veze, ako nisam dobro dao, reci :)

Dao sam komandu /v moze sad pomoc ?

           else if(strcmp(x_nr,"park",true) == 0)
           {



               new Float:x,Float:y,Float:z;
            new Float:a;
            new carid;
            new getcarid;
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; } // novi auto
            else { return 1; }
            getcarid = GetPlayerVehicleID(playerid);
            GetPlayerName(playerid, playername, sizeof(playername));
            GetVehiclePos(carid, x, y, z);
            GetVehicleZAngle(carid, a);
            if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
            {
                  if(PlayerInfo[playerid][pPcarkey] == 999  && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
               {
                  SendClientMessage(playerid, COLOR_GREY, "Neposjedujes vozilo.");
                  return 1;
               }




Daj to do kraja znači to od park do kraja te park funkcije

Evo:

else if(strcmp(x_nr,"park",true) == 0)
           {



               new Float:x,Float:y,Float:z;
            new Float:a;
            new carid;
            new getcarid;
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; } // novi auto
            else { return 1; }
            getcarid = GetPlayerVehicleID(playerid);
            GetPlayerName(playerid, playername, sizeof(playername));
            GetVehiclePos(carid, x, y, z);
            GetVehicleZAngle(carid, a);
            if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
            {
                  if(PlayerInfo[playerid][pPcarkey] == 999  && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
               {
                  SendClientMessage(playerid, COLOR_GREY, "Neposjedujes vozilo.");
                  return 1;
               }

// ********************
    new Float:chealth;
    new cveh;
    cveh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(cveh, chealth);
    if(chealth <700)
   {
   SendClientMessage(playerid,COLOR_RED,"Vozilo je suvise osteceno, morate ga popraviti prvo !!");
   return 1;
   }
// *******************
if(GetPlayerMoney(playerid) < 201)
{
SendClientMessage(playerid,COLOR_RED,"Nemate dovoljno para sa sobom !!");
SendClientMessage(playerid,COLOR_RED,"Parkiranje vozila kosta 200$ !!");
return 1;
}
// *******************
               if(getcarid == carid)
               {
                  CarInfo[carid][cLocationx] = x;
                  CarInfo[carid][cLocationy] = y;
                  CarInfo[carid][cLocationz] = z;
                  CarInfo[carid][cAngle] = a;
// snimanje modifikacija
   new slot[14];
   slot[0] = GetVehicleComponentInSlot(carid, 0);
   slot[1] = GetVehicleComponentInSlot(carid, 1);
   slot[2] = GetVehicleComponentInSlot(carid, 2);
   slot[3] = GetVehicleComponentInSlot(carid, 3);
   slot[4] = GetVehicleComponentInSlot(carid, 4);
   slot[5] = GetVehicleComponentInSlot(carid, 5);
   slot[6] = GetVehicleComponentInSlot(carid, 6);
   slot[7] = GetVehicleComponentInSlot(carid, 7);
   slot[8] = GetVehicleComponentInSlot(carid, 8);
   slot[9] = GetVehicleComponentInSlot(carid, 9);
   slot[10] = GetVehicleComponentInSlot(carid, 10);
   slot[11] = GetVehicleComponentInSlot(carid, 11);
   slot[12] = GetVehicleComponentInSlot(carid, 12);
   slot[13] = GetVehicleComponentInSlot(carid, 13);
      CarInfo[carid][cComponent0] = slot[0];
      CarInfo[carid][cComponent1] = slot[1];
        CarInfo[carid][cComponent2] = slot[2];
        CarInfo[carid][cComponent3] = slot[3];
        CarInfo[carid][cComponent4] = slot[4];
      CarInfo[carid][cComponent5] = slot[5];
      CarInfo[carid][cComponent6] = slot[6];
      CarInfo[carid][cComponent7] = slot[7];
      CarInfo[carid][cComponent8] = slot[8];
      CarInfo[carid][cComponent9] = slot[9];
      CarInfo[carid][cComponent10] = slot[10];
      CarInfo[carid][cComponent11] = slot[11];
      CarInfo[carid][cComponent12] = slot[12];
      CarInfo[carid][cComponent13] = slot[13];


// ***************
                     OnPropUpdate();
                     OnPlayerUpdateCustom(playerid);
                  DestroyVehicle(carid);
                  SetVehicleModifications(carid); // nadodato
                  CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
                  SendClientMessage(playerid,COLOR_RED,"Parkiranje vozila kosta 200$ !!");
                  GivePlayerMoney(playerid,-200);
                  new boja
                     boja = CarInfo[carid][cPaintjob];
                     ChangeVehiclePaintjob(carid, boja);
                  SetVehicleModifications(carid);
// --------    za tablice      -------
        strmid(CarInfo[carid][cLicense], CarInfo[carid][cLicense], 0, strlen(CarInfo[carid][cLicense]), 8);
      SetVehicleNumberPlate(carid, CarInfo[carid][cLicense] );
      SetVehicleToRespawn(carid);
// ------------------------------------
                  TogglePlayerControllable(playerid, 1);
                  PutPlayerInVehicle(playerid, carid, 0);
                  format(string, sizeof(string), "~n~ Parkirao si vozilo na ovu lokaciju. ~n~");
                  GameTextForPlayer(playerid, "Parkirao si vozilo na ovu lokaciju. Od sad ce se spawnati ovdje.", 10000, 3);

                  return 1;
                  }
            }
           }

           else if(strcmp(x_nr,"lock1",true) == 0)
           {
                new keycar = PlayerInfo[playerid][pPcarkey];
                if(keycar != 999)
                {
                    new locked[128];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
                  foreach (Player, i)
                  {
                     SetVehicleParamsForPlayer(keycar,i,0,0);
                  }
                  format(string, sizeof(string), "~w~Vozilo~n~~g~Otkljucano");
                  GameTextForPlayer(playerid, string, 4000, 3);
                  CarInfo[keycar][cLock] = 0;
                  OnPropUpdate();
                  return 1;
               }
               else if(CarInfo[keycar][cLock] == 0)
               {
                  foreach (Player, i)
                  {
                     SetVehicleParamsForPlayer(keycar,i,0,1);
                  }
                  format(string, sizeof(string), "~w~Vozilo~n~~r~Zakljucano");
                  GameTextForPlayer(playerid, string, 4000, 3);
                  CarInfo[keycar][cLock] = 1;
                  OnPropUpdate();
                  return 1;
               }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  Nemate vozilo na slotu 1");
                    return 1;
                }
           }
           else if(strcmp(x_nr,"lock2",true) == 0)
           {
                new keycar = PlayerInfo[playerid][pPcarkey2];
                if(keycar != 999)
                {
                    new locked[128];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
                  foreach (Player, i)
                  {
                     SetVehicleParamsForPlayer(keycar,i,0,0);
                  }
                  format(string, sizeof(string), "~w~Vozilo~n~~g~Otkljucano");
                  GameTextForPlayer(playerid, string, 4000, 3);
                  CarInfo[keycar][cLock] = 0;
                  OnPropUpdate();
                  return 1;
               }
               else if(CarInfo[keycar][cLock] == 0)
               {
                  foreach (Player, i)
                  {
                     SetVehicleParamsForPlayer(keycar,i,0,1);
                  }
                  format(string, sizeof(string), "~w~Vozilo~n~~r~Zakljucano");
                  GameTextForPlayer(playerid, string, 4000, 3);
                  CarInfo[keycar][cLock] = 1;
                  OnPropUpdate();
                  return 1;
               }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  Nemate vozilo na slotu 2");
                    return 1;
                }
           }
           else if(strcmp(x_nr,"lock3",true) == 0)
           {
                new keycar = PlayerInfo[playerid][pPcarkey3];
                if(keycar != 999)
                {
                    new locked[128];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
                  foreach (Player, i)
                  {
                     SetVehicleParamsForPlayer(keycar,i,0,0);
                  }
                  format(string, sizeof(string), "~w~Vozilo~n~~g~Otkljucano");
                  GameTextForPlayer(playerid, string, 4000, 3);
                  CarInfo[keycar][cLock] = 0;
                  OnPropUpdate();
                  return 1;
               }
               else if(CarInfo[keycar][cLock] == 0)
               {
                  foreach (Player, i)
                  {
                     SetVehicleParamsForPlayer(keycar,i,0,1);
                  }
                  format(string, sizeof(string), "~w~Vozilo~n~~r~Zakljucano");
                  GameTextForPlayer(playerid, string, 4000, 3);
                  CarInfo[keycar][cLock] = 1;
                  OnPropUpdate();
                  return 1;
               }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  Nemate vozilo na slotu 3");
                    return 1;
                }
           }
           else if(!strcmp(x_nr,"find1"))
            {
            if(PlayerInfo[playerid][pJob] >= 1)
            {
           SCM(playerid,COLOR_GRAD1,"Posto ste zaposleni nemozete koristiti ovu komandu, morate dati /otkaz prvo !");
           return 1;
           }
                if(PlayerInfo[playerid][pPcarkey] != 999)
                {
                     new Float:x, Float:y, Float:z;
                     GetVehiclePos(PlayerInfo[playerid][pPcarkey], x,y,z);
                     SetPlayerCheckpoint(playerid,x,y,z,10);
                     OnPropUpdate();
                     OnPlayerUpdateCustom(playerid);
                }
                else
                {
                     SendClientMessage(playerid, -1, "Vase vozilo je oznaceno na mapi!");
                }
           }
           else if(!strcmp(x_nr,"find2"))
           {
           if(PlayerInfo[playerid][pJob] >= 1)
            {
           SCM(playerid,COLOR_GRAD1,"Posto ste zaposleni nemozete koristiti ovu komandu, morate dati /otkaz prvo !");
           return 1;
         }
                if(PlayerInfo[playerid][pPcarkey2] != 999)
                {
                     new Float:x, Float:y, Float:z;
                     GetVehiclePos(PlayerInfo[playerid][pPcarkey2], x,y,z);
                     SetPlayerCheckpoint(playerid,x,y,z,10);
                     OnPropUpdate();
                     OnPlayerUpdateCustom(playerid);
                }
                else
                {
                     SendClientMessage(playerid, -1, "Vase vozilo je oznaceno na mapi!");
                }
           }
           else if(!strcmp(x_nr,"find3"))
           {
           if(PlayerInfo[playerid][pJob] >= 1)
            {
           SCM(playerid,COLOR_GRAD1,"Posto ste zaposleni nemozete koristiti ovu komandu, morate dati /otkaz prvo !");
           return 1;
         }
                if(PlayerInfo[playerid][pPcarkey3] != 999)
                {
                     new Float:x, Float:y, Float:z;
                     GetVehiclePos(PlayerInfo[playerid][pPcarkey3], x,y,z);
                     SetPlayerCheckpoint(playerid,x,y,z,10);
                     OnPropUpdate();
                     OnPlayerUpdateCustom(playerid);
                }
                else
                {
                     SendClientMessage(playerid, -1, "Vase vozilo je oznaceno na mapi!");
                }
            }
           else if(strcmp(x_nr,"list",true) == 0)
           {
                new carkey = PlayerInfo[playerid][pPcarkey];
            new carkey2 = PlayerInfo[playerid][pPcarkey2];
            new carkey3 = PlayerInfo[playerid][pPcarkey3];
               if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
              {
                  SendClientMessage(playerid, COLOR_RED," ");
                  SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista Vozila ]----------------------------------");
                  SendClientMessage(playerid, COLOR_WHITE,"  Nemate nijedno vozilo!");
                  SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
                  return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED," ");
                SendClientMessage(playerid, COLOR_RED,"----------------------------------[ Lista Vozila ]----------------------------------");
               if (PlayerInfo[playerid][pPcarkey] != 999)
               {
                  format(string, sizeof(string), " 1| Model:[%s]  Vrednost:[%d]  Boja1:[%d]   Boja2:[%d]   Zakljucano:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);
                     SendClientMessage(playerid, COLOR_GRAD5,string);
               }
               if (PlayerInfo[playerid][pPcarkey2] != 999)
               {
                   format(string, sizeof(string), " 2| Model:[%s]  Vrednost:[%d]  Boja1:[%d]   Boja2:[%d]   Zakljucano:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock]);
                   SendClientMessage(playerid, COLOR_GRAD5,string);
               }
               if (PlayerInfo[playerid][pPcarkey3] != 999)
               {
                   format(string, sizeof(string), " 3| Model:[%s]  Vrednost:[%d]  Boja1:[%d]   Boja2:[%d]   Zakljucano:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock]);
                   SendClientMessage(playerid, COLOR_GRAD5,string);
               }
                SendClientMessage(playerid, COLOR_RED,"-------------------------------------------------------------------------------------------");
                  return 1;
              }
           }
           else if(strcmp(x_nr,"color",true) == 0)
           {
               if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
              {
                  SendClientMessage(playerid, COLOR_GREY,"   Nemate vozilo pa ga ne mozete ofarbati.");
                  return 1;
              }
              if(GetPlayerMoney(playerid) < 1000)
              {
                  SendClientMessage(playerid, COLOR_GREY,"   Nemate dovoljno novca za farbanje.");
                  return 1;
              }
              tmp = strtok(cmdtext, idx);
              if(!strlen(tmp))
            {
               SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /v color [ColorOneID] [ColorTwoID]");
               return 1;
            }
            new color1;
            color1 = strval(tmp);
            if(color1 < 0 && color1 > 126)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Pogresan color id!");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
              if(!strlen(tmp))
            {
               SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /v color [ColorOneID] [ColorTwoID]");
               return 1;
            }
            new color2;
            color2 = strval(tmp);
            if(color2 < 0 && color2 > 126)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Pogresan color id!");
                return 1;
            }

            new vehid;
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { vehid = PlayerInfo[playerid][pPcarkey]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { vehid = PlayerInfo[playerid][pPcarkey2]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { vehid = PlayerInfo[playerid][pPcarkey3]; }
            else { return 1; }

              if(IsPlayerInVehicle(playerid, vehid))
              {
                  CarInfo[vehid][cColorOne] = color1;
                   CarInfo[vehid][cColorTwo] = color2;
                   GivePlayerMoney(playerid, -1000);
                   GameTextForPlayer(playerid, "~w~Cena farbanja~n~~r~-$1000", 5000, 1);
                   ChangeVehicleColor(vehid, color1, color2);
                   OnPropUpdate();
               OnPlayerUpdateCustom(playerid);
               return 1;
             }
              else
              {
                  SendClientMessage(playerid, COLOR_GREY,"   Niste u vasem vozilu.");
                  return 1;
              }
           }
           else if(strcmp(x_nr,"buy",true) == 0)
           {
               if(IsAnOwnableCar(idcar))
               {
                   if(PlayerInfo[playerid][pLevel] < 5)
                {
                       SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Morate biti barem lvl 5 da kupite vozilo!");
                       return 1;
                }
                  if(SBizzInfo[1][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 4);
                  return 1;
               }
                if(PlayerInfo[playerid][pPcarkey] == 999) { }
                else if(PlayerInfo[playerid][pPcarkey2] == 999) { }
                else if(PlayerInfo[playerid][pPcarkey3] == 999) { }
                else { SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Vec posedujete 3 vozila !"); return 1; }
               if(CarInfo[idcar][cOwned]==1)
               {
                   SendClientMessage(playerid, COLOR_GREY, "[GREKSA] Neko vec poseduje to vozilo !");
                   return 1;
               }
               if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
               {
                   if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = idcar; }
                   else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = idcar; }
                   else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = idcar; }
                   else { return 1; }
                  CarInfo[idcar][cOwned] = 1;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
                  GivePlayerMoney(playerid,-CarInfo[idcar][cValue]);
                  SBizzInfo[54][sbTill] += 2000; // grotti
                  ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);
                  SBizzInfo[54][sbProducts]--;
                  GameTextForPlayer(playerid, "~w~Cestitamo~n~Nemojte zaboraviti /v park da ga parkirate!", 5000, 3);
                  SendClientMessage(playerid, COLOR_GRAD2, "{0F629F}Kucajte /v da vidite uputstva!");
                  SendClientMessage(playerid, COLOR_WHITE, "Sada mozete upaliti motor !");
                  gEngine[playerid] = 0;
                  engineOn[GetPlayerVehicleID(playerid)] = false;
                  Delete3DTextLabel(VehicleLabel[idcar]);
// --------     ako je u auto salonu plaza      --------------------------------
         if(IsPlayerInRangeOfPoint(playerid, 80,334,-1799,4.69))
         {
         new carid = GetPlayerVehicleID(playerid);
         SetVehiclePos(carid, 355.2707,-1782.9987,5.8198);
         SetVehicleZAngle(carid, 358.73);
         TogglePlayerControllable(playerid, 1);
         PutPlayerInVehicle(playerid, carid, 0);
         }
// -----------------------------------------------------------------------------
                  DateProp(playerid);
                  OnPropUpdate();
                  OnPlayerUpdateCustom(playerid);
                  return 1;
               }
               else
               {
                   SendClientMessage(playerid, COLOR_GREY, "[GRESKA] Nemate dovoljno novca kod sebe ! ");
                   return 1;
               }
               }
           }
           else
           {
              
               ShowPlayerDialog(playerid,213,DIALOG_STYLE_MSGBOX, "{0F629F}Vozilo Pomoc","{0F629F}/v park - {FFFFFF}Parkirati vozilo\n{0F629F}/v lock (1-3) - {FFFFFF}Zakljucati-Otkljucati vozilo\n{0F629F}/v sell - {FFFFFF}Prodati vozilo\n{0F629F}/v sellto - {FFFFFF}Prodati vozilo igracu\n{0F629F}/v color - {FFFFFF}Ofarbati vozilo\n{0F629F}/v list - {FFFFFF}Videti listu vozila\n{0F629F}","Ok","");
               return 1;
           }
       }
       return 1;
   }

Mozda sam sad dao i visak, ali evo, u komentar samo posalji resenje ..

Evo, dao sam ostatak od funkcije v, znas resenje ?

Evo ti kako sam ja u mom modu napravio, inace, iz Ravensa gledao(samo tuning gledao)...

Na vrh skripte ovo stavis.

enum vInfo
{
vOwned,
    vOwner[24],
    vModel,
    Float:vParkX,
Float:vParkY,
    Float:vParkZ,
    Float:vParkA,
    vColor1,
    vColor2,
    vLocked,
vRegistration,
    vControlID,
    vSpoiler,
    vHood,
    vRoof,
    vSideskirt,
    vLamps,
    vNitro,
vExhaust,
vWheels,
vStereo,
vHydraulics,
vFront_bumper,
vRear_bumper,
vVent_right,
vVent_left
}
new VehicleInfo[200][vInfo];


forward LoadVehicle_data(vehicleid, name[], value[]);
public LoadVehicle_data(vehicleid, name[], value[])
{
INI_Int("Owned", VehicleInfo[vehicleid][vOwned]);
INI_String("Owner", VehicleInfo[vehicleid][vOwner], MAX_PLAYER_NAME);
  INI_Int("Model", VehicleInfo[vehicleid][vModel]);
    INI_Float("ParkX", VehicleInfo[vehicleid][vParkX]);
INI_Float("ParkY", VehicleInfo[vehicleid][vParkY]);
  INI_Float("ParkZ", VehicleInfo[vehicleid][vParkZ]);
    INI_Float("ParkA", VehicleInfo[vehicleid][vParkA]);
    INI_Int("Color1", VehicleInfo[vehicleid][vColor1]);
    INI_Int("Color2", VehicleInfo[vehicleid][vColor2]);
    INI_Int("Locked", VehicleInfo[vehicleid][vLocked]);
    INI_Int("Registration", VehicleInfo[vehicleid][vRegistration]);
    INI_Int("ControlID", VehicleInfo[vehicleid][vControlID]);
    INI_Int("Spoiler", VehicleInfo[vehicleid][vSpoiler]);
    INI_Int("Hood", VehicleInfo[vehicleid][vHood]);
    INI_Int("Roof", VehicleInfo[vehicleid][vRoof]);
    INI_Int("Sideskirt", VehicleInfo[vehicleid][vSideskirt]);
    INI_Int("Lamps", VehicleInfo[vehicleid][vLamps]);
    INI_Int("Nitro", VehicleInfo[vehicleid][vNitro]);
    INI_Int("Exhaust", VehicleInfo[vehicleid][vExhaust]);
    INI_Int("Wheels", VehicleInfo[vehicleid][vWheels]);
    INI_Int("Stereo", VehicleInfo[vehicleid][vStereo]);
    INI_Int("Hydraulics", VehicleInfo[vehicleid][vHydraulics]);
    INI_Int("Front_bumper", VehicleInfo[vehicleid][vFront_bumper]);
    INI_Int("Rear_bumper", VehicleInfo[vehicleid][vRear_bumper]);
    INI_Int("Vent_right", VehicleInfo[vehicleid][vVent_right]);
    INI_Int("Vent_left", VehicleInfo[vehicleid][vVent_left]);
    return 1;
}


forward SaveVehicle(vehicleid);
public SaveVehicle(vehicleid)
{
    new str[16];
    format(str, sizeof(str), VPATH, vehicleid);
    new INI:File = INI_Open(str);
    INI_WriteInt(File, "Owned", VehicleInfo[vehicleid][vOwned]);
    INI_WriteString(File, "Owner", VehicleInfo[vehicleid][vOwner]);
    INI_WriteInt(File, "Model", VehicleInfo[vehicleid][vModel]);
    INI_WriteFloat(File, "ParkX", VehicleInfo[vehicleid][vParkX]);
    INI_WriteFloat(File, "ParkY", VehicleInfo[vehicleid][vParkY]);
    INI_WriteFloat(File, "ParkZ", VehicleInfo[vehicleid][vParkZ]);
    INI_WriteFloat(File, "ParkA", VehicleInfo[vehicleid][vParkA]);
    INI_WriteInt(File, "Color1", VehicleInfo[vehicleid][vColor1]);
    INI_WriteInt(File, "Color2", VehicleInfo[vehicleid][vColor2]);
    INI_WriteInt(File, "Locked", VehicleInfo[vehicleid][vLocked]);
    INI_WriteInt(File, "Registration", VehicleInfo[vehicleid][vRegistration]);
    INI_WriteInt(File, "ControlID", VehicleInfo[vehicleid][vControlID]);
    INI_WriteInt(File, "Spoiler", VehicleInfo[vehicleid][vSpoiler]);
    INI_WriteInt(File, "Hood", VehicleInfo[vehicleid][vHood]);
    INI_WriteInt(File, "Roof", VehicleInfo[vehicleid][vRoof]);
    INI_WriteInt(File, "Sideskirt", VehicleInfo[vehicleid][vSideskirt]);
    INI_WriteInt(File, "Lamps", VehicleInfo[vehicleid][vLamps]);
    INI_WriteInt(File, "Nitro", VehicleInfo[vehicleid][vNitro]);
    INI_WriteInt(File, "Exhaust", VehicleInfo[vehicleid][vExhaust]);
    INI_WriteInt(File, "Wheels", VehicleInfo[vehicleid][vWheels]);
    INI_WriteInt(File, "Stereo", VehicleInfo[vehicleid][vStereo]);
    INI_WriteInt(File, "Hydraulics", VehicleInfo[vehicleid][vHydraulics]);
    INI_WriteInt(File, "Front_bumper", VehicleInfo[vehicleid][vFront_bumper]);
    INI_WriteInt(File, "Rear_bumper", VehicleInfo[vehicleid][vRear_bumper]);
    INI_WriteInt(File, "Vent_right", VehicleInfo[vehicleid][vVent_right]);
    INI_WriteInt(File, "Vent_left", VehicleInfo[vehicleid][vVent_left]);
    INI_Close(File);
    return 1;
}


forward SaveVehicleComponents(vehicleid);
public SaveVehicleComponents(vehicleid)
{
new spoiler, hood, roof, sideskirt, lamps, nitro, exhaust, wheels;
new stereo, hydraulics, frontbumper, rearbumper, leftvent, rightvent;
spoiler = GetVehicleComponentInSlot(vehicleid, 0);
hood = GetVehicleComponentInSlot(vehicleid, 1);
roof = GetVehicleComponentInSlot(vehicleid, 2);
sideskirt = GetVehicleComponentInSlot(vehicleid, 3);
lamps = GetVehicleComponentInSlot(vehicleid, 4);
nitro = GetVehicleComponentInSlot(vehicleid, 5);
exhaust = GetVehicleComponentInSlot(vehicleid, 6);
wheels = GetVehicleComponentInSlot(vehicleid, 7);
stereo = GetVehicleComponentInSlot(vehicleid, 8);
hydraulics = GetVehicleComponentInSlot(vehicleid, 9);
frontbumper = GetVehicleComponentInSlot(vehicleid, 10);
rearbumper = GetVehicleComponentInSlot(vehicleid, 11);
rightvent = GetVehicleComponentInSlot(vehicleid, 12);
leftvent = GetVehicleComponentInSlot(vehicleid, 13);

if(spoiler != 0) { VehicleInfo[vehicleid][vSpoiler] = spoiler; }
if(hood != 0) { VehicleInfo[vehicleid][vHood] = hood; }
if(roof != 0) { VehicleInfo[vehicleid][vRoof] = roof; }
if(sideskirt != 0) { VehicleInfo[vehicleid][vSideskirt] = sideskirt; }
if(lamps != 0) { VehicleInfo[vehicleid][vLamps] = lamps; }
if(nitro != 0) { VehicleInfo[vehicleid][vNitro] = nitro; }
if(exhaust != 0) { VehicleInfo[vehicleid][vExhaust] = exhaust; }
if(wheels != 0) { VehicleInfo[vehicleid][vWheels] = wheels; }
if(stereo != 0) { VehicleInfo[vehicleid][vStereo] = stereo; }
if(hydraulics != 0) { VehicleInfo[vehicleid][vHydraulics] = hydraulics; }
if(frontbumper != 0) { VehicleInfo[vehicleid][vFront_bumper] = frontbumper; }
if(rearbumper != 0) { VehicleInfo[vehicleid][vRear_bumper] = rearbumper; }
if(rightvent != 0) { VehicleInfo[vehicleid][vVent_right] = rightvent; }
if(leftvent != 0) { VehicleInfo[vehicleid][vVent_left] = leftvent; }
SaveVehicle(vehicleid);
}


forward SetVehicleComponents(vehicleid);
public SetVehicleComponents(vehicleid)
{
if(VehicleInfo[vehicleid][vSpoiler] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vSpoiler]); }
if(VehicleInfo[vehicleid][vHood] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vHood]); }
if(VehicleInfo[vehicleid][vRoof] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vRoof]); }
if(VehicleInfo[vehicleid][vSideskirt] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vSideskirt]); }
if(VehicleInfo[vehicleid][vLamps] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vLamps]); }
if(VehicleInfo[vehicleid][vNitro] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vNitro]); }
if(VehicleInfo[vehicleid][vExhaust] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vExhaust]); }
if(VehicleInfo[vehicleid][vWheels] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vWheels]); }
if(VehicleInfo[vehicleid][vStereo] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vStereo]); }
if(VehicleInfo[vehicleid][vHydraulics] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vHydraulics]); }
if(VehicleInfo[vehicleid][vFront_bumper] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vFront_bumper]); }
if(VehicleInfo[vehicleid][vRear_bumper] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vRear_bumper]); }
if(VehicleInfo[vehicleid][vVent_right] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vVent_right]); }
if(VehicleInfo[vehicleid][vVent_left] >= 0) { AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vVent_left]); }
}


forward RemoveVehicleComponents(vehicleid);
public RemoveVehicleComponents(vehicleid)
{
    VehicleInfo[vehicleid][vSpoiler] = 0;
    VehicleInfo[vehicleid][vHood] = 0;
    VehicleInfo[vehicleid][vRoof] = 0;
    VehicleInfo[vehicleid][vSideskirt] = 0;
    VehicleInfo[vehicleid][vLamps] = 0;
    VehicleInfo[vehicleid][vNitro] = 0;
    VehicleInfo[vehicleid][vExhaust] = 0;
    VehicleInfo[vehicleid][vWheels] = 0;
    VehicleInfo[vehicleid][vStereo] = 0;
    VehicleInfo[vehicleid][vHydraulics] = 0;
    VehicleInfo[vehicleid][vFront_bumper] = 0;
    VehicleInfo[vehicleid][vRear_bumper] = 0;
    VehicleInfo[vehicleid][vVent_right] = 0;
    VehicleInfo[vehicleid][vVent_left] = 0;
    SaveVehicle(vehicleid);
}


public OnVehicleSpawn(vehicleid)
{
        SetVehicleComponents(vehicleid);

return 1;
}



U OnVehicleSpawn sam ostavio samo ovo, sad ti ubaci gde hoces ovo, neku proveru ili sta vec imas :) Meni je pri proveri da li vozilo ima vlasnik (OwnedVehicle)
U komandu za cuvanje tuninga samo stavis SaveVehicleComponents
Poslednja Izmena: Maj 17, 2014, 19:15:34 POSLE PODNE od 032.Marcus