Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CarInfo[car][cComponent0] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre spoiler");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already an spoiler, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have an Spoiler to Save!");
- return 1;
- }
- }
- if(listitem == 1)
- {
- new component2 = GetVehicleComponentInSlot(car, 1);
- new component = CarInfo[car][cComponent1];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent1] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre capot");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a hood, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a hood to Save!");
- return 1;
- }
- }
- if(listitem == 2)
- {
- new component2 = GetVehicleComponentInSlot(car, 2);
- new component = CarInfo[car][cComponent2];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent2] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre toit");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a roof, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Roof to Save!");
- return 1;
- }
- }
- if(listitem == 3)
- {
- new component2 = GetVehicleComponentInSlot(car, 3);
- new component = CarInfo[car][cComponent3];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent0] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre Jupe latérale");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already an Sideskirt, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Sideskirt to Save!");
- return 1;
- }
- }
- if(listitem == 4)
- {
- new component2 = GetVehicleComponentInSlot(car, 4);
- new component = CarInfo[car][cComponent4];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent4] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé vos lumières");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already Lamps, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Lamps to Save!");
- return 1;
- }
- }
- if(listitem == 5)
- {
- new component2 = GetVehicleComponentInSlot(car, 5);
- new component = CarInfo[car][cComponent5];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent5] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre nitro");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a Nitro, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Nitro to Save!");
- return 1;
- }
- }
- if(listitem == 6)
- {
- new component2 = GetVehicleComponentInSlot(car, 6);
- new component = CarInfo[car][cComponent6];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent6] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé vos échappements");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already an exhausts, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Exhausts to Save!");
- return 1;
- }
- }
- if(listitem == 7)
- {
- new component2 = GetVehicleComponentInSlot(car, 7);
- new component = CarInfo[car][cComponent7];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent7] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé vos roues");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already Wheels, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Wheels to Save!");
- return 1;
- }
- }
- if(listitem == 8)
- {
- new component2 = GetVehicleComponentInSlot(car, 8);
- new component = CarInfo[car][cComponent8];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent8] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre Sono");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already an Stereo, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Stereo to Save!");
- return 1;
- }
- }
- if(listitem == 9)
- {
- new component2 = GetVehicleComponentInSlot(car, 9);
- new component = CarInfo[car][cComponent9];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent9] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre hydrolique");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already Hydraulics, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Hydraulics to Save!");
- return 1;
- }
- }
- if(listitem == 10)
- {
- new component2 = GetVehicleComponentInSlot(car, 10);
- new component = CarInfo[car][cComponent10];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent10] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre pare-chocs avant");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a Front Bumper, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Front Bumper to Save!");
- return 1;
- }
- }
- if(listitem == 11)
- {
- new component2 = GetVehicleComponentInSlot(car, 11);
- new component = CarInfo[car][cComponent11];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent11] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre pare-chocs arrière");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a Rear Bumper, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Rear Bumper to Save!");
- return 1;
- }
- }
- if(listitem == 12)
- {
- new component2 = GetVehicleComponentInSlot(car, 12);
- new component = CarInfo[car][cComponent12];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent12] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre vent Droit");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a Right Vent, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Right Vent to Save!");
- return 1;
- }
- }
- if(listitem == 13)
- {
- new component2 = GetVehicleComponentInSlot(car, 13);
- new component = CarInfo[car][cComponent13];
- if(component2 != 0)
- {
- if(component == 0)
- {
- CarInfo[car][cComponent13] = component2;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez sauvegardé votre vent gauche");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You have already a Left Vent, use the Clear option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Left Vent to Save!");
- return 1;
- }
- }
- }
- }
- if(dialogid == 1302)
- {
- if(response)
- {
- new car = GetPlayerVehicleID(playerid);
- if(listitem == 0)
- {
- new component2 = GetVehicleComponentInSlot(car, 0);
- new component = CarInfo[car][cComponent0];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent0] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre spoiler");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have an spoiler, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Spoiler to Clear!");
- return 1;
- }
- }
- if(listitem == 1)
- {
- new component2 = GetVehicleComponentInSlot(car, 1);
- new component = CarInfo[car][cComponent1];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent1] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre Capot");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Hood, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Hood to Clear!");
- return 1;
- }
- }
- if(listitem == 2)
- {
- new component2 = GetVehicleComponentInSlot(car, 2);
- new component = CarInfo[car][cComponent2];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent2] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre toit");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a roof, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Roof to Clear!");
- return 1;
- }
- }
- if(listitem == 3)
- {
- new component2 = GetVehicleComponentInSlot(car, 3);
- new component = CarInfo[car][cComponent3];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent0] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre Jupe latérale");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Sideskirt, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Sideskirt to Clear!");
- return 1;
- }
- }
- if(listitem == 4)
- {
- new component2 = GetVehicleComponentInSlot(car, 4);
- new component = CarInfo[car][cComponent4];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent4] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé vos lumières");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Lamps, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Lamps to Clear!");
- return 1;
- }
- }
- if(listitem == 5)
- {
- new component2 = GetVehicleComponentInSlot(car, 5);
- new component = CarInfo[car][cComponent5];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent5] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre Nitro");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Nitro, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Nitro to Clear!");
- return 1;
- }
- }
- if(listitem == 6)
- {
- new component2 = GetVehicleComponentInSlot(car, 6);
- new component = CarInfo[car][cComponent6];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent6] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre échappement");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have an Exhaust, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Exhausts to Clear!");
- return 1;
- }
- }
- if(listitem == 7)
- {
- new component2 = GetVehicleComponentInSlot(car, 7);
- new component = CarInfo[car][cComponent7];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent7] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé vos roues");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Wheels, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Wheels to Clear!");
- return 1;
- }
- }
- if(listitem == 8)
- {
- new component2 = GetVehicleComponentInSlot(car, 8);
- new component = CarInfo[car][cComponent8];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent8] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre sono");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have an Stereo, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Stereo to Clear!");
- return 1;
- }
- }
- if(listitem == 9)
- {
- new component2 = GetVehicleComponentInSlot(car, 9);
- new component = CarInfo[car][cComponent9];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent9] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre hydrolique");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Hydraulics, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have Hydraulics to Clear!");
- return 1;
- }
- }
- if(listitem == 10)
- {
- new component2 = GetVehicleComponentInSlot(car, 10);
- new component = CarInfo[car][cComponent10];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent10] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre pare-chocs avant");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a front Bumper, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Front Bumper to Clear!");
- return 1;
- }
- }
- if(listitem == 11)
- {
- new component2 = GetVehicleComponentInSlot(car, 11);
- new component = CarInfo[car][cComponent11];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent11] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre pare-chocs arrière");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a rear bumper, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Rear Bumper to Clear!");
- return 1;
- }
- }
- if(listitem == 12)
- {
- new component2 = GetVehicleComponentInSlot(car, 12);
- new component = CarInfo[car][cComponent12];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent12] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre vent droit");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Right Vent, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Right Vent to Clear!");
- return 1;
- }
- }
- if(listitem == 13)
- {
- new component2 = GetVehicleComponentInSlot(car, 13);
- new component = CarInfo[car][cComponent13];
- if(component2 != 0)
- {
- if(component != 0)
- {
- CarInfo[car][cComponent13] = 0;
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez nettoyé votre vent gauche");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a LEft Vent, use the Save option first!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* You don't have a Left Vent to Clear!");
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement