CreateObject(1337,1526.03002930,-1683.00573730,840.60400391,0.00000000,0.00000000,0.00000000); //
CreateObject(3115,1466.65270996,-1659.44079590,899.09576416,0.00000000,0.00000000,0.00000000); //
CreateObject(3115,1445.75036621,-1659.45178223,899.09069824,0.00000000,0.00000000,0.00000000); //
CreateObject(3115,1472.56201172,-1659.45837402,909.04797363,0.00000000,269.50030518,0.50000000); //
CreateObject(3115,1435.05212402,-1659.45190430,909.62554932,0.00000000,270.24786377,179.24993896); //
CreateObject(3115,1461.67114258,-1659.48413086,919.31311035,0.00000000,180.24769592,359.99987793); //
CreateObject(3115,1444.44226074,-1659.47192383,919.35778809,0.00000000,180.24717712,359.99453735); //
CreateObject(3115,1444.83398438,-1649.85729980,908.93200684,0.49975586,90.01742554,270.50000000); //
CreateObject(3115,1463.08215332,-1649.93273926,910.01947021,0.24456787,90.00817871,269.00048828); //
CreateObject(3115,1465.10253906,-1669.13574219,909.07983398,0.24142456,90.00549316,90.25012207); //
CreateObject(3115,1444.51196289,-1669.17529297,909.18579102,0.23651123,90.00549316,89.24697876); //
CreateObject(3115,1451.71484375,-1681.56506348,909.05609131,0.23651123,90.00549316,20.24737549); //
CreateObject(3115,1446.48168945,-1670.43237305,909.26269531,0.23620605,90.00549316,90.24719238); //
CreateObject(3115,1429.17211914,-1668.66137695,909.33190918,0.23620605,90.00549316,90.49438477); //
CreateObject(3115,1455.71081543,-1669.21630859,909.74114990,0.23651123,90.00549316,90.49172974); //
CreateObject(2639,1471.68395996,-1652.04943848,900.05310059,0.00000000,0.00000000,92.99996948); //
CreateObject(1594,1434.87475586,-1677.25915527,905.42907715,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1441.99108887,-1662.64953613,899.88946533,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1443.44445801,-1664.81909180,899.89465332,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1442.60144043,-1658.37561035,899.88793945,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1457.26220703,-1659.02233887,899.90826416,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1450.91589355,-1659.71301270,899.88098145,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1454.24902344,-1661.06542969,899.88458252,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1453.50036621,-1654.77722168,899.86773682,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1446.89843750,-1657.06115723,899.87744141,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1447.28002930,-1660.36230469,899.87670898,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1449.43908691,-1653.13647461,899.87127686,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1450.53039551,-1665.84802246,899.89746094,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1450.04199219,-1653.11059570,899.86981201,0.00000000,0.00000000,0.00000000); //
CreateObject(1594,1446.10021973,-1654.13513184,899.87939453,0.00000000,0.00000000,0.00000000); //
CreateObject(14791,1461.82409668,-1662.28649902,901.46221924,0.00000000,0.00000000,0.00000000); //
CreateObject(14826,1438.09680176,-1654.20410156,900.13995361,0.00000000,0.00000000,268.00000000); //
CreateObject(16151,1463.93994141,-1651.30419922,899.75085449,0.00000000,0.00000000,88.00000000); //
CreateObject(1775,1471.70104980,-1650.71386719,900.49475098,0.00000000,0.00000000,0.00000000); //
CreateObject(2634,1472.20776367,-1656.51599121,900.89727783,0.00000000,0.00000000,88.00000000); //
CreateObject(2985,1466.52587891,-1652.30700684,900.37841797,0.00000000,0.00000000,324.00000000); //
CreateObject(2985,1468.80224609,-1653.97839355,899.51593018,358.94238281,0.00000000,224.94030762); //
CreateObject(2985,1470.41247559,-1660.07299805,899.40405273,358.93981934,0.00000000,124.93518066); //
CreateObject(355,1464.34533691,-1652.37268066,900.45611572,274.00000000,0.00000000,0.00000000); //
CreateObject(355,1462.89257812,-1652.22167969,900.43109131,276.01745605,48.45443726,48.29724121); //
CreateObject(355,1461.08093262,-1652.13610840,900.45666504,276.48284912,62.54467773,56.89422607); //
CreateObject(355,1453.42102051,-1654.67846680,900.32006836,275.83309937,46.81823730,354.66979980); //
CreateObject(355,1439.40710449,-1660.46069336,899.66876221,275.82824707,46.81823730,354.66613770); //
CreateObject(1337,1472.24328613,-1653.59924316,902.53564453,0.00000000,0.00000000,0.00000000); //
CreateObject(2785,1472.01232910,-1666.48889160,900.26715088,0.00000000,0.00000000,268.75000000); //
CreateObject(2785,1472.07763672,-1662.27600098,900.25994873,0.00000000,0.00000000,268.74755859); //
Bom pessoal, depois de muito tempo sem postar aqui, realmente muitoo tempo eu resolvi compartilhar uma coisa aqui que eu fiz. Oque eu fiz? Eu juntei 2 FS em 1 só.
Os FilterScripts:
- /tunar - By: Xereta
- Salvamento de tunning - By: Desconhecido, se alguem descobri posta aqui.
O dialogo do /tunar tá definido como DIALOGID - 3300. Se já tiver, mude.
Download:
PASTEBIN [ ATUALIZADO ]
4SHARED [ ATUALIZADO ]
Os FilterScripts:
- /tunar - By: Xereta
- Salvamento de tunning - By: Desconhecido, se alguem descobri posta aqui.
O dialogo do /tunar tá definido como DIALOGID - 3300. Se já tiver, mude.
Download:
PASTEBIN [ ATUALIZADO ]
4SHARED [ ATUALIZADO ]
/* CRÉDITOS A XERETA PELO /TUNAR
CRÉDITOS PARA O SALVAMENTO: DESCONHECIDO
SE ALGUEM SOUBER POR FAVOR POSTE LÁ NO FÓRUM */
#include <a_samp>
#include <dini>
#define FILTERSCRIPT
#define DIALOGID 3300
#define rodawire 1081
#define suspensao 1087
forward TuneThisCar(vehicleid);
forward LoadModsForAll(vehicleid);
forward SaveModsForAll(vehicleid);
forward VehicleSpawn (vehicleid);
forward RestartVeh(vehicleid);
forward Timermods();
new spoiler[20][0] = {
{1000},
{1001},
{1002},
{1003},
{1014},
{1015},
{1016},
{1023},
{1058},
{1060},
{1049},
{1050},
{1138},
{1139},
{1146},
{1147},
{1158},
{1162},
{1163},
{1164}
};
new nitro[3][0] = {
{1008},
{1009},
{1010}
};
new fbumper[23][0] = {
{1117},
{1152},
{1153},
{1155},
{1157},
{1160},
{1165},
{1167},
{1169},
{1170},
{1171},
{1172},
{1173},
{1174},
{1175},
{1179},
{1181},
{1182},
{1185},
{1188},
{1189},
{1192},
{1193}
};
new rbumper[22][0] = {
{1140},
{1141},
{1148},
{1149},
{1150},
{1151},
{1154},
{1156},
{1159},
{1161},
{1166},
{1168},
{1176},
{1177},
{1178},
{1180},
{1183},
{1184},
{1186},
{1187},
{1190},
{1191}
};
new exhaust[28][0] = {
{1018},
{1019},
{1020},
{1021},
{1022},
{1028},
{1029},
{1037},
{1043},
{1044},
{1045},
{1046},
{1059},
{1064},
{1065},
{1066},
{1089},
{1092},
{1104},
{1105},
{1113},
{1114},
{1126},
{1127},
{1129},
{1132},
{1135},
{1136}
};
new bventr[2][0] = {
{1042},
{1044}
};
new bventl[2][0] = {
{1043},
{1045}
};
new bscoop[4][0] = {
{1004},
{1005},
{1011},
{1012}
};
new rscoop[13][0] = {
{1006},
{1032},
{1033},
{1035},
{1038},
{1053},
{1054},
{1055},
{1061},
{1067},
{1068},
{1088},
{1091}
};
new lskirt[21][0] = {
{1007},
{1026},
{1031},
{1036},
{1039},
{1042},
{1047},
{1048},
{1056},
{1057},
{1069},
{1070},
{1090},
{1093},
{1106},
{1108},
{1118},
{1119},
{1133},
{1122},
{1134}
};
new rskirt[21][0] = {
{1017},
{1027},
{1030},
{1040},
{1041},
{1051},
{1052},
{1062},
{1063},
{1071},
{1072},
{1094},
{1095},
{1099},
{1101},
{1102},
{1107},
{1120},
{1121},
{1124},
{1137}
};
new hydraulics[1][0] = {
{1087}
};
new base[1][0] = {
{1086}
};
new rbbars[2][0] = {
{1109},
{1110}
};
new fbbars[2][0] = {
{1115},
{1116}
};
new wheels[17][0] = {
{1025},
{1073},
{1074},
{1075},
{1076},
{1077},
{1078},
{1079},
{1080},
{1081},
{1082},
{1083},
{1084},
{1085},
{1096},
{1097},
{1098}
};
new lights[2][0] = {
{1013},
{1024}
};
//
enum tInfo
{
mod1,
mod2,
mod3,
mod4,
mod5,
mod6,
mod7,
mod8,
mod9,
mod10,
mod11,
mod12,
mod13,
mod14,
mod15,
mod16,
mod17,
paintjob,
colorA,
colorB,
}
new TuneCar[MAX_VEHICLES][tInfo];
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#else
main()
{
}
#endif
public OnVehicleSpawn(vehicleid)
{
SetTimer("VehicleSpawn",2000,0);
}
public OnVehicleDeath(vehicleid, killerid)
{
SaveModsForAll(vehicleid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tunar", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunning", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
return 1;
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
SaveModsForAll(vehicleid);
return 1;
}
public TuneThisCar(vehicleid)
{
if(TuneCar[vehicleid][mod1]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod1]); }
if(TuneCar[vehicleid][mod2]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod2]); }
if(TuneCar[vehicleid][mod3]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod3]); }
if(TuneCar[vehicleid][mod4]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod4]); }
if(TuneCar[vehicleid][mod5]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod5]); }
if(TuneCar[vehicleid][mod6]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod6]); }
if(TuneCar[vehicleid][mod7]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod7]); }
if(TuneCar[vehicleid][mod8]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod8]); }
if(TuneCar[vehicleid][mod9]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod9]); }
if(TuneCar[vehicleid][mod10]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod10]); }
if(TuneCar[vehicleid][mod11]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod11]); }
if(TuneCar[vehicleid][mod12]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod12]); }
if(TuneCar[vehicleid][mod13]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod13]); }
if(TuneCar[vehicleid][mod14]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod14]); }
if(TuneCar[vehicleid][mod15]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod15]); }
if(TuneCar[vehicleid][mod16]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod16]); }
if(TuneCar[vehicleid][mod17]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod17]); }
if(TuneCar[vehicleid][colorA]!=0 || TuneCar[vehicleid][colorB]!=0)
{
ChangeVehicleColor(vehicleid,TuneCar[vehicleid][colorA],TuneCar[vehicleid][colorB]);
}
if(TuneCar[vehicleid][paintjob]!=0) { ChangeVehiclePaintjob(vehicleid,TuneCar[vehicleid][paintjob]); }
return 1;
}
InitComponents(componentid)
{
new i;
for(i=0; i<20; i++)
{
if(spoiler[i][0]==componentid) { return 1; }
}
for(i=0; i<3; i++)
{
if(nitro[i][0]==componentid) { return 2; }
}
for(i=0; i<23; i++)
{
if(fbumper[i][0]==componentid) { return 3; }
}
for(i=0; i<22; i++)
{
if(rbumper[i][0]==componentid) { return 4; }
}
for(i=0; i<28; i++)
{
if(exhaust[i][0]==componentid) { return 5; }
}
for(i=0; i<2; i++)
{
if(bventr[i][0]==componentid) { return 6; }
}
for(i=0; i<2; i++)
{
if(bventl[i][0]==componentid) { return 7; }
}
for(i=0; i<4; i++)
{
if(bscoop[i][0]==componentid) { return 8; }
}
for(i=0; i<13; i++)
{
if(rscoop[i][0]==componentid) { return 9; }
}
for(i=0; i<21; i++)
{
if(lskirt[i][0]==componentid) { return 10; }
}
for(i=0; i<21; i++)
{
if(rskirt[i][0]==componentid) { return 11; }
}
if(hydraulics[0][0]==componentid) { return 12; }
if(base[0][0]==componentid) { return 13; }
for(i=0; i<2; i++)
{
if(rbbars[i][0]==componentid) { return 14; }
}
for(i=0; i<2; i++)
{
if(fbbars[i][0]==componentid) { return 15; }
}
for(i=0; i<17; i++)
{
if(wheels[i][0]==componentid) { return 16; }
}
for(i=0; i<2; i++)
{
if(lights[i][0]==componentid) { return 17; }
}
return 0;
}
public OnVehicleMod(playerid,vehicleid,componentid)
{
new Varz=InitComponents(componentid);
switch (Varz)
{
case 1: { TuneCar[vehicleid][mod1]=componentid; }
case 2: { TuneCar[vehicleid][mod2]=componentid; }
case 3: { TuneCar[vehicleid][mod3]=componentid; }
case 4: { TuneCar[vehicleid][mod4]=componentid; }
case 5: { TuneCar[vehicleid][mod5]=componentid; }
case 6: { TuneCar[vehicleid][mod6]=componentid; }
case 7: { TuneCar[vehicleid][mod7]=componentid; }
case 8: { TuneCar[vehicleid][mod8]=componentid; }
case 9: { TuneCar[vehicleid][mod9]=componentid; }
case 10: { TuneCar[vehicleid][mod10]=componentid; }
case 11: { TuneCar[vehicleid][mod11]=componentid; }
case 12: { TuneCar[vehicleid][mod12]=componentid; }
case 13: { TuneCar[vehicleid][mod13]=componentid; }
case 14: { TuneCar[vehicleid][mod14]=componentid; }
case 15: { TuneCar[vehicleid][mod15]=componentid; }
case 16: { TuneCar[vehicleid][mod16]=componentid; }
case 17: { TuneCar[vehicleid][mod17]=componentid; }
}
printf("Componente adicionado: %d",componentid);
SaveModsForAll(vehicleid);
return 1;
}
public OnVehiclePaintjob(playerid,vehicleid, paintjobid)
{
TuneCar[vehicleid][paintjob]=paintjobid;
return 1;
}
public LoadModsForAll(vehicleid)
{
new formatLD[256];
format(formatLD,sizeof(formatLD),"voituresmods/%d.mods",vehicleid);
if(dini_Exists(formatLD))
{
TuneCar[vehicleid][mod1] = dini_Int(formatLD, "mod1");
TuneCar[vehicleid][mod2] = dini_Int(formatLD, "mod2");
TuneCar[vehicleid][mod3] = dini_Int(formatLD, "mod3");
TuneCar[vehicleid][mod4] = dini_Int(formatLD, "mod4");
TuneCar[vehicleid][mod5] = dini_Int(formatLD, "mod5");
TuneCar[vehicleid][mod6] = dini_Int(formatLD, "mod6");
TuneCar[vehicleid][mod7] = dini_Int(formatLD, "mod7");
TuneCar[vehicleid][mod8] = dini_Int(formatLD, "mod8");
TuneCar[vehicleid][mod9] = dini_Int(formatLD, "mod9");
TuneCar[vehicleid][mod10] = dini_Int(formatLD, "mod10");
TuneCar[vehicleid][mod11] = dini_Int(formatLD, "mod11");
TuneCar[vehicleid][mod12] = dini_Int(formatLD, "mod12");
TuneCar[vehicleid][mod13] = dini_Int(formatLD, "mod13");
TuneCar[vehicleid][mod14] = dini_Int(formatLD, "mod14");
TuneCar[vehicleid][mod15] = dini_Int(formatLD, "mod15");
TuneCar[vehicleid][mod16] = dini_Int(formatLD, "mod16");
TuneCar[vehicleid][mod17] = dini_Int(formatLD, "mod17");
TuneCar[vehicleid][paintjob] = dini_Int(formatLD, "paintjob");
TuneCar[vehicleid][colorA] = dini_Int(formatLD, "color1");
TuneCar[vehicleid][colorB] = dini_Int(formatLD, "color2");
}
else
{
dini_Create(formatLD);
}
return 0;
}
public SaveModsForAll(vehicleid)
{
new formatLD[256];
format(formatLD,sizeof(formatLD),"voituresmods/%d.mods",vehicleid);
if(dini_Exists(formatLD))
{
dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]);
dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]);
dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]);
dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]);
dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]);
dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]);
dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]);
dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]);
dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]);
dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]);
dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]);
dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]);
dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]);
dini_IntSet(formatLD,"mod15",TuneCar[vehicleid][mod15]);
dini_IntSet(formatLD,"mod16",TuneCar[vehicleid][mod16]);
dini_IntSet(formatLD,"mod17",TuneCar[vehicleid][mod17]);
dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]);
dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]);
dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]);
}
else
{
dini_Create(formatLD);
dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]);
dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]);
dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]);
dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]);
dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]);
dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]);
dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]);
dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]);
dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]);
dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]);
dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]);
dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]);
dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]);
dini_IntSet(formatLD,"mod15",TuneCar[vehicleid][mod15]);
dini_IntSet(formatLD,"mod16",TuneCar[vehicleid][mod16]);
dini_IntSet(formatLD,"mod17",TuneCar[vehicleid][mod17]);
dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]);
dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]);
dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]);
}
return 0;
}
public OnVehicleRespray(playerid,vehicleid, color1, color2)
{
TuneCar[vehicleid][colorA] = color1;
TuneCar[vehicleid][colorB] = color2;
return 1;
}
public VehicleSpawn(vehicleid)
{
TuneThisCar(vehicleid);
LoadModsForAll(vehicleid);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new car;
car = GetPlayerVehicleID(playerid);
if(dialogid == DIALOGID) // Menu
{
if(response)
{
if(listitem == 0) // Rodas
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Rodas", "Estilo 1 \nEstilo 2 \nEstilo 3 \nEstilo 4 \nEstilo 5 \nEstilo 6 \nVoltar", "Ok", "Cancelar");
}
if(listitem == 1) // Cores
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Cores", "Preto \nBranco \nAzul Escuro \nAzul Claro \nVerde \nVermelho \nAmarelo \nRosa \nVoltar", "Pintar!", "Cancelar");
}
if(listitem == 2) // Paintjobs
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Paintjobs", "Estilo 1 \nEstilo 2 \nEstilo 3 \nVoltar", "Pintar!", "Cancelar");
}
if(listitem == 3) // Nitro
{
AddVehicleComponent(car,1010);
}
if(listitem == 4) // Suspensão
{
AddVehicleComponent(car,1087);
}
if(listitem == 5) // AutoTuning
{
new idcarro;
idcarro = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
{
AddVehicleComponent(idcarro,1046);
AddVehicleComponent(idcarro,1171);
AddVehicleComponent(idcarro,1149);
AddVehicleComponent(idcarro,1035);
AddVehicleComponent(idcarro,1147);
AddVehicleComponent(idcarro,1036);
AddVehicleComponent(idcarro,1040);
ChangeVehiclePaintjob(idcarro, 1);
ChangeVehicleColor(idcarro, 0, 0);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
AddVehicleComponent(idcarro,1028);
AddVehicleComponent(idcarro,1169);
AddVehicleComponent(idcarro,1141);
AddVehicleComponent(idcarro,1032);
AddVehicleComponent(idcarro,1138);
AddVehicleComponent(idcarro,1026);
AddVehicleComponent(idcarro,1027);
ChangeVehiclePaintjob(idcarro, 2);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
{
AddVehicleComponent(idcarro,1046);
AddVehicleComponent(idcarro,1153);
AddVehicleComponent(idcarro,1150);
AddVehicleComponent(idcarro,1054);
AddVehicleComponent(idcarro,1049);
AddVehicleComponent(idcarro,1047);
AddVehicleComponent(idcarro,1051);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
{
AddVehicleComponent(idcarro,1065);
AddVehicleComponent(idcarro,1160);
AddVehicleComponent(idcarro,1159);
AddVehicleComponent(idcarro,1067);
AddVehicleComponent(idcarro,1162);
AddVehicleComponent(idcarro,1069);
AddVehicleComponent(idcarro,1071);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 1);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
{
AddVehicleComponent(idcarro,1064);
AddVehicleComponent(idcarro,1155);
AddVehicleComponent(idcarro,1154);
AddVehicleComponent(idcarro,1055);
AddVehicleComponent(idcarro,1158);
AddVehicleComponent(idcarro,1056);
AddVehicleComponent(idcarro,1062);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
{
AddVehicleComponent(idcarro,1089);
AddVehicleComponent(idcarro,1166);
AddVehicleComponent(idcarro,1168);
AddVehicleComponent(idcarro,1088);
AddVehicleComponent(idcarro,1164);
AddVehicleComponent(idcarro,1090);
AddVehicleComponent(idcarro,1094);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
{
AddVehicleComponent(idcarro,1044);
AddVehicleComponent(idcarro,1174);
AddVehicleComponent(idcarro,1176);
AddVehicleComponent(idcarro,1042);
AddVehicleComponent(idcarro,1099);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 0);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
{
AddVehicleComponent(idcarro,1126);
AddVehicleComponent(idcarro,1179);
AddVehicleComponent(idcarro,1180);
AddVehicleComponent(idcarro,1122);
AddVehicleComponent(idcarro,1101);
AddVehicleComponent(idcarro,1125);
AddVehicleComponent(idcarro,1123);
AddVehicleComponent(idcarro,1100);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
{
AddVehicleComponent(idcarro,1104);
AddVehicleComponent(idcarro,1182);
AddVehicleComponent(idcarro,1184);
AddVehicleComponent(idcarro,1108);
AddVehicleComponent(idcarro,1107);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 1);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
{
AddVehicleComponent(idcarro,1129);
AddVehicleComponent(idcarro,1189);
AddVehicleComponent(idcarro,1187);
AddVehicleComponent(idcarro,1102);
AddVehicleComponent(idcarro,1133);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1139);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1013);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1086);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
{
AddVehicleComponent(idcarro,1086);
AddVehicleComponent(idcarro,1139);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1012);
AddVehicleComponent(idcarro,1013);
AddVehicleComponent(idcarro,1042);
AddVehicleComponent(idcarro,1043);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1006);
AddVehicleComponent(idcarro,1007);
AddVehicleComponent(idcarro,1017);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
{
ChangeVehiclePaintjob(idcarro,2);
AddVehicleComponent(idcarro,1191);
AddVehicleComponent(idcarro,1193);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1134);
AddVehicleComponent(idcarro,1137);
}
else
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
}
}
return 1;
}
if(dialogid == DIALOGID+1) // Rodas
{
if(response)
{
if(listitem == 0) // Estilo 1
{
AddVehicleComponent(car,1084);
}
if(listitem == 1) // Estilo 2
{
AddVehicleComponent(car,1073);
}
if(listitem == 2) // Estilo 3
{
AddVehicleComponent(car,1075);
}
if(listitem == 3) // Estilo 4
{
AddVehicleComponent(car,1077);
}
if(listitem == 4) // Estilo 5
{
AddVehicleComponent(car,1079);
}
if(listitem == 5) // Estilo 6
{
AddVehicleComponent(car,1080);
}
if(listitem == 6) // Voltar
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunnin", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
}
}
return 1;
}
if(dialogid == DIALOGID+2) // Cores
{
if(response)
{
if(listitem == 0) // Preto
{
ChangeVehicleColor(car,0,0);
}
if(listitem == 1) // Branco
{
ChangeVehicleColor(car,1,1);
}
if(listitem == 2) // Azul Escuro
{
ChangeVehicleColor(car,425,425);
}
if(listitem == 3) // Azul Claro
{
ChangeVehicleColor(car,2,2);
}
if(listitem == 4) // Verde
{
ChangeVehicleColor(car,16,16);
}
if(listitem == 5) // Vermelho
{
ChangeVehicleColor(car,3,3);
}
if(listitem == 6) // Amarelo
{
ChangeVehicleColor(car,6,6);
}
if(listitem == 7) // Rosa
{
ChangeVehicleColor(car,146,146);
}
if(listitem == 8) // Voltar
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunning", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
}
}
return 1;
}
if(dialogid == DIALOGID+3) // Paintjobs
{
if(response)
{
if(listitem == 0) // Estilo 1
{
ChangeVehiclePaintjob(car,0);
}
if(listitem == 1) // Estilo 2
{
ChangeVehiclePaintjob(car,1);
}
if(listitem == 2) // Estilo 3
{
ChangeVehiclePaintjob(car,2);
}
if(listitem == 4) // Voltar
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunning", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
}
}
return 1;
}
return 0;
}
Assinar:
Postagens (Atom)