OtaconEvil

[FUNCTION] Array of vehicle components By OTACON

Jul 20th, 2014
423
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple FUNCION esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FUNCION en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *              Publicación de este FUNCION sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FUNCTION is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FUNCTION in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                    FULLY spaces Theft Credit or
  33.     *             Publication of this MAP without my permission.
  34. */
  35.  
  36. //FUNCTION...
  37.  
  38. static const VehicleColoursTableRGBA[] = {
  39.     // The existing colours from San Andreas
  40.     0x000000FF, 0xF5F5F5FF, 0x2A77A1FF, 0x840410FF, 0x263739FF, 0x86446EFF, 0xD78E10FF, 0x4C75B7FF, 0xBDBEC6FF, 0x5E7072FF,
  41.     0x46597AFF, 0x656A79FF, 0x5D7E8DFF, 0x58595AFF, 0xD6DAD6FF, 0x9CA1A3FF, 0x335F3FFF, 0x730E1AFF, 0x7B0A2AFF, 0x9F9D94FF,
  42.     0x3B4E78FF, 0x732E3EFF, 0x691E3BFF, 0x96918CFF, 0x515459FF, 0x3F3E45FF, 0xA5A9A7FF, 0x635C5AFF, 0x3D4A68FF, 0x979592FF,
  43.     0x421F21FF, 0x5F272BFF, 0x8494ABFF, 0x767B7CFF, 0x646464FF, 0x5A5752FF, 0x252527FF, 0x2D3A35FF, 0x93A396FF, 0x6D7A88FF,
  44.     0x221918FF, 0x6F675FFF, 0x7C1C2AFF, 0x5F0A15FF, 0x193826FF, 0x5D1B20FF, 0x9D9872FF, 0x7A7560FF, 0x989586FF, 0xADB0B0FF,
  45.     0x848988FF, 0x304F45FF, 0x4D6268FF, 0x162248FF, 0x272F4BFF, 0x7D6256FF, 0x9EA4ABFF, 0x9C8D71FF, 0x6D1822FF, 0x4E6881FF,
  46.     0x9C9C98FF, 0x917347FF, 0x661C26FF, 0x949D9FFF, 0xA4A7A5FF, 0x8E8C46FF, 0x341A1EFF, 0x6A7A8CFF, 0xAAAD8EFF, 0xAB988FFF,
  47.     0x851F2EFF, 0x6F8297FF, 0x585853FF, 0x9AA790FF, 0x601A23FF, 0x20202CFF, 0xA4A096FF, 0xAA9D84FF, 0x78222BFF, 0x0E316DFF,
  48.     0x722A3FFF, 0x7B715EFF, 0x741D28FF, 0x1E2E32FF, 0x4D322FFF, 0x7C1B44FF, 0x2E5B20FF, 0x395A83FF, 0x6D2837FF, 0xA7A28FFF,
  49.     0xAFB1B1FF, 0x364155FF, 0x6D6C6EFF, 0x0F6A89FF, 0x204B6BFF, 0x2B3E57FF, 0x9B9F9DFF, 0x6C8495FF, 0x4D8495FF, 0xAE9B7FFF,
  50.     0x406C8FFF, 0x1F253BFF, 0xAB9276FF, 0x134573FF, 0x96816CFF, 0x64686AFF, 0x105082FF, 0xA19983FF, 0x385694FF, 0x525661FF,
  51.     0x7F6956FF, 0x8C929AFF, 0x596E87FF, 0x473532FF, 0x44624FFF, 0x730A27FF, 0x223457FF, 0x640D1BFF, 0xA3ADC6FF, 0x695853FF,
  52.     0x9B8B80FF, 0x620B1CFF, 0x5B5D5EFF, 0x624428FF, 0x731827FF, 0x1B376DFF, 0xEC6AAEFF, 0x000000FF,
  53.     // SA-MP extended colours (0.3x)
  54.     0x177517FF, 0x210606FF, 0x125478FF, 0x452A0DFF, 0x571E1EFF, 0x010701FF, 0x25225AFF, 0x2C89AAFF, 0x8A4DBDFF, 0x35963AFF,
  55.     0xB7B7B7FF, 0x464C8DFF, 0x84888CFF, 0x817867FF, 0x817A26FF, 0x6A506FFF, 0x583E6FFF, 0x8CB972FF, 0x824F78FF, 0x6D276AFF,
  56.     0x1E1D13FF, 0x1E1306FF, 0x1F2518FF, 0x2C4531FF, 0x1E4C99FF, 0x2E5F43FF, 0x1E9948FF, 0x1E9999FF, 0x999976FF, 0x7C8499FF,
  57.     0x992E1EFF, 0x2C1E08FF, 0x142407FF, 0x993E4DFF, 0x1E4C99FF, 0x198181FF, 0x1A292AFF, 0x16616FFF, 0x1B6687FF, 0x6C3F99FF,
  58.     0x481A0EFF, 0x7A7399FF, 0x746D99FF, 0x53387EFF, 0x222407FF, 0x3E190CFF, 0x46210EFF, 0x991E1EFF, 0x8D4C8DFF, 0x805B80FF,
  59.     0x7B3E7EFF, 0x3C1737FF, 0x733517FF, 0x781818FF, 0x83341AFF, 0x8E2F1CFF, 0x7E3E53FF, 0x7C6D7CFF, 0x020C02FF, 0x072407FF,
  60.     0x163012FF, 0x16301BFF, 0x642B4FFF, 0x368452FF, 0x999590FF, 0x818D96FF, 0x99991EFF, 0x7F994CFF, 0x839292FF, 0x788222FF,
  61.     0x2B3C99FF, 0x3A3A0BFF, 0x8A794EFF, 0x0E1F49FF, 0x15371CFF, 0x15273AFF, 0x375775FF, 0x060820FF, 0x071326FF, 0x20394BFF,
  62.     0x2C5089FF, 0x15426CFF, 0x103250FF, 0x241663FF, 0x692015FF, 0x8C8D94FF, 0x516013FF, 0x090F02FF, 0x8C573AFF, 0x52888EFF,
  63.     0x995C52FF, 0x99581EFF, 0x993A63FF, 0x998F4EFF, 0x99311EFF, 0x0D1842FF, 0x521E1EFF, 0x42420DFF, 0x4C991EFF, 0x082A1DFF,
  64.     0x96821DFF, 0x197F19FF, 0x3B141FFF, 0x745217FF, 0x893F8DFF, 0x7E1A6CFF, 0x0B370BFF, 0x27450DFF, 0x071F24FF, 0x784573FF,
  65.     0x8A653AFF, 0x732617FF, 0x319490FF, 0x56941DFF, 0x59163DFF, 0x1B8A2FFF, 0x38160BFF, 0x041804FF, 0x355D8EFF, 0x2E3F5BFF,
  66.     0x561A28FF, 0x4E0E27FF, 0x706C67FF, 0x3B3E42FF, 0x2E2D33FF, 0x7B7E7DFF, 0x4A4442FF, 0x28344EFF };
  67.  
  68. enum paintjobs{
  69. IDSpaintjobs,
  70. DATApaintjobs[20], };
  71. static const PaintjobsTunnings[3][paintjobs]={
  72.     { (0), "tipo 1" },
  73.     { (1), "tipo 2" },
  74.     { (2), "tipo 3" } };
  75.  
  76. enum neones{
  77. IDSneones,
  78. DATAneones[20], };
  79. static const NeonesTunnings[6][neones]={
  80.     { (18647), "rojo" },/*0*/
  81.     { (18648), "azul" },/*1*/
  82.     { (18649), "verde" },/*2*/
  83.     { (18650), "amarillo" },/*3*/
  84.     { (18651), "rosado" },/*4*/
  85.     { (18652), "blanco" } };/*5*/
  86.  
  87. enum tunning{
  88. IDSComponentes,
  89. DATAComponentes[25], };
  90. static const ComponentesTunnings[143][tunning]={
  91.     /*alerón*/
  92.     { (1000), "Pro" },/*0*/
  93.     { (1001), "Win" },/*1*/
  94.     { (1002), "Drag" },/*2*/
  95.     { (1003), "Alpha" },/*3*/
  96.     { (1014), "Champ" },/*4*/
  97.     { (1015), "Race" },/*5*/
  98.     { (1016), "Worx" },/*6*/
  99.     { (1023), "Fury" },/*7*/
  100.     { (1049), "Alien" },/*8*/
  101.     { (1050), "X-Flow" },/*9*/
  102.     { (1058), "Alien" },/*10*/
  103.     { (1060), "X-Flow" },/*11*/
  104.     { (1138), "Alien" },/*12*/
  105.     { (1139), "X-Flow" },/*13*/
  106.     { (1146), "X-Flow" },/*14*/
  107.     { (1147), "Alien" },/*15*/
  108.     { (1158), "X-Flow" },/*16*/
  109.     { (1162), "Alien" },/*17*/
  110.     { (1163), "X-Flow" },/*18*/
  111.     { (1164), "Alien" },/*19*/
  112.  
  113.     /*stereo*/
  114.     { (1086), "station music" },/*20*/
  115.  
  116.     /*hidráulica*/
  117.     { (1087), "hidráulic 360" },/*21*/
  118.  
  119.     /*nitros*/
  120.     { (1008), "x5" },/*22*/
  121.     { (1009), "x2" },/*23*/
  122.     { (1010), "x10" },/*24*/
  123.  
  124.     /*capos*/
  125.     { (1004), "Champ Scoop" },/*25*/
  126.     { (1005), "Fury Scoop" },/*26*/
  127.     { (1011), "Race Scoop" },/*27*/
  128.     { (1012), "Worx Scoop" },/*28*/
  129.  
  130.     /*techos*/
  131.     { (1006), "Roof Scoop" },/*29*/
  132.     { (1032), "Alien Roof Vent" },/*30*/
  133.     { (1033), "X-Flow Roof Vent" },/*31*/
  134.     { (1035), "X-Flow Roof Vent" },/*32*/
  135.     { (1038), "Alien Roof Vent" },/*33*/
  136.     { (1053), "X-Flow" },/*34*/
  137.     { (1054), "Alien" },/*35*/
  138.     { (1055), "Alien" },/*36*/
  139.     { (1061), "X-Flow" },/*37*/
  140.     { (1067), "Alien" },/*38*/
  141.     { (1068), "X-Flow" },/*39*/
  142.     { (1088), "Alien" },/*40*/
  143.     { (1091), "X-Flow" },/*41*/
  144.     { (1103), "Covertible" },/*42*/
  145.     { (1128), "Vinyl Hardtop" },/*43*/
  146.     { (1130), "Hardtop" },/*44*/
  147.     { (1131), "Softtop" },/*45*/
  148.  
  149.     /*ruedas*/
  150.     { (1025), "Offroad" },/*46*/
  151.     { (1073), "Shadow" },/*47*/
  152.     { (1074), "Mega" },/*48*/
  153.     { (1075), "Rimshine" },/*49*/
  154.     { (1076), "Wires" },/*50*/
  155.     { (1077), "Classic" },/*51*/
  156.     { (1078), "Twist" },/*52*/
  157.     { (1079), "Cutter" },/*53*/
  158.     { (1080), "Switch" },/*54*/
  159.     { (1081), "Grove" },/*55*/
  160.     { (1082), "Import" },/*56*/
  161.     { (1083), "Dollar" },/*57*/
  162.     { (1084), "Trance" },/*58*/
  163.     { (1085), "Atomic" },/*59*/
  164.     { (1096), "Ahab" },/*60*/
  165.     { (1097), "Virtual" },/*61*/
  166.     { (1098), "Access" },/*62*/
  167.  
  168.     /*escapes*/
  169.     { (1018), "Upswept" },/*63*/
  170.     { (1019), "Twin" },/*64*/
  171.     { (1020), "Large" },/*65*/
  172.     { (1021), "Medium" },/*66*/
  173.     { (1022), "Small" },/*67*/
  174.     { (1028), "Alien" },/*68*/
  175.     { (1029), "X-Flow" },/*69*/
  176.     { (1034), "Alien" },/*70*/
  177.     { (1037), "X-Flow" },/*71*/
  178.     { (1043), "Slamin" },/*72*/
  179.     { (1044), "Chrome" },/*73*/
  180.     { (1045), "X-Flow" },/*74*/
  181.     { (1046), "Alien" },/*75*/
  182.     { (1059), "X-Flow" },/*76*/
  183.     { (1064), "Alien" },/*77*/
  184.     { (1065), "Alien" },/*78*/
  185.     { (1066), "X-Flow" },/*79*/
  186.     { (1089), "X-Flow" },/*80*/
  187.     { (1092), "Alien" },/*81*/
  188.     { (1104), "Chrome" },/*82*/
  189.     { (1105), "Slamin" },/*83*/
  190.     { (1113), "Chrome" },/*84*/
  191.     { (1114), "Slamin" },/*85*/
  192.     { (1126), "Chrome Exhaust" },/*86*/
  193.     { (1127), "Slamin Exhaust" },/*87*/
  194.     { (1129), "Chrome" },/*88*/
  195.     { (1132), "Slamin" },/*89*/
  196.     { (1135), "Slamin" },/*90*/
  197.     { (1136), "Chrome" },/*91*/
  198.  
  199.     /*parachoques frontales*/
  200.     { (1117), "Chrome" },/*92*/
  201.     { (1152), "X-Flow" },/*93*/
  202.     { (1153), "Alien" },/*94*/
  203.     { (1155), "Alien" },/*95*/
  204.     { (1157), "X-Flow" },/*96*/
  205.     { (1160), "Alien" },/*97*/
  206.     { (1165), "X-Flow" },/*98*/
  207.     { (1166), "Alien" },/*99*/
  208.     { (1169), "Alien" },/*100*/
  209.     { (1170), "X-Flow" },/*101*/
  210.     { (1171), "Alien" },/*102*/
  211.     { (1172), "X-Flow" },/*103*/
  212.     { (1173), "X-Flow" },/*104*/
  213.     { (1174), "Chrome" },/*105*/
  214.     { (1175), "Slamin" },/*106*/
  215.     { (1179), "Chrome" },/*107*/
  216.     { (1181), "Slamin" },/*108*/
  217.     { (1182), "Chrome" },/*109*/
  218.     { (1185), "Slamin" },/*110*/
  219.     { (1188), "Slamin" },/*111*/
  220.     { (1189), "Chrome" },/*112*/
  221.     { (1190), "Slamin" },/*113*/
  222.     { (1191), "Chrome" },/*114*/
  223.     { (1123), "Bullbar Chrome Bars" },/*115*/
  224.     { (1125), "Bullbar Chrome Lights" },/*116*/
  225.     { (1115), "Chrome" },/*117*/
  226.     { (1116), "Slamin" },/*118*/
  227.  
  228.     /*parachoques traseros*/
  229.     { (1140), "X-Flow" },/*119*/
  230.     { (1141), "Alien" },/*120*/
  231.     { (1148), "X-Flow" },/*120*/
  232.     { (1149), "Alien" },/*121*/
  233.     { (1150), "Alien" },/*122*/
  234.     { (1151), "X-Flow" },/*123*/
  235.     { (1154), "Alien" },/*124*/
  236.     { (1156), "X-Flow" },/*125*/
  237.     { (1159), "Alien" },/*126*/
  238.     { (1161), "X-Flow" },/*127*/
  239.     { (1167), "X-Flow" },/*128*/
  240.     { (1168), "Alien" },/*129*/
  241.     { (1176), "Chrome" },/*130*/
  242.     { (1177), "Slamin" },/*131*/
  243.     { (1178), "Slamin" },/*132*/
  244.     { (1180), "Chrome" },/*133*/
  245.     { (1183), "Slamin" },/*134*/
  246.     { (1184), "Chrome" },/*135*/
  247.     { (1186), "Slamin" },/*136*/
  248.     { (1187), "Chrome" },/*137*/
  249.     { (1192), "Chrome" },/*138*/
  250.     { (1193), "Slamin" },/*139*/
  251.  
  252.     /*luces de niebla*/
  253.     { (1013), "Round Fog" },/*140*/
  254.     { (1024), "Square Fog" }/*141*/ };
RAW Paste Data