Advertisement
Guest User

Dunnojo

a guest
Jan 25th, 2010
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define PLAYERS 100
  4. #define VEHICLES 800
  5.  
  6. forward SetPaintjob(vehicleid, paint);
  7.  
  8. new Paint[VEHICLES] = -1;
  9.  
  10. ResetPaintjobs()
  11. {
  12.     for(new i = 1; i <VEHICLES; i++)
  13.     {
  14.         Paint[i] = -1;
  15.     }
  16. }
  17.  
  18. GetPaintjob(vehicleid)
  19. {
  20.     return Paint[vehicleid];
  21. }
  22.  
  23. public SetPaintjob(vehicleid, paint)
  24. {
  25.     ChangeVehiclePaintjob(vehicleid, paint);
  26.     Paint[vehicleid] = paint;
  27.     return 1;
  28. }
  29.  
  30. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  31. {
  32.     Paint[vehicleid] = paintjobid;
  33.     return 1;
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement