Advertisement
Guest User

SA-MP Spike Strips (inc) (update 2)

a guest
Jul 5th, 2013
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.37 KB | None | 0 0
  1. /*
  2.  * SA-MP Spike Strips
  3.  *
  4.  * Copyright (c) 2013, Stylock
  5.  * This file is provided as is with no warranties of any kind.
  6.  */
  7.  
  8. #define MAX_SPIKE_STRIPS    (128)
  9. #define SS_TIME_INTERVAL    (250)
  10. #define SS_LINE_SEGMENTS    (2) // 1, 2 or 4
  11.  
  12. // Spike strip models
  13. #define SPIKE_STRIP_LONG    (2892)
  14. #define SPIKE_STRIP_SHORT   (2899)
  15.  
  16. // Forwards
  17. forward OnSpikeStripPopTire(spikeid, vehicleid, playerid, tire);
  18.  
  19. /*
  20. native SpikeStrip_Create(mid, Float:x, Float:y, Float:z, Float:a);
  21. */
  22.  
  23. stock SpikeStrip_Create(mid, Float:x, Float:y, Float:z, Float:a)
  24. {
  25.     return CallRemoteFunction("SpikeStrip_Create_MA", "iffff", mid, x, y, z, a);
  26. }
  27.  
  28. /*
  29. native SpikeStrip_Delete(sid);
  30. */
  31.  
  32. stock SpikeStrip_Delete(sid)
  33. {
  34.     return CallRemoteFunction("SpikeStrip_Delete_MA", "i", sid);
  35. }
  36.  
  37. /*
  38. native SpikeStrip_DeleteAll();
  39. */
  40.  
  41. stock SpikeStrip_DeleteAll()
  42. {
  43.     return CallRemoteFunction("SpikeStrip_DeleteAll_MA", "");
  44. }
  45.  
  46. /*
  47. native SpikeStrip_IsValid(sid);
  48. */
  49.  
  50. stock SpikeStrip_IsValid(sid)
  51. {
  52.     return CallRemoteFunction("SpikeStrip_IsValid_MA", "i", sid);
  53. }
  54.  
  55. /*
  56. native SpikeStrip_SetGhost(pid, bool:toggle);
  57. */
  58.  
  59. stock SpikeStrip_SetGhost(pid, bool:toggle)
  60. {
  61.     return CallRemoteFunction("SpikeStrip_SetGhost_MA", "ii", pid, toggle);
  62. }
  63.  
  64. /*
  65. native SpikeStrip_IsGhost(pid);
  66. */
  67.  
  68. stock SpikeStrip_IsGhost(pid)
  69. {
  70.     return CallRemoteFunction("SpikeStrip_IsGhost_MA", "i", pid);
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement