Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 19.66 KB | None | 0 0
  1. CarInfo[car][cComponent0] = component2;
  2.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre spoiler");
  3.                         }
  4.                         else
  5.                         {
  6.                             SendClientMessage(playerid, COLOR_GREY,"* You have already an spoiler, use the Clear option first!");
  7.                             return 1;
  8.                         }
  9.                     }
  10.                     else
  11.                     {
  12.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have an Spoiler to Save!");
  13.                         return 1;
  14.                     }
  15.                 }
  16.                 if(listitem == 1)
  17.                 {
  18.                     new component2 = GetVehicleComponentInSlot(car, 1);
  19.                     new component = CarInfo[car][cComponent1];
  20.                     if(component2 != 0)
  21.                     {
  22.                         if(component == 0)
  23.                         {
  24.                             CarInfo[car][cComponent1] = component2;
  25.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre capot");
  26.                         }
  27.                         else
  28.                         {
  29.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a hood, use the Clear option first!");
  30.                             return 1;
  31.                         }
  32.                     }
  33.                     else
  34.                     {
  35.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a hood to Save!");
  36.                         return 1;
  37.                     }
  38.                 }
  39.                 if(listitem == 2)
  40.                 {
  41.                     new component2 = GetVehicleComponentInSlot(car, 2);
  42.                     new component = CarInfo[car][cComponent2];
  43.                     if(component2 != 0)
  44.                     {
  45.                         if(component == 0)
  46.                         {
  47.                             CarInfo[car][cComponent2] = component2;
  48.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre toit");
  49.                         }
  50.                         else
  51.                         {
  52.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a roof, use the Clear option first!");
  53.                             return 1;
  54.                         }
  55.                     }
  56.                     else
  57.                     {
  58.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Roof to Save!");
  59.                         return 1;
  60.                     }
  61.                 }
  62.                 if(listitem == 3)
  63.                 {
  64.                     new component2 = GetVehicleComponentInSlot(car, 3);
  65.                     new component = CarInfo[car][cComponent3];
  66.                     if(component2 != 0)
  67.                     {
  68.                         if(component == 0)
  69.                         {
  70.                             CarInfo[car][cComponent0] = component2;
  71.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre Jupe latérale");
  72.                         }
  73.                         else
  74.                         {
  75.                             SendClientMessage(playerid, COLOR_GREY,"* You have already an Sideskirt, use the Clear option first!");
  76.                             return 1;
  77.                         }
  78.                     }
  79.                     else
  80.                     {
  81.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Sideskirt to Save!");
  82.                         return 1;
  83.                     }
  84.                 }
  85.                 if(listitem == 4)
  86.                 {
  87.                     new component2 = GetVehicleComponentInSlot(car, 4);
  88.                     new component = CarInfo[car][cComponent4];
  89.                     if(component2 != 0)
  90.                     {
  91.                         if(component == 0)
  92.                         {
  93.                             CarInfo[car][cComponent4] = component2;
  94.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé vos lumières");
  95.                         }
  96.                         else
  97.                         {
  98.                             SendClientMessage(playerid, COLOR_GREY,"* You have already Lamps, use the Clear option first!");
  99.                             return 1;
  100.                         }
  101.                     }
  102.                     else
  103.                     {
  104.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Lamps to Save!");
  105.                         return 1;
  106.                     }
  107.                 }
  108.                 if(listitem == 5)
  109.                 {
  110.                     new component2 = GetVehicleComponentInSlot(car, 5);
  111.                     new component = CarInfo[car][cComponent5];
  112.                     if(component2 != 0)
  113.                     {
  114.                         if(component == 0)
  115.                         {
  116.                             CarInfo[car][cComponent5] = component2;
  117.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre nitro");
  118.                         }
  119.                         else
  120.                         {
  121.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a Nitro, use the Clear option first!");
  122.                             return 1;
  123.                         }
  124.                     }
  125.                     else
  126.                     {
  127.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Nitro to Save!");
  128.                         return 1;
  129.                     }
  130.                 }
  131.                 if(listitem == 6)
  132.                 {
  133.                     new component2 = GetVehicleComponentInSlot(car, 6);
  134.                     new component = CarInfo[car][cComponent6];
  135.                     if(component2 != 0)
  136.                     {
  137.                         if(component == 0)
  138.                         {
  139.                             CarInfo[car][cComponent6] = component2;
  140.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé vos échappements");
  141.                         }
  142.                         else
  143.                         {
  144.                             SendClientMessage(playerid, COLOR_GREY,"* You have already an exhausts, use the Clear option first!");
  145.                             return 1;
  146.                         }
  147.                     }
  148.                     else
  149.                     {
  150.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Exhausts to Save!");
  151.                         return 1;
  152.                     }
  153.                 }
  154.                 if(listitem == 7)
  155.                 {
  156.                     new component2 = GetVehicleComponentInSlot(car, 7);
  157.                     new component = CarInfo[car][cComponent7];
  158.                     if(component2 != 0)
  159.                     {
  160.                         if(component == 0)
  161.                         {
  162.                             CarInfo[car][cComponent7] = component2;
  163.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé vos roues");
  164.                         }
  165.                         else
  166.                         {
  167.                             SendClientMessage(playerid, COLOR_GREY,"* You have already Wheels, use the Clear option first!");
  168.                             return 1;
  169.                         }
  170.                     }
  171.                     else
  172.                     {
  173.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Wheels to Save!");
  174.                         return 1;
  175.                     }
  176.                 }
  177.                 if(listitem == 8)
  178.                 {
  179.                     new component2 = GetVehicleComponentInSlot(car, 8);
  180.                     new component = CarInfo[car][cComponent8];
  181.                     if(component2 != 0)
  182.                     {
  183.                         if(component == 0)
  184.                         {
  185.                             CarInfo[car][cComponent8] = component2;
  186.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre Sono");
  187.                         }
  188.                         else
  189.                         {
  190.                             SendClientMessage(playerid, COLOR_GREY,"* You have already an Stereo, use the Clear option first!");
  191.                             return 1;
  192.                         }
  193.                     }
  194.                     else
  195.                     {
  196.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Stereo to Save!");
  197.                         return 1;
  198.                     }
  199.                 }
  200.                 if(listitem == 9)
  201.                 {
  202.                     new component2 = GetVehicleComponentInSlot(car, 9);
  203.                     new component = CarInfo[car][cComponent9];
  204.                     if(component2 != 0)
  205.                     {
  206.                         if(component == 0)
  207.                         {
  208.                             CarInfo[car][cComponent9] = component2;
  209.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre hydrolique");
  210.                         }
  211.                         else
  212.                         {
  213.                             SendClientMessage(playerid, COLOR_GREY,"* You have already Hydraulics, use the Clear option first!");
  214.                             return 1;
  215.                         }
  216.                     }
  217.                     else
  218.                     {
  219.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Hydraulics to Save!");
  220.                         return 1;
  221.                     }
  222.                 }
  223.                 if(listitem == 10)
  224.                 {
  225.                     new component2 = GetVehicleComponentInSlot(car, 10);
  226.                     new component = CarInfo[car][cComponent10];
  227.                     if(component2 != 0)
  228.                     {
  229.                         if(component == 0)
  230.                         {
  231.                             CarInfo[car][cComponent10] = component2;
  232.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre pare-chocs avant");
  233.                         }
  234.                         else
  235.                         {
  236.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a Front Bumper, use the Clear option first!");
  237.                             return 1;
  238.                         }
  239.                     }
  240.                     else
  241.                     {
  242.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Front Bumper to Save!");
  243.                         return 1;
  244.                     }
  245.                 }
  246.                 if(listitem == 11)
  247.                 {
  248.                     new component2 = GetVehicleComponentInSlot(car, 11);
  249.                     new component = CarInfo[car][cComponent11];
  250.                     if(component2 != 0)
  251.                     {
  252.                         if(component == 0)
  253.                         {
  254.                             CarInfo[car][cComponent11] = component2;
  255.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre pare-chocs arrière");
  256.                         }
  257.                         else
  258.                         {
  259.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a Rear Bumper, use the Clear option first!");
  260.                             return 1;
  261.                         }
  262.                     }
  263.                     else
  264.                     {
  265.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Rear Bumper to Save!");
  266.                         return 1;
  267.                     }
  268.                 }
  269.                 if(listitem == 12)
  270.                 {
  271.                     new component2 = GetVehicleComponentInSlot(car, 12);
  272.                     new component = CarInfo[car][cComponent12];
  273.                     if(component2 != 0)
  274.                     {
  275.                         if(component == 0)
  276.                         {
  277.                             CarInfo[car][cComponent12] = component2;
  278.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre vent Droit");
  279.                         }
  280.                         else
  281.                         {
  282.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a Right Vent, use the Clear option first!");
  283.                             return 1;
  284.                         }
  285.                     }
  286.                     else
  287.                     {
  288.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Right Vent to Save!");
  289.                         return 1;
  290.                     }
  291.                 }
  292.                 if(listitem == 13)
  293.                 {
  294.                     new component2 = GetVehicleComponentInSlot(car, 13);
  295.                     new component = CarInfo[car][cComponent13];
  296.                     if(component2 != 0)
  297.                     {
  298.                         if(component == 0)
  299.                         {
  300.                             CarInfo[car][cComponent13] = component2;
  301.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre vent gauche");
  302.                         }
  303.                         else
  304.                         {
  305.                             SendClientMessage(playerid, COLOR_GREY,"* You have already a Left Vent, use the Clear option first!");
  306.                             return 1;
  307.                         }
  308.                     }
  309.                     else
  310.                     {
  311.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Left Vent to Save!");
  312.                         return 1;
  313.                     }
  314.                 }
  315.             }
  316.         }
  317.         if(dialogid == 1302)
  318.         {
  319.             if(response)
  320.             {
  321.                 new car = GetPlayerVehicleID(playerid);
  322.                 if(listitem == 0)
  323.                 {
  324.                     new component2 = GetVehicleComponentInSlot(car, 0);
  325.                     new component = CarInfo[car][cComponent0];
  326.                     if(component2 != 0)
  327.                     {
  328.                         if(component != 0)
  329.                         {
  330.                             CarInfo[car][cComponent0] = 0;
  331.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre spoiler");
  332.                         }
  333.                         else
  334.                         {
  335.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have an spoiler, use the Save option first!");
  336.                             return 1;
  337.                         }
  338.                     }
  339.                     else
  340.                     {
  341.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Spoiler to Clear!");
  342.                         return 1;
  343.                     }
  344.                 }
  345.                 if(listitem == 1)
  346.                 {
  347.                     new component2 = GetVehicleComponentInSlot(car, 1);
  348.                     new component = CarInfo[car][cComponent1];
  349.                     if(component2 != 0)
  350.                     {
  351.                         if(component != 0)
  352.                         {
  353.                             CarInfo[car][cComponent1] = 0;
  354.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre Capot");
  355.                         }
  356.                         else
  357.                         {
  358.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a Hood, use the Save option first!");
  359.                             return 1;
  360.                         }
  361.                     }
  362.                     else
  363.                     {
  364.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Hood to Clear!");
  365.                         return 1;
  366.                     }
  367.                 }
  368.                 if(listitem == 2)
  369.                 {
  370.                     new component2 = GetVehicleComponentInSlot(car, 2);
  371.                     new component = CarInfo[car][cComponent2];
  372.                     if(component2 != 0)
  373.                     {
  374.                         if(component != 0)
  375.                         {
  376.                             CarInfo[car][cComponent2] = 0;
  377.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre toit");
  378.                         }
  379.                         else
  380.                         {
  381.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a roof, use the Save option first!");
  382.                             return 1;
  383.                         }
  384.                     }
  385.                     else
  386.                     {
  387.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Roof to Clear!");
  388.                         return 1;
  389.                     }
  390.                 }
  391.                 if(listitem == 3)
  392.                 {
  393.                     new component2 = GetVehicleComponentInSlot(car, 3);
  394.                     new component = CarInfo[car][cComponent3];
  395.                     if(component2 != 0)
  396.                     {
  397.                         if(component != 0)
  398.                         {
  399.                             CarInfo[car][cComponent0] = 0;
  400.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre Jupe latérale");
  401.                         }
  402.                         else
  403.                         {
  404.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a Sideskirt, use the Save option first!");
  405.                             return 1;
  406.                         }
  407.                     }
  408.                     else
  409.                     {
  410.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Sideskirt to Clear!");
  411.                         return 1;
  412.                     }
  413.                 }
  414.                 if(listitem == 4)
  415.                 {
  416.                     new component2 = GetVehicleComponentInSlot(car, 4);
  417.                     new component = CarInfo[car][cComponent4];
  418.                     if(component2 != 0)
  419.                     {
  420.                         if(component != 0)
  421.                         {
  422.                             CarInfo[car][cComponent4] = 0;
  423.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé vos lumières");
  424.                         }
  425.                         else
  426.                         {
  427.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have Lamps, use the Save option first!");
  428.                             return 1;
  429.                         }
  430.                     }
  431.                     else
  432.                     {
  433.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Lamps to Clear!");
  434.                         return 1;
  435.                     }
  436.                 }
  437.                 if(listitem == 5)
  438.                 {
  439.                     new component2 = GetVehicleComponentInSlot(car, 5);
  440.                     new component = CarInfo[car][cComponent5];
  441.                     if(component2 != 0)
  442.                     {
  443.                         if(component != 0)
  444.                         {
  445.                             CarInfo[car][cComponent5] = 0;
  446.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre Nitro");
  447.                         }
  448.                         else
  449.                         {
  450.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have Nitro, use the Save option first!");
  451.                             return 1;
  452.                         }
  453.                     }
  454.                     else
  455.                     {
  456.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Nitro to Clear!");
  457.                         return 1;
  458.                     }
  459.                 }
  460.                 if(listitem == 6)
  461.                 {
  462.                     new component2 = GetVehicleComponentInSlot(car, 6);
  463.                     new component = CarInfo[car][cComponent6];
  464.                     if(component2 != 0)
  465.                     {
  466.                         if(component != 0)
  467.                         {
  468.                             CarInfo[car][cComponent6] = 0;
  469.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre échappement");
  470.                         }
  471.                         else
  472.                         {
  473.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have an Exhaust, use the Save option first!");
  474.                             return 1;
  475.                         }
  476.                     }
  477.                     else
  478.                     {
  479.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Exhausts to Clear!");
  480.                         return 1;
  481.                     }
  482.                 }
  483.                 if(listitem == 7)
  484.                 {
  485.                     new component2 = GetVehicleComponentInSlot(car, 7);
  486.                     new component = CarInfo[car][cComponent7];
  487.                     if(component2 != 0)
  488.                     {
  489.                         if(component != 0)
  490.                         {
  491.                             CarInfo[car][cComponent7] = 0;
  492.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé vos roues");
  493.                         }
  494.                         else
  495.                         {
  496.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have Wheels, use the Save option first!");
  497.                             return 1;
  498.                         }
  499.                     }
  500.                     else
  501.                     {
  502.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Wheels to Clear!");
  503.                         return 1;
  504.                     }
  505.                 }
  506.                 if(listitem == 8)
  507.                 {
  508.                     new component2 = GetVehicleComponentInSlot(car, 8);
  509.                     new component = CarInfo[car][cComponent8];
  510.                     if(component2 != 0)
  511.                     {
  512.                         if(component != 0)
  513.                         {
  514.                             CarInfo[car][cComponent8] = 0;
  515.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre sono");
  516.                         }
  517.                         else
  518.                         {
  519.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have an Stereo, use the Save option first!");
  520.                             return 1;
  521.                         }
  522.                     }
  523.                     else
  524.                     {
  525.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Stereo to Clear!");
  526.                         return 1;
  527.                     }
  528.                 }
  529.                 if(listitem == 9)
  530.                 {
  531.                     new component2 = GetVehicleComponentInSlot(car, 9);
  532.                     new component = CarInfo[car][cComponent9];
  533.                     if(component2 != 0)
  534.                     {
  535.                         if(component != 0)
  536.                         {
  537.                             CarInfo[car][cComponent9] = 0;
  538.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre hydrolique");
  539.                         }
  540.                         else
  541.                         {
  542.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have Hydraulics, use the Save option first!");
  543.                             return 1;
  544.                         }
  545.                     }
  546.                     else
  547.                     {
  548.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have Hydraulics to Clear!");
  549.                         return 1;
  550.                     }
  551.                 }
  552.                 if(listitem == 10)
  553.                 {
  554.                     new component2 = GetVehicleComponentInSlot(car, 10);
  555.                     new component = CarInfo[car][cComponent10];
  556.                     if(component2 != 0)
  557.                     {
  558.                         if(component != 0)
  559.                         {
  560.                             CarInfo[car][cComponent10] = 0;
  561.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre pare-chocs avant");
  562.                         }
  563.                         else
  564.                         {
  565.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a front Bumper, use the Save option first!");
  566.                             return 1;
  567.                         }
  568.                     }
  569.                     else
  570.                     {
  571.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Front Bumper to Clear!");
  572.                         return 1;
  573.                     }
  574.                 }
  575.                 if(listitem == 11)
  576.                 {
  577.                     new component2 = GetVehicleComponentInSlot(car, 11);
  578.                     new component = CarInfo[car][cComponent11];
  579.                     if(component2 != 0)
  580.                     {
  581.                         if(component != 0)
  582.                         {
  583.                             CarInfo[car][cComponent11] = 0;
  584.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre pare-chocs arrière");
  585.                         }
  586.                         else
  587.                         {
  588.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a rear bumper, use the Save option first!");
  589.                             return 1;
  590.                         }
  591.                     }
  592.                     else
  593.                     {
  594.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Rear Bumper to Clear!");
  595.                         return 1;
  596.                     }
  597.                 }
  598.                 if(listitem == 12)
  599.                 {
  600.                     new component2 = GetVehicleComponentInSlot(car, 12);
  601.                     new component = CarInfo[car][cComponent12];
  602.                     if(component2 != 0)
  603.                     {
  604.                         if(component != 0)
  605.                         {
  606.                             CarInfo[car][cComponent12] = 0;
  607.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre vent droit");
  608.                         }
  609.                         else
  610.                         {
  611.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a Right Vent, use the Save option first!");
  612.                             return 1;
  613.                         }
  614.                     }
  615.                     else
  616.                     {
  617.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Right Vent to Clear!");
  618.                         return 1;
  619.                     }
  620.                 }
  621.                 if(listitem == 13)
  622.                 {
  623.                     new component2 = GetVehicleComponentInSlot(car, 13);
  624.                     new component = CarInfo[car][cComponent13];
  625.                     if(component2 != 0)
  626.                     {
  627.                         if(component != 0)
  628.                         {
  629.                             CarInfo[car][cComponent13] = 0;
  630.                             SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre vent gauche");
  631.                         }
  632.                         else
  633.                         {
  634.                             SendClientMessage(playerid, COLOR_GREY,"* You don't have a LEft Vent, use the Save option first!");
  635.                             return 1;
  636.                         }
  637.                     }
  638.                     else
  639.                     {
  640.                         SendClientMessage(playerid, COLOR_GREY,"* You don't have a Left Vent to Clear!");
  641.                         return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement