Jump to content
  • 0

Problema dealership.


Question

Posted

Problema intalnita (descriere): Salut ! Am o mica problema la dealer-ul de masini,cumpar masina,totul e ok,ii dau /v park,dar la restart nu ramane la locul unde i-am dat park,trebuie sa o aduc cu /getcar. Aveti vreo idee? 
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul: -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Sincer,chiar nu imi dau seama !

Nu vreau sa fiu un om important,vreau sa fiu un om respectat !

4 answers to this question

Recommended Posts

  • 0
Posted

 

           new Float:CarHP, Float:OldCarHP; new panels,doors,lights,tires;
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
GetVehicleDamageStatus(carid,panels,doors,lights,tires);
GetVehicleHealth(carid, CarHP); OldCarHP = CarHP;
format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~");
GameTextForPlayer(playerid, "Masina a fost parcata cu scucces..", 10000, 3);
OnCarUpdate(); SavePlayerData(playerid);  DestroyVehicle(carid);
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);
LoadComponents(carid); OnCarUpdate(); SavePlayerData(playerid);
PutPlayerInVehicle(playerid,carid,0); SetVehicleHealth(carid, OldCarHP);
UpdateVehicleDamageStatus(carid,panels,doors,lights,tires);
TogglePlayerControllable(playerid, 1);
return 1;
    }
  }
}
 
 
Ma scuzi,am uitat.

Nu vreau sa fiu un om important,vreau sa fiu un om respectat !

  • 0
Posted
Ai si functie de salvare a datelor la masina? Ca acolo am vazut puse doar functiile de salvare a datelor player-ului si distrugerea vehiculului...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.