Guest User

Free-Fall Tower By TraniLurese

a guest
Apr 13th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.92 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #include <a_samp>
  3. #if defined FILTERSCRIPT
  4. new attachers[3], swv, timersss, xep[MAX_PLAYERS], attract[MAX_PLAYERS];
  5. public OnFilterScriptInit()
  6. {
  7. CreateObject(19449, 383.58, -2077.43, 13.05,   90.00, 0.00, 0.00);
  8. CreateObject(19449, 381.89, -2075.71, 13.05,   90.00, 0.00, 90.00);
  9. CreateObject(19449, 380.21, -2077.43, 13.05,   90.00, 0.00, 0.00);
  10. CreateObject(19449, 381.90, -2079.12, 13.05,   90.00, 0.00, 90.00);
  11. CreateObject(19377, 382.19, -2077.33, 8.37,   0.00, 90.00, 0.00);
  12. CreateObject(19435, 385.67, -2072.56, 7.58,   90.00, 0.00, 90.00);
  13. CreateObject(19435, 382.18, -2072.56, 7.58,   90.00, 0.00, 90.00);
  14. CreateObject(19435, 378.82, -2072.56, 7.58,   90.00, 0.00, 90.00);
  15. CreateObject(19435, 377.00, -2074.25, 7.58,   90.00, 0.00, 0.00);
  16. CreateObject(19435, 377.00, -2077.75, 7.58,   90.00, 0.00, 0.00);
  17. CreateObject(19435, 377.01, -2080.39, 7.58,   90.00, 0.00, 0.00);
  18. CreateObject(19435, 378.69, -2082.10, 7.58,   90.00, 0.00, 90.00);
  19. CreateObject(19435, 382.18, -2082.10, 7.58,   90.00, 0.00, 90.00);
  20. CreateObject(19435, 385.68, -2082.10, 7.58,   90.00, 0.00, 90.00);
  21. CreateObject(19435, 387.36, -2080.40, 7.58,   90.00, 0.00, 0.00);
  22. CreateObject(19435, 387.36, -2076.90, 7.58,   90.00, 0.00, 0.00);
  23. CreateObject(19435, 387.37, -2074.25, 7.58,   90.00, 0.00, 0.00);
  24. CreateObject(19435, 382.15, -2071.07, 7.49,   0.00, -60.00, 90.00);
  25. CreateObject(19435, 382.15, -2071.43, 7.49,   0.00, -60.00, 90.00);
  26. CreateObject(19435, 382.15, -2071.78, 7.49,   0.00, -60.00, 90.00);
  27. CreateObject(19435, 382.15, -2072.14, 7.49,   0.00, -60.00, 90.00);
  28. CreateObject(19435, 382.15, -2072.50, 7.49,   0.00, -60.00, 90.00);
  29. CreateObject(19435, 382.15, -2072.85, 7.49,   0.00, -60.00, 90.00);
  30. CreateObject(19435, 382.15, -2073.21, 7.49,   0.00, -60.00, 90.00);
  31. CreateObject(19435, 382.15, -2073.57, 7.49,   0.00, -60.00, 90.00);
  32. CreateObject(970, 379.10, -2072.51, 8.94,   0.00, 0.00, 0.00);
  33. CreateObject(970, 385.24, -2072.57, 8.94,   0.00, 0.00, 0.00);
  34. CreateObject(970, 387.32, -2074.66, 8.94,   0.00, 0.00, 90.00);
  35. CreateObject(970, 387.32, -2079.98, 8.94,   0.00, 0.00, 90.00);
  36. CreateObject(19435, 389.11, -2077.31, 8.31,   0.00, -90.00, 0.00);
  37. CreateObject(19435, 389.13, -2078.05, 7.58,   90.00, 0.00, -90.00);
  38. CreateObject(19435, 389.14, -2076.58, 7.58,   90.00, 0.00, -90.00);
  39. CreateObject(19435, 390.84, -2077.32, 6.62,   0.00, 180.00, 0.00);
  40. CreateObject(970, 385.22, -2082.07, 8.94,   0.00, 0.00, 0.00);
  41. CreateObject(970, 381.09, -2082.08, 8.94,   0.00, 0.00, 0.00);
  42. CreateObject(970, 379.00, -2082.08, 8.94,   0.00, 0.00, 0.00);
  43. CreateObject(970, 376.99, -2079.98, 8.94,   0.00, 0.00, 90.00);
  44. CreateObject(970, 376.99, -2074.60, 8.94,   0.00, 0.00, 90.00);
  45. CreateObject(19435, 375.36, -2077.28, 8.31,   0.00, -90.00, 0.00);
  46. CreateObject(19435, 375.35, -2078.00, 7.58,   90.00, 0.00, 90.00);
  47. CreateObject(19435, 375.34, -2076.56, 7.58,   90.00, 0.00, 90.00);
  48. CreateObject(19435, 373.64, -2077.27, 6.62,   0.00, 180.00, 0.00);
  49. CreateObject(19449, 381.89, -2075.71, 22.65,   90.00, 0.00, 90.00);
  50. CreateObject(19449, 383.58, -2077.43, 22.65,   90.00, 0.00, 0.00);
  51. CreateObject(19449, 381.90, -2079.12, 22.65,   90.00, 0.00, 90.00);
  52. CreateObject(19449, 380.21, -2077.43, 22.65,   90.00, 0.00, 0.00);
  53. CreateObject(19449, 381.89, -2075.71, 32.23,   90.00, 0.00, 90.00);
  54. CreateObject(19449, 380.21, -2077.43, 32.23,   90.00, 0.00, 0.00);
  55. CreateObject(19449, 381.90, -2079.12, 32.23,   90.00, 0.00, 90.00);
  56. CreateObject(19449, 383.58, -2077.43, 32.23,   90.00, 0.00, 0.00);
  57. CreateObject(970, 381.42, -2070.45, 7.83,   0.00, 30.00, 90.00);
  58. CreateObject(970, 382.93, -2070.51, 7.83,   0.00, 30.00, 90.00);
  59. CreateObject(717, 384.07, -2071.47, 6.97,   0.00, 0.00, 0.00);
  60. CreateObject(717, 380.81, -2071.59, 6.97,   0.00, 0.00, 0.00);
  61. CreateObject(717, 391.95, -2077.18, 6.97,   0.00, 0.00, 0.00);
  62. CreateObject(717, 373.09, -2077.13, 6.97,   0.00, 0.00, 0.00);
  63. CreateObject(717, 388.53, -2081.38, 6.97,   0.00, 0.00, 0.00);
  64. CreateObject(717, 376.41, -2081.40, 6.97,   0.00, 0.00, 0.00);
  65. CreateObject(717, 382.25, -2082.93, 6.97,   0.00, 0.00, 0.00);
  66. CreateObject(16644, 383.72, -2077.02, 15.89,   0.00, -90.00, 0.00);
  67. CreateObject(16644, 383.73, -2077.79, 29.25,   0.00, 90.00, 180.00);
  68. CreateObject(16644, 381.50, -2075.58, 15.89,   0.00, -90.00, 90.00);
  69. CreateObject(16644, 382.30, -2075.54, 29.25,   0.00, 90.00, -90.00);
  70. CreateObject(16644, 380.06, -2077.81, 15.77,   180.00, 90.00, 0.00);
  71. CreateObject(16644, 380.06, -2077.81, 29.25,   180.00, -90.00, 0.00);
  72. CreateObject(19362, 381.89, -2077.44, 36.94,   0.00, 90.00, 90.00);
  73. CreateObject(9131, 381.91, -2077.40, 38.04,   0.00, 0.00, 0.00);
  74. CreateObject(9131, 383.48, -2077.42, 37.96,   0.00, 20.00, 0.00);
  75. CreateObject(9131, 380.35, -2077.40, 37.96,   0.00, -20.00, 0.00);
  76. CreateObject(9131, 381.95, -2079.02, 37.96,   20.00, 0.00, 0.00);
  77. CreateObject(9131, 381.86, -2075.81, 37.96,   -20.00, 0.00, 0.00);
  78. CreateObject(9131, 381.86, -2075.06, 40.02,   -20.00, 0.00, 0.00);
  79. CreateObject(9131, 379.60, -2077.41, 40.02,   0.00, -20.00, 0.00);
  80. CreateObject(9131, 381.95, -2079.78, 40.02,   20.00, 0.00, 0.00);
  81. CreateObject(9131, 384.23, -2077.43, 40.02,   0.00, 20.00, 0.00);
  82. CreateObject(9131, 381.91, -2077.40, 40.31,   0.00, 0.00, 0.00);
  83. CreateObject(9131, 381.91, -2077.40, 42.55,   0.00, 0.00, 0.00);
  84. CreateObject(19281, 381.85, -2074.65, 41.15,   0.00, 0.00, 0.00);
  85. CreateObject(19282, 379.12, -2077.40, 41.15,   0.00, 0.00, 0.00);
  86. CreateObject(19283, 381.97, -2080.20, 41.15,   0.00, 0.00, 0.00);
  87. CreateObject(19284, 384.64, -2077.47, 41.15,   0.00, 0.00, 0.00);
  88. CreateObject(19289, 381.92, -2077.40, 43.69,   0.00, 0.00, 0.00);
  89. CreateObject(717, 408.85, -2088.04, 6.97,   0.00, 0.00, 0.00);
  90. CreateObject(717, 351.57, -2087.69, 6.97,   0.00, 0.00, 0.00);
  91. CreateObject(2041, 380.51, -2079.27, 10.35,   -90.00, 0.00, 180.00);
  92. CreateObject(2040, 380.79, -2079.17, 10.35,   -90.00, 0.00, 180.00);
  93. CreateObject(2040, 381.07, -2079.17, 10.35,   -90.00, 0.00, 180.00);
  94. CreateObject(2041, 381.33, -2079.27, 10.35,   -90.00, 0.00, 180.00);
  95. CreateObject(2911, 383.13, -2079.22, 8.46,   0.00, 0.00, 180.00);
  96. attachers[0] = CreateObject(3657, 379.66, -2077.41, 9.41,   -60.00, 0.00, 90.00);
  97. attachers[1] = CreateObject(3657, 384.14, -2077.44, 9.41,   -60.00, 0.00, -90.00);
  98. attachers[2] = CreateObject(3657, 381.94, -2075.20, 9.41,   -60.00, 0.00, 0.00);
  99.  
  100. swv = CreatePickup(1239, 23, 377.6364, -2073.2363, 9.6807, -1);
  101.  
  102. timersss = SetTimer("up", 1000, false);
  103. return 1;
  104. }
  105. #endif
  106. public OnPlayerConnect(playerid)
  107. {
  108.     attract[playerid] = 0;
  109.     return 1;
  110. }
  111. public OnPlayerDisconnect(playerid)
  112. {
  113.     attract[playerid] = 0;
  114.     return 1;
  115. }
  116. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  117. {
  118.     if(newkeys == 16)
  119.     {
  120.         if(attract[playerid] == 1)
  121.         {
  122.             SetCameraBehindPlayer(playerid);
  123.             DestroyObject(xep[playerid]);
  124.             SetPlayerPos(playerid, 379.6651,-2073.0146,9.4559);
  125.             attract[playerid] = 0;
  126.         }
  127.         return 1;
  128.     }
  129.     return 1;
  130. }
  131. public OnPlayerPickUpPickup(playerid, pickupid)
  132. {
  133.     if(pickupid == swv)
  134.     {
  135.         new rand = random(sizeof(attachers));
  136.         xep[playerid] = CreateObject(19374, 379.66, -2077.41, 9.41, 0, 0, 0);
  137.         AttachObjectToObject(xep[playerid], attachers[rand], -0, 0, 1.3, 0, 0, 0);
  138.         AttachCameraToObject(playerid, xep[playerid]);
  139.         SendClientMessage(playerid, 0xFF0000FF, "To leave press Enter");
  140.         SetPlayerPos(playerid, 382.5960, -2076.8357, 9.4559);
  141.         attract[playerid] = 1;
  142.     }
  143.     return 1;
  144. }
  145. forward up();
  146. public up()
  147. {
  148.     MoveObject(attachers[0], 379.66, -2077.41, 37.0412, 4);
  149.     MoveObject(attachers[1], 384.14, -2077.44, 37.0412, 4);
  150.     MoveObject(attachers[2], 381.94, -2075.20, 37.0412, 4);
  151.     KillTimer(timersss);
  152.     timersss = SetTimer("down", 7000, false);
  153. }
  154. forward down();
  155. public down()
  156. {
  157.     MoveObject(attachers[0], 379.66, -2077.41, 9.4100, 5);
  158.     MoveObject(attachers[1], 384.14, -2077.44, 9.4100, 5);
  159.     MoveObject(attachers[2], 381.94, -2075.20, 9.4100, 5);
  160.     KillTimer(timersss);
  161.     timersss = SetTimer("up", 5500, false);
  162. }
Add Comment
Please, Sign In to add comment