Tunning e salvamento
Autor: [PP]KIZANO | Publicado: 2011-07-22T11:07:00-07:00

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 ]

/* CRÉDITOS A XERETA PELO /TUNAR
&nbsp; &nbsp;CRÉDITOS PARA O SALVAMENTO: DESCONHECIDO
&nbsp; &nbsp;SE ALGUEM SOUBER POR FAVOR POSTE LÁ NO FÓRUM */


#include &lt;a_samp&gt;
#include &lt;dini&gt;

#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] = {
&nbsp; &nbsp; {1000},
&nbsp; &nbsp; {1001},
&nbsp; &nbsp; {1002},
&nbsp; &nbsp; {1003},
&nbsp; &nbsp; {1014},
&nbsp; &nbsp; {1015},
&nbsp; &nbsp; {1016},
&nbsp; &nbsp; {1023},
&nbsp; &nbsp; {1058},
&nbsp; &nbsp; {1060},
&nbsp; &nbsp; {1049},
&nbsp; &nbsp; {1050},
&nbsp; &nbsp; {1138},
&nbsp; &nbsp; {1139},
&nbsp; &nbsp; {1146},
&nbsp; &nbsp; {1147},
&nbsp; &nbsp; {1158},
&nbsp; &nbsp; {1162},
&nbsp; &nbsp; {1163},
&nbsp; &nbsp; {1164}
};

new nitro[3][0] = {
&nbsp; &nbsp; {1008},
&nbsp; &nbsp; {1009},
&nbsp; &nbsp; {1010}
};

new fbumper[23][0] = {
&nbsp; &nbsp; {1117},
&nbsp; &nbsp; {1152},
&nbsp; &nbsp; {1153},
&nbsp; &nbsp; {1155},
&nbsp; &nbsp; {1157},
&nbsp; &nbsp; {1160},
&nbsp; &nbsp; {1165},
&nbsp; &nbsp; {1167},
&nbsp; &nbsp; {1169},
&nbsp; &nbsp; {1170},
&nbsp; &nbsp; {1171},
&nbsp; &nbsp; {1172},
&nbsp; &nbsp; {1173},
&nbsp; &nbsp; {1174},
&nbsp; &nbsp; {1175},
&nbsp; &nbsp; {1179},
&nbsp; &nbsp; {1181},
&nbsp; &nbsp; {1182},
&nbsp; &nbsp; {1185},
&nbsp; &nbsp; {1188},
&nbsp; &nbsp; {1189},
&nbsp; &nbsp; {1192},
&nbsp; &nbsp; {1193}
};

new rbumper[22][0] = {
&nbsp; &nbsp; {1140},
&nbsp; &nbsp; {1141},
&nbsp; &nbsp; {1148},
&nbsp; &nbsp; {1149},
&nbsp; &nbsp; {1150},
&nbsp; &nbsp; {1151},
&nbsp; &nbsp; {1154},
&nbsp; &nbsp; {1156},
&nbsp; &nbsp; {1159},
&nbsp; &nbsp; {1161},
&nbsp; &nbsp; {1166},
&nbsp; &nbsp; {1168},
&nbsp; &nbsp; {1176},
&nbsp; &nbsp; {1177},
&nbsp; &nbsp; {1178},
&nbsp; &nbsp; {1180},
&nbsp; &nbsp; {1183},
&nbsp; &nbsp; {1184},
&nbsp; &nbsp; {1186},
&nbsp; &nbsp; {1187},
&nbsp; &nbsp; {1190},
&nbsp; &nbsp; {1191}
};

new exhaust[28][0] = {
&nbsp; &nbsp; {1018},
&nbsp; &nbsp; {1019},
&nbsp; &nbsp; {1020},
&nbsp; &nbsp; {1021},
&nbsp; &nbsp; {1022},
&nbsp; &nbsp; {1028},
&nbsp; &nbsp; {1029},
&nbsp; &nbsp; {1037},
&nbsp; &nbsp; {1043},
&nbsp; &nbsp; {1044},
&nbsp; &nbsp; {1045},
&nbsp; &nbsp; {1046},
&nbsp; &nbsp; {1059},
&nbsp; &nbsp; {1064},
&nbsp; &nbsp; {1065},
&nbsp; &nbsp; {1066},
&nbsp; &nbsp; {1089},
&nbsp; &nbsp; {1092},
&nbsp; &nbsp; {1104},
&nbsp; &nbsp; {1105},
&nbsp; &nbsp; {1113},
&nbsp; &nbsp; {1114},
&nbsp; &nbsp; {1126},
&nbsp; &nbsp; {1127},
&nbsp; &nbsp; {1129},
&nbsp; &nbsp; {1132},
&nbsp; &nbsp; {1135},
&nbsp; &nbsp; {1136}
};

new bventr[2][0] = {
&nbsp; &nbsp; {1042},
&nbsp; &nbsp; {1044}
};

new bventl[2][0] = {
&nbsp; &nbsp; {1043},
&nbsp; &nbsp; {1045}
};

new bscoop[4][0] = {
&nbsp; &nbsp; {1004},
&nbsp; &nbsp; {1005},
&nbsp; &nbsp; {1011},
&nbsp; &nbsp; {1012}
};

new rscoop[13][0] = {
&nbsp; &nbsp; {1006},
&nbsp; &nbsp; {1032},
&nbsp; &nbsp; {1033},
&nbsp; &nbsp; {1035},
&nbsp; &nbsp; {1038},
&nbsp; &nbsp; {1053},
&nbsp; &nbsp; {1054},
&nbsp; &nbsp; {1055},
&nbsp; &nbsp; {1061},
&nbsp; &nbsp; {1067},
&nbsp; &nbsp; {1068},
&nbsp; &nbsp; {1088},
&nbsp; &nbsp; {1091}
};

new lskirt[21][0] = {
&nbsp; &nbsp; {1007},
&nbsp; &nbsp; {1026},
&nbsp; &nbsp; {1031},
&nbsp; &nbsp; {1036},
&nbsp; &nbsp; {1039},
&nbsp; &nbsp; {1042},
&nbsp; &nbsp; {1047},
&nbsp; &nbsp; {1048},
&nbsp; &nbsp; {1056},
&nbsp; &nbsp; {1057},
&nbsp; &nbsp; {1069},
&nbsp; &nbsp; {1070},
&nbsp; &nbsp; {1090},
&nbsp; &nbsp; {1093},
&nbsp; &nbsp; {1106},
&nbsp; &nbsp; {1108},
&nbsp; &nbsp; {1118},
&nbsp; &nbsp; {1119},
&nbsp; &nbsp; {1133},
&nbsp; &nbsp; {1122},
&nbsp; &nbsp; {1134}
};

new rskirt[21][0] = {
&nbsp; &nbsp; {1017},
&nbsp; &nbsp; {1027},
&nbsp; &nbsp; {1030},
&nbsp; &nbsp; {1040},
&nbsp; &nbsp; {1041},
&nbsp; &nbsp; {1051},
&nbsp; &nbsp; {1052},
&nbsp; &nbsp; {1062},
&nbsp; &nbsp; {1063},
&nbsp; &nbsp; {1071},
&nbsp; &nbsp; {1072},
&nbsp; &nbsp; {1094},
&nbsp; &nbsp; {1095},
&nbsp; &nbsp; {1099},
&nbsp; &nbsp; {1101},
&nbsp; &nbsp; {1102},
&nbsp; &nbsp; {1107},
&nbsp; &nbsp; {1120},
&nbsp; &nbsp; {1121},
&nbsp; &nbsp; {1124},
&nbsp; &nbsp; {1137}
};

new hydraulics[1][0] = {
&nbsp; &nbsp; {1087}
};

new base[1][0] = {
&nbsp; &nbsp; {1086}
};

new rbbars[2][0] = {
&nbsp; &nbsp; {1109},
&nbsp; &nbsp; {1110}
};

new fbbars[2][0] = {
&nbsp; &nbsp; {1115},
&nbsp; &nbsp; {1116}
};

new wheels[17][0] = {
&nbsp; &nbsp; {1025},
&nbsp; &nbsp; {1073},
&nbsp; &nbsp; {1074},
&nbsp; &nbsp; {1075},
&nbsp; &nbsp; {1076},
&nbsp; &nbsp; {1077},
&nbsp; &nbsp; {1078},
&nbsp; &nbsp; {1079},
&nbsp; &nbsp; {1080},
&nbsp; &nbsp; {1081},
&nbsp; &nbsp; {1082},
&nbsp; &nbsp; {1083},
&nbsp; &nbsp; {1084},
&nbsp; &nbsp; {1085},
&nbsp; &nbsp; {1096},
&nbsp; &nbsp; {1097},
&nbsp; &nbsp; {1098}
};

new lights[2][0] = {
&nbsp; &nbsp; {1013},
&nbsp; &nbsp; {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)
{
&nbsp; &nbsp; SetTimer("VehicleSpawn",2000,0);
}

public OnVehicleDeath(vehicleid, killerid)
{
&nbsp; &nbsp; SaveModsForAll(vehicleid);
&nbsp; &nbsp; return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
&nbsp; &nbsp; if (strcmp("/tunar", cmdtext, true, 10) == 0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunning", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; return 1;
&nbsp; &nbsp; }
&nbsp; &nbsp; return 1;
}


public OnPlayerExitVehicle(playerid, vehicleid)
{
&nbsp; &nbsp; SaveModsForAll(vehicleid);
&nbsp; &nbsp; return 1;
}

public TuneThisCar(vehicleid)
{
&nbsp; &nbsp; if(TuneCar[vehicleid][mod1]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod1]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod2]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod2]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod3]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod3]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod4]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod4]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod5]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod5]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod6]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod6]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod7]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod7]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod8]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod8]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod9]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod9]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod10]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod10]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod11]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod11]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod12]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod12]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod13]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod13]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod14]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod14]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod15]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod15]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod16]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod16]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][mod17]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod17]); }
&nbsp; &nbsp; if(TuneCar[vehicleid][colorA]!=0 || TuneCar[vehicleid][colorB]!=0)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(vehicleid,TuneCar[vehicleid][colorA],TuneCar[vehicleid][colorB]);
&nbsp; &nbsp; }
&nbsp; &nbsp; if(TuneCar[vehicleid][paintjob]!=0) { ChangeVehiclePaintjob(vehicleid,TuneCar[vehicleid][paintjob]); }
&nbsp; &nbsp; return 1;
}

InitComponents(componentid)
{
&nbsp; &nbsp; new i;
&nbsp; &nbsp; for(i=0; i&lt;20; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(spoiler[i][0]==componentid) { return 1; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;3; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(nitro[i][0]==componentid) { return 2; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;23; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(fbumper[i][0]==componentid) { return 3; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;22; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(rbumper[i][0]==componentid) { return 4; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;28; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(exhaust[i][0]==componentid) { return 5; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;2; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(bventr[i][0]==componentid) { return 6; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;2; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(bventl[i][0]==componentid) { return 7; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;4; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(bscoop[i][0]==componentid) { return 8; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;13; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(rscoop[i][0]==componentid) { return 9; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;21; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(lskirt[i][0]==componentid) { return 10; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;21; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(rskirt[i][0]==componentid) { return 11; }
&nbsp; &nbsp; }
&nbsp; &nbsp; if(hydraulics[0][0]==componentid) { return 12; }
&nbsp; &nbsp; if(base[0][0]==componentid) { return 13; }
&nbsp; &nbsp; for(i=0; i&lt;2; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(rbbars[i][0]==componentid) { return 14; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;2; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(fbbars[i][0]==componentid) { return 15; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;17; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(wheels[i][0]==componentid) { return 16; }
&nbsp; &nbsp; }
&nbsp; &nbsp; for(i=0; i&lt;2; i++)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(lights[i][0]==componentid) { return 17; }
&nbsp; &nbsp; }
&nbsp; &nbsp; return 0;
}

public OnVehicleMod(playerid,vehicleid,componentid)
{
&nbsp; &nbsp; new Varz=InitComponents(componentid);
&nbsp; &nbsp; switch (Varz)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; case 1: { TuneCar[vehicleid][mod1]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 2: { TuneCar[vehicleid][mod2]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 3: { TuneCar[vehicleid][mod3]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 4: { TuneCar[vehicleid][mod4]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 5: { TuneCar[vehicleid][mod5]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 6: { TuneCar[vehicleid][mod6]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 7: { TuneCar[vehicleid][mod7]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 8: { TuneCar[vehicleid][mod8]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 9: { TuneCar[vehicleid][mod9]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 10: { TuneCar[vehicleid][mod10]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 11: { TuneCar[vehicleid][mod11]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 12: { TuneCar[vehicleid][mod12]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 13: { TuneCar[vehicleid][mod13]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 14: { TuneCar[vehicleid][mod14]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 15: { TuneCar[vehicleid][mod15]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 16: { TuneCar[vehicleid][mod16]=componentid; }
&nbsp; &nbsp; &nbsp; &nbsp; case 17: { TuneCar[vehicleid][mod17]=componentid; }
&nbsp; &nbsp; }
&nbsp; &nbsp; printf("Componente adicionado: %d",componentid);
&nbsp; &nbsp; SaveModsForAll(vehicleid);
&nbsp; &nbsp; return 1;
}

public OnVehiclePaintjob(playerid,vehicleid, paintjobid)
{
&nbsp; &nbsp; TuneCar[vehicleid][paintjob]=paintjobid;
&nbsp; &nbsp; return 1;
}

public LoadModsForAll(vehicleid)
{
&nbsp; &nbsp; new formatLD[256];
&nbsp; &nbsp; format(formatLD,sizeof(formatLD),"voituresmods/%d.mods",vehicleid);
&nbsp; &nbsp; if(dini_Exists(formatLD))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod1] = dini_Int(formatLD, "mod1");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod2] = dini_Int(formatLD, "mod2");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod3] = dini_Int(formatLD, "mod3");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod4] = dini_Int(formatLD, "mod4");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod5] = dini_Int(formatLD, "mod5");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod6] = dini_Int(formatLD, "mod6");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod7] = dini_Int(formatLD, "mod7");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod8] = dini_Int(formatLD, "mod8");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod9] = dini_Int(formatLD, "mod9");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod10] = dini_Int(formatLD, "mod10");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod11] = dini_Int(formatLD, "mod11");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod12] = dini_Int(formatLD, "mod12");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod13] = dini_Int(formatLD, "mod13");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod14] = dini_Int(formatLD, "mod14");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod15] = dini_Int(formatLD, "mod15");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod16] = dini_Int(formatLD, "mod16");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][mod17] = dini_Int(formatLD, "mod17");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][paintjob] = dini_Int(formatLD, "paintjob");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][colorA] = dini_Int(formatLD, "color1");
&nbsp; &nbsp; &nbsp; &nbsp; TuneCar[vehicleid][colorB] = dini_Int(formatLD, "color2");
&nbsp; &nbsp; }
&nbsp; &nbsp; else
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; dini_Create(formatLD);
&nbsp; &nbsp; }
&nbsp; &nbsp; return 0;
}

public SaveModsForAll(vehicleid)
{
&nbsp; &nbsp; new formatLD[256];
&nbsp; &nbsp; format(formatLD,sizeof(formatLD),"voituresmods/%d.mods",vehicleid);
&nbsp; &nbsp; if(dini_Exists(formatLD))
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod15",TuneCar[vehicleid][mod15]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod16",TuneCar[vehicleid][mod16]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod17",TuneCar[vehicleid][mod17]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]);
&nbsp; &nbsp; }
&nbsp; &nbsp; else
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; dini_Create(formatLD);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod15",TuneCar[vehicleid][mod15]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod16",TuneCar[vehicleid][mod16]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"mod17",TuneCar[vehicleid][mod17]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]);
&nbsp; &nbsp; &nbsp; &nbsp; dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]);
&nbsp; &nbsp; }
&nbsp; &nbsp; return 0;
}

public OnVehicleRespray(playerid,vehicleid, color1, color2)
{
&nbsp; &nbsp; TuneCar[vehicleid][colorA] = color1;
&nbsp; &nbsp; TuneCar[vehicleid][colorB] = color2;
&nbsp; &nbsp; return 1;
}

public VehicleSpawn(vehicleid)
{
&nbsp; &nbsp; TuneThisCar(vehicleid);
&nbsp; &nbsp; LoadModsForAll(vehicleid);
&nbsp; &nbsp; return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
&nbsp; &nbsp; new car;
&nbsp; &nbsp; car = GetPlayerVehicleID(playerid);
&nbsp; &nbsp; if(dialogid == DIALOGID) // Menu
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(response)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 0) // Rodas
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Rodas", "Estilo 1 \nEstilo 2 \nEstilo 3 \nEstilo 4 \nEstilo 5 \nEstilo 6 \nVoltar", "Ok", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 1) // Cores
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Cores", "Preto \nBranco \nAzul Escuro \nAzul Claro \nVerde \nVermelho \nAmarelo \nRosa \nVoltar", "Pintar!", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 2) // Paintjobs
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Paintjobs", "Estilo 1 \nEstilo 2 \nEstilo 3 \nVoltar", "Pintar!", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 3) // Nitro
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 4) // Suspensão
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1087);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 5) // AutoTuning
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new idcarro;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; idcarro = GetPlayerVehicleID(playerid);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1046);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1171);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1149);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1035);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1147);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1036);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1040);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(idcarro, 0, 0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1028);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1169);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1141);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1032);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1138);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1026);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1027);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1046);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1153);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1150);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1054);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1049);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1047);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1051);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1065);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1160);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1159);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1067);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1162);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1069);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1071);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1064);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1155);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1154);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1055);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1158);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1056);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1062);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1089);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1166);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1168);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1088);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1164);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1090);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1094);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1044);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1174);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1176);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1042);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1099);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1126);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1179);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1180);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1122);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1101);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1125);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1123);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1100);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1104);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1182);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1184);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1108);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1107);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1129);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1189);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1187);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1102);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1133);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro, 2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1087);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1081);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1139);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1087);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1018);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1013);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1081);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1086);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1086);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1139);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1081);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1087);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1012);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1013);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1042);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1043);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1018);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1006);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1007);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1017);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(idcarro,2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1191);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1193);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1018);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1081);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1087);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1134);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1137);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,1010);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,rodawire);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(idcarro,suspensao);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return 1;
&nbsp; &nbsp; }

&nbsp; &nbsp; if(dialogid == DIALOGID+1) // Rodas
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(response)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 0) // Estilo 1
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1084);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 1) // Estilo 2
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1073);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 2) // Estilo 3
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1075);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 3) // Estilo 4
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1077);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 4) // Estilo 5
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1079);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 5) // Estilo 6
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddVehicleComponent(car,1080);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 6) // Voltar
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunnin", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return 1;
&nbsp; &nbsp; }

&nbsp; &nbsp; if(dialogid == DIALOGID+2) // Cores
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(response)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 0) // Preto
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,0,0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 1) // Branco
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,1,1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 2) // Azul Escuro
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,425,425);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 3) // Azul Claro
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,2,2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 4) // Verde
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,16,16);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 5) // Vermelho
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,3,3);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 6) // Amarelo
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,6,6);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 7) // Rosa
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehicleColor(car,146,146);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 8) // Voltar
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunning", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return 1;
&nbsp; &nbsp; }

&nbsp; &nbsp; if(dialogid == DIALOGID+3) // Paintjobs
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if(response)
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 0) // Estilo 1
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(car,0);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 1) // Estilo 2
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(car,1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 2) // Estilo 3
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeVehiclePaintjob(car,2);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(listitem == 4) // Voltar
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tunning", "Rodas\nCores\nPaintjobs\nNitro\nSuspensão\nAutoTuning", "Ok", "Cancelar");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return 1;
&nbsp; &nbsp; }
&nbsp; &nbsp; return 0;
&nbsp;}