jlalt

AdsqqqqqqHax

May 28th, 2016
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.63 KB | None | 0 0
  1. #include a_samp
  2.  
  3. // HOOK and functions
  4.  
  5. new VehicleCol[MAX_VEHICLES][2];
  6.  
  7. ChangeVehColour(vehicleid, color1, color2) {
  8.    ChangeVehicleColor(vehicleid, color2, color2);
  9.    VehicleCol[vehicleid][0] = color1;
  10.    VehicleCol[vehicleid][1] = color2;
  11. }
  12.  
  13. GetVehicleColour(vehicleid, &colorz1, &colorz2) {
  14.    colorz1 = VehicleCol[vehicleid][0];
  15.    colorz2 = VehicleCol[vehicleid][1];
  16. }
  17.  
  18. #define ChangeVehicleColor ChangeVehColour
  19.  
  20. // Example if usage:
  21.  
  22. public OnVehicleSpawn(vehicleid) {
  23.    ChangeVehicleColor(vehicleid, 0, 6);
  24.    new col1, col2;
  25.    GetVehicleColour(vehicleid, col1, col2);
  26.    printf("%d %d",col1, col2);
  27. }
Advertisement
Add Comment
Please, Sign In to add comment