Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. new CarNoExhaust[38] =
  2. {
  3. 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
  4. };
  5.  
  6.  
  7. if(PRESSED(KEY_FIRE))
  8. {
  9. if(IsPlayerInAnyVehicle(playerid))
  10. {
  11. if(GetPlayerVehicleSeat(playerid) == 0)
  12. {
  13. new mCar, CarID;
  14. CarID = GetPlayerVehicleID(playerid);
  15. mCar = GetVehicleModel(CarID);
  16. for(new i = 0; i < sizeof(CarNoExhaust); i++)
  17. {
  18. if(mCar == CarNoExhaust[i])
  19. {
  20. SendClientMessage(playerid, -1, ""COLOR_LRED"[Erreur]"COLOR_WHITE" La nitro n'a pas pu être ajouté.");
  21. return 1;
  22. }
  23. else
  24. {
  25. AddVehicleComponent(CarID,1010);
  26. SendClientMessage(playerid, -1, ""COLOR_GREEN"[Vehicule]"COLOR_WHITE" La nitro a été ajouté au véhicule.");
  27. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  28. return 1;
  29. }
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement