Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2014
1,128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.01 KB | None | 0 0
  1. #include <foreach>
  2.  
  3. // ============================================================================
  4.  
  5. new Iterator:Vehicle<MAX_VEHICLES>;
  6.  
  7. // ============================================================================
  8.  
  9. stock VIH_AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2)
  10. {
  11.     new vehicleid = AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2);
  12.     Iter_Add(Vehicle, vehicleid);
  13.     return vehicleid;
  14. }
  15. #if defined _ALS_AddStaticVehicle
  16.     #undef AddStaticVehicle
  17. #else
  18.     #define _ALS_AddStaticVehicle
  19. #endif
  20. #define AddStaticVehicle VIH_AddStaticVehicle
  21.  
  22. // ============================================================================
  23.  
  24. stock VIH_AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
  25. {
  26.     new vehicleid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, respawn_delay);
  27.     Iter_Add(Vehicle, vehicleid);
  28.     return vehicleid;
  29. }
  30. #if defined _ALS_AddStaticVehicleEx
  31.     #undef AddStaticVehicleEx
  32. #else
  33.     #define _ALS_AddStaticVehicleEx
  34. #endif
  35. #define AddStaticVehicleEx VIH_AddStaticVehicleEx
  36.  
  37. // ============================================================================
  38.  
  39. stock VIH_CreateVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
  40. {
  41.     new vehicleid = CreateVehicle(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, respawn_delay);
  42.     Iter_Add(Vehicle, vehicleid);
  43.     return vehicleid;
  44. }
  45. #if defined _ALS_CreateVehicle
  46.     #undef CreateVehicle
  47. #else
  48.     #define _ALS_CreateVehicle
  49. #endif
  50. #define CreateVehicle VIH_CreateVehicle
  51.  
  52. // ============================================================================
  53.  
  54. stock VIH_DestroyVehicle(vehicleid)
  55. {
  56.     Iter_Remove(Vehicle, vehicleid);
  57.     return DestroyVehicle(vehicleid);
  58. }
  59. #if defined _ALS_DestroyVehicle
  60.     #undef DestroyVehicle
  61. #else
  62.     #define _ALS_DestroyVehicle
  63. #endif
  64. #define DestroyVehicle VIH_DestroyVehicle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement