28.10.2010, 18:29
Tunar
https://sampwiki.blast.hk/wiki/AddVehicleComponent
Veiculo em interior
https://sampwiki.blast.hk/wiki/LinkVehicleToInterior
https://sampwiki.blast.hk/wiki/AddVehicleComponent
pawn Код:
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carronaotunado = CreateVehicle(562, X,Y,Z, 0.0, 86, 86, 2500000); // veiculo
SendClientMessage(playerid, 0xFF0000AA, "veiculo criado!");
PutPlayerInVehicle(playerid, carronaotunado, 0);
new carrotunado = 0;
carrotunado = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
{
AddVehicleComponent(carrotunado, 1035); // tunings
AddVehicleComponent(carrotunado, 1037); // tunings
AddVehicleComponent(carrotunado, 1039); // tunings
AddVehicleComponent(carrotunado, 1041); // tunings...
AddVehicleComponent(carrotunado, 1146);
AddVehicleComponent(carrotunado, 1148);
AddVehicleComponent(carrotunado, 1172);
ChangeVehiclePaintjob(carrotunado, 0);
ChangeVehicleColor(carrotunado, 86, 86);
AddVehicleComponent(carrotunado, 1080);
}
https://sampwiki.blast.hk/wiki/LinkVehicleToInterior
pawn Код:
new vehicle1 = AddStaticVehicle(559,2543.7505,-21.8345,27.1899,52.6054,53,79);
LinkVehicleToInterior(vehicle1, 6);