25.01.2010, 02:25
Bueno acб les dejo otra forma para crear autos tuneados ya que como vi no entendieron la que estaba en otro lugar o era mбs complicada.. Pues primero definimos nuestro auto
Luego para recomendaciуn de bugs o algъn pequeсo error al cerrar el gamemode .. osea OnGameModeExit... Destruiremos el Auto tuneado con esto basta..
Luego creamos el auto.. debajo de OnGameModeInit
Diran pero que son cada uno de esos nъmeros?.. 562 = Id Auto 1881.71 = 'X' 1070.41 = 'Y' 10.47 = 'Z' 269.3925 = Angulo 1,1 = Color por default antes de tunear 5000000 = Tiempo de respawneo de auto
Luego agregamos los componente ;B
Ponemos nuestro timer para tunear los autos debajo de OnVehicleSpawn
Id's Componentes
Espero que les ayude algo.. Los ID's de los componentes me dio lala buscarlo en la Wiki asн que lo saque de un .txt que tenia en la PC saludos !
pawn Код:
new Elegy4;
pawn Код:
public OnGameModeExit()
{
DestroyVehicle(Elegy4);
return 1;
}
pawn Код:
Elegy4 = CreateVehicle(562,1881.71,1070.41,10.47,269.3925,1,1,5000000);
Luego agregamos los componente ;B
pawn Код:
forward TunearAuto();
public TunearAuto()
{
AddVehicleComponent(Elegy4,1034);
AddVehicleComponent(Elegy4,1036);
AddVehicleComponent(Elegy4,1038);
AddVehicleComponent(Elegy4,1040);
AddVehicleComponent(Elegy4,1146);
AddVehicleComponent(Elegy4,1149);
AddVehicleComponent(Elegy4,1171);
AddVehicleComponent(Elegy4,1087);
AddVehicleComponent(Elegy4,1081);
AddVehicleComponent(Elegy4,1010);
ChangeVehiclePaintjob(Elegy4,2); // Cambiamos pintura
return 1;
}
pawn Код:
public OnVehicleSpawn(vehicleid)
{
SetTimer("TunearAuto",1000,0);
}
Код:
1000, Generic Spoiler 1001, Generic Spoiler 1002, Generic Spoiler 1003, Generic Spoiler 1004, Bonnet Scoop? 1005, Bonnet Scoop? 1006, Generic Vehicle Roof-Scoop 1007, Generic Vehicle Side Skirt (L) 1008, Nitro - 5 Shots 1009, Nitro - 2 Shots 1010, Nitro - 10 Shots 1011, Bonnet Scoop? 1012, Bonnet Scoop? 1013, Round Fog Lamps 1014, Generic Spoiler (Large?) 1015, Generic Spoiler (Large?) 1016, Generic Spoiler 1017, Generic Vehicle Side Skirt ® 1018, Curved Twin Cylinder Generic Exhaust 1019, Twin Cylinder Generic Exhaust 1020, Large Generic Exhaust 1021, Medium Generic Exhaust 1022, Small Generic Exhaust? 1023, Generic Spoiler 1024, Square Fog Lamps 1025, Off Road Wheel. 1026, Sultan Side Skirt Type 1 (L) 1027, Sultan Side Skirt Type 1 ® 1028, Sultan Exhaust Type 1 1029, Sultan Exhaust Type 2 1030, Sultan Side Skirt Type 2 ® 1031, Sultan Side Skirt Type 1 (L) 1032, Sultan Roof Scoop type 1 1033, Sultan Roof Scoop type 2 1034, Elegy Ehaust type 1 1035, Elegy Roof Scoop Type 1 1036, Elegy Side Skirt type 1 (L) 1037, Elegy Exhaust Type 2 1038, Elegy Roof Scoop type 2 1039, Elegy Side Skirt type 2 (L) 1040, Elegy Side Skirt type 1 ® 1041, Elegy Side Skirt type 2 ® 1042, Broadway Side Skirt (L) 1043, Broadway Exhaust type 2 1044, Broadway Exhahst type 1 1045, Flash Exhaust type 2 1046, Flash Exhaust type 1 1047, Flash Side Skirt type 1 (L) 1048, Flash Side Skirt type 2 (L) 1049, Flash Spoiler type 1 1050, Flash Spoiler type 2 1051, Flash Side Skirt type 1 ® 1052, Flash Side Skirt type 2 ® 1053, Flash Roof Scoop type 2 1054, Flash Roof Scoop type 1 1055, Stratum Roof Scoop type 1 1056, Stratum Side Skirt type 1 (L) 1057, Stratum Side Skirt type 2 (L) 1058, Stratum Spoiler type 1 1059, Stratum Exhaust type 2 1060, Stratum Spoiler type 2 1061, Stratum Roof Scoop type 2 1062, Stratum Side Skirt type 1 ® 1063, Stratum Side Skirt type 2 ® 1064, Stratum Exhaust type 1 1065, Jester Exhaust type 1 1066, Jester Exhaust type 2 1067, Jester Roof Scoop type 1 1068, Jester Roof Scoop type 2 1069, Jester Side Skirt type 1 (L) 1070, Jester Side Skirt type 2 (L) 1071, Jester Side Skirt type 1 ® 1072, Jester Side Skirt type 2 ® 1073, Wheel Arch Angels Wheel type 6 1074, Wheel Arch Angels Wheel type 3 1075, Wheel Arch Angels Wheel type 2 1076, Loco' Low Co. Wheel type 4 1077, Loco' Low Co. Wheel type 1 1078, Loco' Low Co. Wheel type 3 1079, Wheel Arch Angels Wheel type 1 1080, Wheel Arch Angels Wheel type 5 1081, Wheel Arch Angels Wheel type 4 1082, Transfender Wheel type 1 1083, Loco' Low Co. Wheel type 2 1084, Loco' Low Co. Wheel type 5 1085, Transfender Wheel type 2 1086, Stereo Bass Boost 1087, Hydralics 1088, Uranus Roof Scoop 1 1089, Uranus Exhaust Type 1 1090, Uranus Side Skirt type 1 (L) 1091, Uranus Roof Scoop 2 1092, Uranus Exhaust Type 2 1093, Uranus Side Skirt type 2 (L) 1094, Uranus Side Skirt type 1 ® 1095, Uranus Side Skirt type 2 ® 1096, Transfender Wheel type 3 1097, Transfender Wheel type 4 1098, Transfender Wheel type 5 1099, Broadway Side Skirt ® 1100, Remington Misc. Part 1 1101, Remington Side Skirt type 1 ® 1102, Savanna Side Skirt ® 1103, Blade Roof type 2 1104, Blade Exhaust type 1 1105, Blade Exhaust type 2 1106, Remington Side Skirt type 2 (L) 1107, Blade Side Skirt ® 1108, Blade Side Skirt (L) 1109, Slamvan Rear Bullbars type 1 1110, Slamvan Rear Bullbars type 2 1111, bnt_lr_slv1, slamvan, Huh? (Something to do with the bonnet?, not used.) 1112, bnt_lr_slv2, slamvan, Huh? (Something to do with the bonnet?, not used.) 1113, Slamvan Exhaust type 1 1114, Slamvan Exhaust type 2 1115, Slamvan Front Bullbars type 1 1116, Slamvan Front Bullbars type 2 1117, Slamvan Front Bumper 1118, Slamvan Side Skirt type 1 (L) 1119, Slamvan Side Skirt type 2 (L) 1120, Slamvan Side Skirt type 1 ® 1121, Slamvan Side Skirt type 2 ® 1122, Remington Side Skirt type 1 (L) 1123, Remington Misc. Part 2 1124, Remington Side Skirt type 2 ® 1125, Remington Misc. Part 3 1126, Remington Exhaust type 1 1127, Remington Exhaust type 2 1128, Blade Roof Type 1 1129, Savanna Exhaust type 1 1130, Savanna Roof type 1 1131, Savanna Roof type 2 1132, Savanna Exhaust type 2 1133, Savanna Side Skirt (L) 1134, Tornado Side Skirt (L) 1135, Tornado Exhaust type 2 1136, Tornado Exhaust type 1 1137, Tornado Side Skirt ® 1138, Sultan Spoiler type 1 1139, Sultan Spoiler type 2 1140, Sultan Rear Bumper type 2 1141, Sultan Rear Bumper type 1 1142, Oval Bonnet Vents ® 1143, Oval Bonnet Vents (L) 1144, Square Bonnet Vents ® 1145, Square Bonnet Vents (L) 1146, Elegy Spoiler type 2 1147, Elegy Spoiler type 1 1148, Elegy Rear Bumper type 2 1149, Elegy Rear Bumper type 1 1150, Flash Rear Bumper type 1 1151, Flash Rear Bumper type 2 1152, Flash Front Bumper type 2 1153, Flash Front Bumper type 1 1154, Stratum Rear Bumper type 1 1155, Stratum Front Bumper type 1 1156, Stratum Rear Bumper type 2 1157, Stratum Front Bumper type 2 1158, Jester Spoiler type 2 1159, Jester Rear Bumper type 1 1160, Jester Front bumper type 1 1161, Jester Rear bumper type 2 1162, Jester Spoiler type 1 1163, Uranus Spoiler type 2 1164, Uranus Spoiler type 1 1165, Uranus Front Bumper type 2 1166, Uranus Rear Bumper type 2 1167, Uranus Front Bumper type 1 1168, Uranus Rear Bumper type 1 1169, Sultan Front Bumper type 1 1170, Sultan Front Bumper type 2 1171, Elegy Front Bumper type 1 1172, Elegy Front Bumper type 2 1173, Jester Front Bumper type 2 1174, Broadway Front Bumper type 1 1175, Broadway Front Bumper type 2 1176, Broadway Rear Bumper type 1 1177, Broadway Rear Bumper type 2 1178, Remington Rear Bumper type 2 1179, Remington Front Bumper type 1 1180, Remington Rear Bumper type 2 1181, Blade Front Bumper type 2 1182, Blade Front Bumper type 1 1183, Blade Rear Bumper type 2 1184, Blade Rear Bumper type 1 1185, Remington Front Bumper type 2 1186, Savanna Rear Bumper type 2 1187, Savanna Rear Bumper type 1 1188, Savanna Front Bumper type 2 1189, Savanna Front Bumper type 1 1190, Tornado Rear Bumper type 1 1191, Tornado Rear Bumper type 2 1192, Tornado Front Bumper type 1 1193, Tornado Front Bumper type 2