03.04.2011, 03:48
(
Последний раз редактировалось sciman001; 03.04.2011 в 16:54.
)
ok.. heres some code:
The 3 functions at the end are in an include i have. I get 0 errors, 0 warnings. The cars dont get tuned. WHAT TO DO ? THX!
pawn Код:
new mc1;
new mc2;
new mc3;
new mc4;
new mc5;
new mc6;
new mc7;
new mc8;
new mc9;
new mc10;
new mc11;
pawn Код:
mc1 = AddStaticVehicle(562,1254.1306,-2042.2975,59.2902,178.3877,7,7); // mc1
mc2 = AddStaticVehicle(562,734.6844,-1350.2135,13.1836,90.7878,13,13); // mc2
mc3 = AddStaticVehicle(562,-1380.2383,-60.9142,5.8340,359.8493,122,1); // mc3
mc4 = AddStaticVehicle(562,-1372.3546,-61.3774,5.8342,0.4200,122,1); // mc4
mc5 = AddStaticVehicle(562,-1363.7715,-61.5484,5.8340,359.0742,122,1); // mc5
mc6 = AddStaticVehicle(562,-1337.0522,-67.5196,5.8342,270.4945,122,1); // mc6
mc7 = AddStaticVehicle(562,-1336.8188,-79.5637,5.8341,269.1048,122,1); // mc7
mc8 = AddStaticVehicle(562,-1386.3369,-71.5868,5.8337,89.8659,122,1); // mc8
mc9 = AddStaticVehicle(562,-1369.8386,-88.1138,5.8341,267.1925,122,1); // mc9
mc10 = AddStaticVehicle(562,-1369.6626,-96.2473,5.8342,269.5889,122,1); // mc10
mc11 = AddStaticVehicle(562,-1371.1698,-120.6941,5.8340,270.9391,122,1); // mc11
pawn Код:
public OnVehicleSpawn(vehicleid)
{
new i = vehicleid;
if(i == mc1 || i == mc2 || i == mc3 || i == mc4 || i == mc4 || i == mc5 || i == mc6 || i == mc7 || i == mc8 || i == mc9 || i == mc10 || i == mc11)
{
ChangeVehiclePaintjob(vehicleid,0); // paint job
AddVehicleComponent(vehicleid, 1035); // roof
AddVehicleComponent(vehicleid, 1079); // rim
AddVehicleComponent(vehicleid, 1037); // exhaust
AddVehicleComponent(vehicleid, 1039); // side
AddVehicleComponent(vehicleid, 1172); // front
AddVehicleComponent(vehicleid, 1146); // Spoiler
AddVehicleComponent(vehicleid, NITROX10); // Spoiler
}
return 1;
}