Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new CarNoExhaust[38] =
- {
- 511, 512, 593, 519, 460, 513, 487, 488, 497, 469, 563, 472, 473, 493, 595, 484, 453, 452, 446, 454, 406, 448, 461, 462, 463, 468, 481, 509, 510, 521, 522, 523, 581, 406, 444, 471, 556, 557
- };
- if(PRESSED(KEY_FIRE))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerVehicleSeat(playerid) == 0)
- {
- new mCar, CarID;
- CarID = GetPlayerVehicleID(playerid);
- mCar = GetVehicleModel(CarID);
- for(new i = 0; i < sizeof(CarNoExhaust); i++)
- {
- if(mCar == CarNoExhaust[i])
- {
- SendClientMessage(playerid, -1, ""COLOR_LRED"[Erreur]"COLOR_WHITE" La nitro n'a pas pu être ajouté.");
- return 1;
- }
- else
- {
- AddVehicleComponent(CarID,1010);
- SendClientMessage(playerid, -1, ""COLOR_GREEN"[Vehicule]"COLOR_WHITE" La nitro a été ajouté au véhicule.");
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- return 1;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement