Metharon

8 Ball Autos - FIX

Jun 8th, 2014
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. #include <a_samp>
  2. #define FILTERSCRIPT
  3. #if defined FILTERSCRIPT
  4. public OnFilterScriptInit()
  5. {
  6. return 1;
  7. }
  8.  
  9. public OnFilterScriptExit()
  10. {
  11. return 1;
  12. }
  13.  
  14. #endif
  15. forward Fix8BALL(playerid);
  16. public Fix8BALL(playerid)
  17. {
  18. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1844.5834,-1856.3602,13.3828)) // Plantare bomba LS
  19. {
  20. if(IsPlayerInAnyVehicle(playerid))
  21. {
  22. new Float:Velocity[3];
  23. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  24. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  25. }
  26. }
  27. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1843.9762,-1854.9304,13.3828)) // Plantare bomba LS 2
  28. {
  29. if(IsPlayerInAnyVehicle(playerid))
  30. {
  31. new Float:Velocity[3];
  32. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  33. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  34. }
  35. }
  36. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1845.5554,-1857.9611,13.3828)) // Plantare bomba LS
  37. {
  38. if(IsPlayerInAnyVehicle(playerid))
  39. {
  40. new Float:Velocity[3];
  41. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  42. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  43. }
  44. }
  45. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.9362,-1856.5945,13.3828)) // Plantare bomba LS
  46. {
  47. if(IsPlayerInAnyVehicle(playerid))
  48. {
  49. new Float:Velocity[3];
  50. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  51. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  52. }
  53. }
  54. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1844.5834,-1856.3602,13.3828)) // Plantare bomba LS
  55. {
  56. if(IsPlayerInAnyVehicle(playerid))
  57. {
  58. new Float:Velocity[3];
  59. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  60. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  61. }
  62. }
  63. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1850.3741,-1857.9613,13.3828)) // Plantare bomba LS
  64. {
  65. if(IsPlayerInAnyVehicle(playerid))
  66. {
  67. new Float:Velocity[3];
  68. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  69. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  70. }
  71. }
  72. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1853.0889,-1854.7529,13.3828)) // Plantare bomba LS
  73. {
  74. if(IsPlayerInAnyVehicle(playerid))
  75. {
  76. new Float:Velocity[3];
  77. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  78. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  79. }
  80. }
  81. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1853.7595,-1857.1993,13.3828)) // Plantare bomba LS
  82. {
  83. if(IsPlayerInAnyVehicle(playerid))
  84. {
  85. new Float:Velocity[3];
  86. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  87. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  88. }
  89. }
  90. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1854.6526,-1857.9623,13.3828)) // Plantare bomba LS
  91. {
  92. if(IsPlayerInAnyVehicle(playerid))
  93. {
  94. new Float:Velocity[3];
  95. GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
  96. SetVehicleVelocity(GetPlayerVehicleID(playerid), - 0.1, Velocity[1], Velocity[2]);
  97. }
  98. }
  99.  
  100. }
  101. public OnPlayerConnect(playerid)
  102. {
  103. SetTimerEx("Fix8BALL", 50, true, "i", playerid);
  104. return 1;
  105. }
Add Comment
Please, Sign In to add comment