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,"* Vous avez déja un spoiler, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja un capot, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja un toit, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja une jupe latérale, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja des lumières, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja de la nitro, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja des échappements, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja des roues, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja une sono, utilisez l'option de nettoyage !");
- 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 hydraulique");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"* Vous avez déjà de l'hydraulique, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja un pare-chocs avant, utilisez l'option de nettoyage ! 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,"* Vous avez déja un pare-chocs arrière, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja un vent droit, utilisez l'option de nettoyage !");
- 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,"* Vous avez déja un vent gauche, utilisez l'option de nettoyage !");
- 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,"* Vous n'avez pas de spoiler ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de capot ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de toit ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de jupe latérale ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de lumières ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de nitro ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas d'échappements ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de roues ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de sono ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas d'hydraulique ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de pare-chocs avant ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de pare-chocs arrière ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de vent droit ! Utilisez l'option d'ajout.");
- 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,"* Vous n'avez pas de vent gauche ! Utilisez l'option d'ajout.");
- 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