Guest User

Mccoll

a guest
Apr 25th, 2008
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Gate5;
  4. new Gate6;
  5. new Gate7;
  6. new Gate8;
  7. new Gate9;
  8. new Gate10;
  9.  
  10. #if defined FILTERSCRIPT
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print(" Gates Filterscript by Sean McColl");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22. return 1;
  23. }
  24.  
  25. #else
  26.  
  27. main()
  28. {
  29. print("\n----------------------------------");
  30. print(" Gates Filterscript by Sean McColl");
  31. print("----------------------------------\n");
  32. }
  33.  
  34. #endif
  35.  
  36. public OnGameModeInit()
  37. {
  38. CreateObject(973, 2320.577637, 1385.022827, 44.133499, 0.0000, 0.0000, 0.0000);
  39. CreateObject(973, 2333.185547, 1384.945313, 44.149128, 0.0000, 0.0000, 0.0000);
  40. CreateObject(973, 2327.337402, 1521.519165, 44.338654, 0.0000, 0.0000, 180.3777);
  41. CreateObject(973, 2301.950928, 1403.393066, 35.880798, 0.0000, 0.0000, 180.3777);
  42. CreateObject(973, 2306.583008, 1403.410522, 35.880798, 0.0000, 0.0000, 180.3777);
  43. CreateObject(973, 2313.309570, 1403.453247, 35.880840, 0.0000, 0.0000, 180.3777);
  44. CreateObject(973, 2312.642090, 1503.129028, 29.496452, 0.0000, 0.0000, 358.1773);
  45. CreateObject(973, 2303.702148, 1503.397705, 29.471453, 0.0000, 0.0000, 358.1773);
  46. CreateObject(973, 2301.425537, 1503.590576, 29.496437, 0.0000, 0.0000, 358.1773);
  47. CreateObject(987, 2797.176025, 1323.912720, 9.898438, 0.0000, 0.0000, 180.0000);
  48. CreateObject(987, 2797.211182, 1335.666016, 9.907634, 0.0000, 0.0000, 270.0000);
  49. CreateObject(987, 2797.208984, 1347.611816, 9.913641, 0.0000, 0.0000, 270.0000);
  50. CreateObject(987, 2797.136963, 1359.566284, 9.925079, 0.0000, 0.0000, 270.0000);
  51. CreateObject(987, 2797.064697, 1371.501953, 9.924931, 0.0000, 0.0000, 270.0000);
  52. CreateObject(987, 2797.251709, 1382.868286, 9.915428, 0.0000, 0.0000, 269.1406);
  53. CreateObject(987, 2809.253906, 1383.061768, 9.910908, 0.0000, 0.0000, 180.0002);
  54. CreateObject(987, 2821.176025, 1383.071655, 9.926641, 0.0000, 0.0000, 180.0002);
  55. CreateObject(987, 2861.183105, 1383.159790, 9.900957, 0.0000, 0.0000, 180.0002);
  56. CreateObject(987, 2849.264893, 1383.197876, 9.892976, 0.0000, 0.0000, 180.0002);
  57. CreateObject(967, 2836.440430, 1382.561035, 9.898438, 0.0000, 0.0000, 92.7152);
  58. CreateObject(966, 2834.048584, 1384.023560, 9.898438, 0.0000, 0.0000, 0.0000);
  59. CreateObject(966, 2820.371094, 1383.993530, 9.824999, 0.0000, 0.8594, 180.3776);
  60. Gate5 = CreateObject(968, 2834.078857, 1384.032959, 10.732691, 0.0000, 270, 0.0000); // W+O GATE
  61. Gate6 = CreateObject(968, 2820.339600, 1384.049805, 10.708895, 0.0000, 90, 0.0000); // W+O GATE
  62. Gate8 = CreateObject(987, 2840.364990, 1383.137329, 1.693354, 0.0000, 0.0000, 180.0002); // LOCKDOWN GATE
  63. Gate9 = CreateObject(987, 2831.335205, 1383.123901, 1.700006, 0.0000, 0.0000, 180.0002); // LOCKDOWN GATE
  64. CreateObject(974, 2857.666016, 1337.912842, 13.126171, 0.0000, 0.0000, 8.5944);
  65. CreateObject(987, 2855.593506, 1284.915161, 10.040604, 0.0000, 0.0000, 90.0001);
  66. CreateObject(974, 2857.685303, 1243.251831, 13.142923, 0.0000, 0.0000, 359.8454);
  67. CreateObject(987, 2861.066406, 1231.614014, 9.829845, 0.0000, 0.0000, 90.0001);
  68. CreateObject(987, 2861.091797, 1223.346558, 9.820313, 0.0000, 0.0000, 90.0001);
  69. CreateObject(987, 2849.164063, 1223.390381, 9.823065, 0.0000, 0.0000, 0.0000);
  70. CreateObject(987, 2837.236572, 1223.411865, 9.822508, 0.0000, 0.0000, 0.0000);
  71. CreateObject(987, 2825.298340, 1223.404541, 9.823854, 0.0000, 0.0000, 0.0000);
  72. CreateObject(987, 2813.340576, 1223.416504, 9.819558, 0.0000, 0.0000, 0.0000);
  73. CreateObject(987, 2801.413330, 1223.402466, 9.829530, 0.0000, 0.0000, 0.0000);
  74. CreateObject(987, 2789.453369, 1223.393066, 9.825837, 0.0000, 0.0000, 0.0000);
  75. CreateObject(987, 2777.506592, 1223.358887, 9.828347, 0.0000, 0.0000, 0.0000);
  76. CreateObject(987, 2765.566406, 1223.351685, 9.841344, 0.0000, 0.0000, 0.0000);
  77. CreateObject(987, 2758.052490, 1223.330322, 9.851163, 0.0000, 0.0000, 0.0000);
  78. CreateObject(987, 2757.855469, 1235.070801, 9.834060, 0.0000, 0.0000, 270.0000);
  79. CreateObject(987, 2757.830566, 1247.006226, 9.838216, 0.0000, 0.0000, 270.0000);
  80. CreateObject(987, 2757.805664, 1258.951782, 9.840282, 0.0000, 0.0000, 270.0000);
  81. CreateObject(987, 2757.805664, 1270.889160, 9.841084, 0.0000, 0.0000, 270.0000);
  82. CreateObject(987, 2757.805664, 1282.843750, 9.839234, 0.0000, 0.0000, 270.0000);
  83. CreateObject(987, 2757.666260, 1294.773682, 9.823001, 0.0000, 0.0000, 270.8595);
  84. CreateObject(987, 2757.543457, 1303.421875, 9.828142, 0.0000, 0.0000, 270.8595);
  85. CreateObject(987, 2785.231934, 1323.934448, 9.898438, 0.0000, 0.0000, 180.0000);
  86. CreateObject(987, 2773.281250, 1323.933105, 9.898438, 0.0000, 0.0000, 180.0000);
  87. CreateObject(987, 2769.469238, 1303.046387, 9.856773, 0.0000, 0.0000, 180.0000);
  88. CreateObject(987, 2781.425293, 1303.061279, 9.788179, 0.0000, 0.0000, 180.0000);
  89. CreateObject(987, 2793.363281, 1303.070801, 9.774279, 0.0000, 0.0000, 180.0000);
  90. CreateObject(987, 2797.375488, 1327.584106, 9.750000, 0.0000, 0.0000, 270.0000);
  91. CreateObject(987, 2796.750244, 1303.109253, 9.773439, 0.0000, 0.0000, 180.8595);
  92. CreateObject(966, 2797.277344, 1308.514282, 9.773439, 0.0000, 0.0000, 271.5821);
  93. Gate7 = CreateObject(968, 2797.303223, 1308.505127, 10.657692, 0.0000, 90, 90); // W+O GATE
  94. CreateObject(973, 2795.468750, 1303.460693, 10.213666, 0.0000, 359.1406, 90.9964);
  95. CreateObject(967, 2796.230957, 1306.178589, 9.898438, 0.0000, 0.0000, 359.8965);
  96. Gate10 = CreateObject(987, 2797.338379, 1315.403564, 2.823425, 0.0000, 0.0000, 270.0000); // LOCKDOWN GATE
  97. return 1;
  98. }
  99.  
  100. public OnGameModeExit()
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerCommandText(playerid, cmdtext[])
  106. {
  107.  
  108. // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LOCKDOWN XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  109.  
  110. if (strcmp("/lockdown", cmdtext, true, 10) == 0)
  111. {
  112. MoveObject(Gate8, 2840.364990, 1383.137329, 10, 4.5000);
  113. MoveObject(Gate9, 2831.335205, 1383.123901, 10, 4.5000);
  114. MoveObject(Gate10, 2797.338379, 1315.403564, 9.823425, 4.5000);
  115. return 1;
  116. }
  117.  
  118. // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LOCKDOWN OVER! XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  119.  
  120. if (strcmp("/lockdownover", cmdtext, true, 10) == 0)
  121. {
  122. MoveObject(Gate8, 2840.364990, 1383.137329, 1.700000, 4.5000);
  123. MoveObject(Gate9, 2831.335205, 1383.123901, 1.700000, 4.5000);
  124. MoveObject(Gate10, 2797.338379, 1315.403564, 2.823425, 4.5000);
  125. return 1;
  126. }
  127.  
  128. // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OPENGATE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  129.  
  130. if (strcmp("/opengate", cmdtext, true, 10) == 0)
  131. {
  132. SetObjectRot(Gate5, 0.0000, 0, 0.00);
  133. SetObjectRot(Gate6, 0.0000, 0, 0.00);
  134. SetObjectRot(Gate7, 0.0000, 0, 90);
  135. return 1;
  136. }
  137.  
  138. // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX CLOSEGATE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  139.  
  140. if (strcmp("/closegate", cmdtext, true, 10) == 0)
  141. {
  142. SetObjectRot(Gate5, 0.0000, 270, 0);
  143. SetObjectRot(Gate6, 0.0000, 90, 0);
  144. SetObjectRot(Gate7, 0.0000, 90, 90);
  145. return 1;
  146. }
  147.  
  148. return 0;
  149. }
  150.  
Advertisement
Add Comment
Please, Sign In to add comment