Advertisement
Guest User

FS Secret Island

a guest
Aug 8th, 2010
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 21.78 KB | None | 0 0
  1. //Version 1.5 of Secret Admin base made by Juriaan (henkiee on sa-mp forums) Check for updates now and then
  2. //Don't copy it!
  3.  
  4. #include <a_samp>
  5. #include <a_npc>
  6. #include <G_ObjectsRot>
  7.  
  8. #define COLOR_BLUE 0x2641FEAA
  9. #define COLOR_RED       0xFF0000FF
  10. #define COLOR_WHITE 0xFFFFFFFF
  11.  
  12. new pickup1;
  13. new pickup2;
  14. new pickup3;
  15. new pickup4;
  16. new api;
  17. new gb1;
  18. new gb2;
  19. new ship1;
  20. new ship2;
  21. new ship3;
  22. new androm1;
  23. new androm2;
  24. new gate1;
  25. new gate2;
  26. new lift1;
  27. new gg;
  28. new plane;
  29. new plane2;
  30.  
  31. public OnFilterScriptInit()
  32. {
  33.  
  34. lift1 = CreateObject(3115, 582.30975341797, -3295.5485839844, 45.200000762939, 0, 0, 347);
  35. gg = CreateVehicle(457, 0.0, 0.0, 5.0, 0.0, 1, 0, 1);
  36. plane2 = CreateObject(1681, 631.84991455078, -3080.4885253906, 3.4, 0, 0, 0);
  37.  
  38. pickup1 = CreatePickup(1273, 2, 834.64935302734, -3117.259765625, 5.419695854187,  -1);
  39. pickup2 = CreatePickup(1272, 2, 2335.3425292969, -1142.3587646484, 1054.296875,  -1);
  40. pickup3 = CreatePickup(1273, 2, 830.83898925781, -3117.6218261719, 5.419695854187, -1);
  41. pickup4 = CreatePickup(1272, 2, 2313.4379882813, -1135.451171875, 1054.3046875, -1);
  42. ship1 = CreateObject(10771, 836, -2178, -10.10000038147, 0, 0, 270);
  43. ship2 = CreateObject(10770, 828.4697265625, -2181.2197265625, 20.10000038147, 0, 0, 270);
  44. ship3 = CreateObject(3115, 836.02001953125, -2079, 1.3999999761581, 0, 0, 270);
  45. gb1 = CreateObject(968, 830.13214111328, -3030.1999511719, 2.3499999046326, 0, 89.5, 0);
  46. gb2 = CreateObject(968, 844.03741455078, -3017.4499511719, 2.3499999046326, 0, 270, 0);
  47. androm1 = CreateObject(14553, 2067.2434082031, -2496.7824707031, 17, 13, 0, 290);
  48. androm2 = CreateObject(14548, 2069, -2496.8000488281, 17.6, 13, 0, 290);
  49. gate1 = CreateObject(970, 834.59997558594, -3030.189453125, 1.7000000476837, 0, 0, 0);
  50. gate2 = CreateObject(970, 839.72424316406, -3017.4499511719, 1.7000000476837, 0, 0, 0);
  51.  
  52. CreateObject(5296, 837.10998535156, -2960, 7.0799999237061, 0, 0, 270);
  53. CreateObject(18483, 837.2763671875, -3045.3999023438, 1.4500000476837, 0, 0, 90);
  54. CreateObject(5837, 844.1728515625, -3022.341796875, 3.2409324645996, 0, 0, 90);
  55. CreateObject(5837, 830.060546875, -3022.341796875, 3.2409324645996, 0, 0, 270);
  56. CreateObject(966, 844.1083984375, -3017.4609375, 1.5234370231628, 0, 0, 0);
  57. CreateObject(966, 830.220703125, -3030.189453125, 1.2999999523163, 0, 0, 179.99450683594);
  58. CreateObject(3265, 831.96307373047, -3016.1901855469, 1.5234375, 0, 0, 180);
  59. CreateObject(1320, 831.94140625, -2962.234375, 9.9089860916138, 0, 0, 90);
  60. CreateObject(2985, 829.68414306641, -3012.8073730469, 1.4574785232544, 0, 0, 70);
  61. CreateObject(2985, 844, -3012.8073730469, 1.4820003509521, 0, 0, 130);
  62. CreateObject(2921, 842.14111328125, -3020.4377441406, 4.9340243339539, 0, 0, 0);
  63. CreateObject(3396, 844.90002441406, -3022.9936523438, 1.8112449645996, 0, 0, 0);
  64. CreateObject(8557, 837.34997558594, -3082.6999511719, -0.30000001192093, 0, 0, 0);
  65. CreateObject(11490, 832.4697265625, -3112.2099609375, -0.28342914581299, 0, 0, 90);
  66. CreateObject(11490, 810.365234375, -3119.2880859375, -0.28342914581299, 0, 0, 319.99877929688);
  67. CreateObject(11490, 847.3994140625, -3112.2392578125, -0.28999999165535, 0, 0, 270);
  68. CreateObject(8557, 855, -3101, -0.31000000238419, 0, 0, 90);
  69. CreateObject(1949, 779.75390625, -3118.6142578125, -52.584903717041, 0, 0, 0);
  70. CreateObject(1446, 830.20001220703, -3108.4499511719, 4.3400001525879, 270, 0, 0);
  71. CreateObject(1446, 830.20001220703, -3109.8742675781, 4.3400001525879, 270, 0, 0);
  72. CreateObject(1446, 830.20001220703, -3111.3537597656, 4.3400001525879, 270, 0, 0);
  73. CreateObject(3399, 837.5, -3108.6999511719, 2.1600000858307, 0, 0, 180);
  74. CreateObject(1446, 830.19921875, -3112.8349609375, 4.3400001525879, 270, 0, 0);
  75. CreateObject(1446, 830.20001220703, -3114.2900390625, 4.3400001525879, 270, 0, 0);
  76. CreateObject(1446, 830.20001220703, -3115.7573242188, 4.3400001525879, 270, 0, 0);
  77. CreateObject(1446, 830.20001220703, -3117.1999511719, 4.3400001525879, 270, 0, 0);
  78. CreateObject(1446, 834.74633789063, -3117.1999511719, 4.3400001525879, 270, 0, 0);
  79. CreateObject(1446, 837.85162353516, -3117.1999511719, 4.3400001525879, 270, 0, 0);
  80. CreateObject(1446, 842.3994140625, -3117.19921875, 4.3400001525879, 270, 0, 0);
  81. CreateObject(1446, 847.15972900391, -3117.1999511719, 4.3400001525879, 270, 0, 0);
  82. CreateObject(1446, 849.5, -3117.1999511719, 4.3400001525879, 270, 0, 0);
  83. CreateObject(1446, 834.86999511719, -3111.3537597656, 4.3400001525879, 270, 0, 0);
  84. CreateObject(1446, 738.51721191406, -3134.7739257813, -83.225723266602, 0, 0, 0);
  85. CreateObject(1446, 839.53002929688, -3109.8742675781, 4.3400001525879, 270, 0, 0);
  86. CreateObject(1446, 839.53002929688, -3108.4499511719, 4.3400001525879, 270, 0, 0);
  87. CreateObject(1446, 839.5, -3111.3537597656, 4.3400001525879, 270, 0, 0);
  88. CreateObject(1446, 834.86999511719, -3110.3601074219, 4.3400001525879, 270, 0, 0);
  89. CreateObject(1446, 844.15997314453, -3108.4499511719, 4.3400001525879, 270, 0, 0);
  90. CreateObject(1446, 844.15997314453, -3109.8742675781, 4.3400001525879, 270, 0, 0);
  91. CreateObject(1446, 844.15997314453, -3111.3537597656, 4.3400001525879, 270, 0, 0);
  92. CreateObject(1446, 834.86999511719, -3112.8349609375, 4.3400001525879, 270, 0, 0);
  93. CreateObject(1446, 834.86999511719, -3114.2900390625, 4.3400001525879, 270, 0, 0);
  94. CreateObject(1446, 834.86999511719, -3115.7573242188, 4.3400001525879, 270, 0, 0);
  95. CreateObject(1446, 839.5, -3112.8349609375, 4.3400001525879, 270, 0, 0);
  96. CreateObject(1446, 839.5, -3114.2900390625, 4.3400001525879, 270, 0, 0);
  97. CreateObject(1446, 839.5, -3115.7573242188, 4.3400001525879, 270, 0, 0);
  98. CreateObject(3525, 841.13427734375, -3112.1499023438, 6.8193006515503, 0, 0, 90);
  99. CreateObject(3525, 838.7353515625, -3112.1494140625, 6.8193006515503, 0, 0, 270);
  100. CreateObject(3525, 832.64099121094, -3106.6999511719, 5.663284778595, 0, 0, 0);
  101. CreateObject(3525, 832.57580566406, -3117.9799804688, 5.663284778595, 0, 0, 180);
  102. CreateObject(1446, 844.15997314453, -3112.8349609375, 4.3400001525879, 270, 0, 0);
  103. CreateObject(1446, 844.15997314453, -3114.2900390625, 4.3400001525879, 270, 0, 0);
  104. CreateObject(1446, 844.15997314453, -3115.7573242188, 4.3400001525879, 270, 0, 0);
  105. CreateObject(1446, 847.15972900391, -3115.7573242188, 4.3400001525879, 270, 0, 0);
  106. CreateObject(1446, 847.15972900391, -3114.2900390625, 4.3400001525879, 270, 0, 0);
  107. CreateObject(1446, 847.15972900391, -3112.8349609375, 4.3400001525879, 270, 0, 0);
  108. CreateObject(1446, 847.15002441406, -3111.3537597656, 4.3400001525879, 270, 0, 0);
  109. CreateObject(1446, 842.55682373047, -3109.8020019531, -1.8477849960327, 0, 0, 0);
  110. CreateObject(1446, 847.15002441406, -3109.8742675781, 4.3400001525879, 270, 0, 0);
  111. CreateObject(1446, 847.15002441406, -3108.4499511719, 4.3400001525879, 270, 0, 0);
  112. CreateObject(1446, 849.5, -3114.2900390625, 4.3400001525879, 270, 0, 0);
  113. CreateObject(1446, 849.5, -3115.7573242188, 4.3400001525879, 270, 0, 0);
  114. CreateObject(1446, 849.5, -3112.8349609375, 4.3400001525879, 270, 0, 0);
  115. CreateObject(1446, 849.5, -3111.3537597656, 4.3400001525879, 270, 0, 0);
  116. CreateObject(1446, 849.5, -3109.8742675781, 4.3400001525879, 270, 0, 0);
  117. CreateObject(1446, 849.5, -3108.4499511719, 4.3400001525879, 270, 0, 0);
  118. CreateObject(3525, 847.24481201172, -3117.8000488281, 5.663284778595, 0, 0, 180);
  119. CreateObject(3525, 847.42138671875, -3106.5, 5.663284778595, 0, 0, 0);
  120. CreateObject(3497, 828.5, -3112.1494140625, 6.2428307533264, 0, 0, 270);
  121. CreateObject(3031, 848.2998046875, -3097.1640625, 8, 0, 0, 39.995727539063);
  122. CreateObject(2290, 835.599609375, -3113.3720703125, 1.224383354187, 0, 0, 90);
  123. CreateObject(1786, 839.169921875, -3112.177734375, 2.4574747085571, 0, 0, 270);
  124. CreateObject(1790, 838.8994140625, -3112.267578125, 2.393651008606, 0, 0, 270);
  125. CreateObject(14865, 664.087890625, -3422.5166015625, 24.891767501831, 0, 0, 0);
  126. CreateObject(2091, 667.88897705078, -3421.6418457031, 22.891767501831, 0, 0, 270);
  127. CreateObject(14866, 664.17840576172, -3420.5078125, 23.494476318359, 0, 0, 0);
  128. CreateObject(14867, 664.15496826172, -3426.0791015625, 24.428800582886, 0, 0, 0);
  129. CreateObject(3525, 838.5, -3111.5, 0.20000000298023, 0, 0, 0);
  130. CreateObject(3525, 838.650390625, -3112.2663574219, 0.30000001192093, 0, 0, 0);
  131. CreateObject(3525, 838.59997558594, -3113.1049804688, 0.30000001192093, 0, 0, 0);
  132. CreateObject(3525, 838.53967285156, -3112.3452148438, 0.40000000596046, 0, 0, 0);
  133. CreateObject(1463, 839, -3112.2263183594, 1.2000000476837, 0, 0, 0);
  134. CreateObject(3886, 2332.3999023438, -1142, 1070, 0, 0, 0);
  135. CreateObject(3886, 2316.5, -1138.6999511719, 1077.1999511719, 0, 0, 0);
  136. CreateObject(1649, 821.79998779297, -3112.6000976563, 0.46203571557999, 90, 0, 0);
  137. CreateObject(1649, 826.1025390625, -3112.5, 0.46203571557999, 90, 0, 0);
  138. CreateObject(1649, 817.40002441406, -3112.5986328125, 0.46203571557999, 90, 0, 0);
  139. CreateObject(1649, 815.40002441406, -3113.5, 0.5, 90, 0, 50);
  140. CreateObject(970, 824.68402099609, -3111.1040039063, 1.0339212417603, 0, 0, 0);
  141. CreateObject(970, 824.68402099609, -3113.3046875, 1.013516664505, 0, 0, 0);
  142. CreateObject(970, 820.55108642578, -3111.1071777344, 1.0339212417603, 0, 0, 0);
  143. CreateObject(970, 817.48406982422, -3111.1071777344, 1.0339212417603, 0, 0, 0);
  144. CreateObject(970, 820.56604003906, -3113.3046875, 1.0339212417603, 0, 0, 0);
  145. CreateObject(970, 815.92260742188, -3115, 1.0514802932739, 0, 0, 50);
  146. CreateObject(970, 819.48101806641, -3113.3000488281, 1.013516664505, 0, 0, 0);
  147. CreateObject(970, 814.09527587891, -3112.6638183594, 1.013516664505, 0, 0, 50);
  148. CreateObject(970, 837.09997558594, -3019.6499023438, 1.9186685085297, 0, 0, 90);
  149. CreateObject(970, 837.09808349609, -3023.8000488281, 1.9186685085297, 0, 0, 90);
  150. CreateObject(970, 837.07751464844, -3028, 1.9186685085297, 0, 0, 90);
  151. CreateObject(970, 830.25378417969, -3028.1999511719, 1.8999999761581, 0, 0, 90);
  152. CreateObject(2571, 850.42999267578, -3107.8000488281, 1.217812538147, 0, 0, 270);
  153. CreateObject(3525, 851.59997558594, -3109.3000488281, 2.2000000476837, 0, 0, 270);
  154. CreateObject(2964, 845.10516357422, -3112.140625, 4.4080233573914, 0, 0, 0);
  155. CreateObject(2748, 850.90002441406, -3113.9580078125, 1.8155572414398, 0, 0, 0);
  156. CreateObject(2748, 850.90002441406, -3116.3864746094, 1.8155572414398, 0, 0, 180);
  157. CreateObject(2748, 849.37280273438, -3113.9580078125, 1.8155572414398, 0, 0, 0);
  158. CreateObject(2748, 849.37280273438, -3116.3864746094, 1.8155572414398, 0, 0, 180);
  159. CreateObject(2747, 850.82000732422, -3115.12109375, 1.630365729332, 0, 0, 0);
  160. CreateObject(2747, 849.23614501953, -3115.1220703125, 1.630365729332, 0, 0, 0);
  161. CreateObject(2861, 850.93475341797, -3115.0832519531, 2.0522797107697, 0, 0, 0);
  162. CreateObject(2867, 849.2607421875, -3115.0029296875, 2.0522797107697, 0, 0, 0);
  163. CreateObject(2628, 841.94635009766, -3112.1499023438, 1.217812538147, 0, 0, 90);
  164. CreateObject(2700, 851.65002441406, -3115, 3.2033393383026, 0, 15, 180);
  165. CreateObject(2813, 849.26770019531, -3114.189453125, 1.7108863592148, 0, 0, 0);
  166. CreateObject(2820, 848.73504638672, -3115.0412597656, 2.0522797107697, 0, 0, 0);
  167. CreateObject(2831, 850.02172851563, -3115.1433105469, 2.0522797107697, 0, 0, 0);
  168. CreateObject(2836, 850.48193359375, -3112.708984375, 1.217812538147, 0, 0, 0);
  169. CreateObject(1463, 805.5, -3125.3000488281, 1.5463237762451, 0, 0, 50);
  170. CreateObject(3525, 805.998046875, -3125, 0.5, 0, 0, 0);
  171. CreateObject(3525, 805.36669921875, -3124.53515625, 0.5, 0, 0, 0);
  172. CreateObject(2627, 806.73999023438, -3126.6108398438, 1.2169373035431, 0, 0, 140);
  173. CreateObject(2627, 807.50274658203, -3127.2626953125, 1.2169370651245, 0, 0, 140);
  174. CreateObject(2627, 808.27233886719, -3127.8920898438, 1.2169373035431, 0, 0, 140);
  175. CreateObject(2630, 805.22210693359, -3119.6372070313, 1.224383354187, 0, 0, 50);
  176. CreateObject(2357, 808.29315185547, -3122.1052246094, 1.6195456981659, 0, 0, 50);
  177. CreateObject(2120, 808.04711914063, -3123.4536132813, 1.8621411323547, 0, 0, 325);
  178. CreateObject(2120, 808.71270751953, -3122.7456054688, 1.8621411323547, 0, 0, 314);
  179. CreateObject(2120, 809.43804931641, -3122.0190429688, 1.8621411323547, 0, 0, 340);
  180. CreateObject(2120, 808.20635986328, -3120.9953613281, 1.8621411323547, 0, 0, 150);
  181. CreateObject(2120, 807.43530273438, -3121.8544921875, 1.8621411323547, 0, 0, 120);
  182. CreateObject(2120, 806.72723388672, -3122.5695800781, 1.8621411323547, 0, 0, 159);
  183. CreateObject(2812, 807.41857910156, -3123.140625, 2.0298252105713, 0, 0, 0);
  184. CreateObject(2848, 808.98602294922, -3121.2482910156, 2.0298252105713, 0, 0, 0);
  185. CreateObject(2851, 808.3876953125, -3122.0810546875, 2.0298252105713, 0, 0, 0);
  186. CreateObject(2153, 828.45556640625, -3116.2700195313, 1.224383354187, 0, 0, 90);
  187. CreateObject(2154, 828.45556640625, -3114.1848144531, 1.224383354187, 0, 0, 90);
  188. CreateObject(2151, 828.45556640625, -3115.5600585938, 1.224383354187, 0, 0, 90);
  189. CreateObject(2153, 828.45556640625, -3107.9299316406, 1.224383354187, 0, 0, 90);
  190. CreateObject(2151, 828.45556640625, -3109.3100585938, 1.2243832349777, 0, 0, 90);
  191. CreateObject(2155, 828.45556640625, -3110.1201171875, 1.224383354187, 0, 0, 90);
  192. CreateObject(2851, 828.59283447266, -3114.9084472656, 2.2776396274567, 0, 0, 0);
  193. CreateObject(2863, 828.64129638672, -3110.2028808594, 2.2776396274567, 0, 0, 0);
  194. CreateObject(2862, 828.80126953125, -3109.0715332031, 2.428053855896, 0, 0, 90);
  195. CreateObject(1337, 924.203125, -2031.93359375, -3.7957611083984, 0, 0, 0);
  196. CreateObject(17327, 814, -3095, 8.5, 0, 0, 131.99523925781);
  197. CreateObject(17269, 625.7421875, -3243.6999511719, 33.569999694824, 0, 0, 270);
  198. CreateObject(9254, 562.31665039063, -3317.7954101563, 45.891723632813, 0, 0, 347);
  199. CreateObject(8557, 808.04412841797, -3040.8823242188, -0.090000003576279, 0, 0, 0);
  200. CreateObject(8557, 767.65002441406, -3040.8823242188, -0.090000003576279, 0, 0, 0);
  201. CreateObject(8557, 727.29998779297, -3040.8823242188, -0.090000003576279, 0, 0, 0);
  202. CreateObject(8557, 686.90002441406, -3040.8823242188, -0.090000003576279, 0, 0, 0);
  203. CreateObject(8609, 639.20001220703, -3037.5134277344, 1.4099999666214, 0, 0, 180);
  204. CreateObject(8609, 646.20001220703, -3037.6000976563, 1.3999999761581, 0, 0, 0);
  205. CreateObject(8609, 646.20001220703, -2838, 1.3999999761581, 0, 0, 0);
  206. CreateObject(8609, 639.20001220703, -2837.8000488281, 1.4099999666214, 0, 0, 180);
  207. }
  208.  
  209. public OnPlayerCommandText(playerid, cmdtext[])
  210. {
  211.     if (strcmp("/island", cmdtext, true, 10) == 0)
  212.     {
  213.         SetPlayerPos(playerid,847.15002441406, -3108.4499511719, 6);
  214.         return 1;
  215.     }
  216.     if (strcmp("/plane", cmdtext, true, 10) == 0)
  217.     {
  218.         SetPlayerPos(playerid,  2070, -2490.8000488281, 13);
  219.         return 1;
  220.     }
  221.     if( !strcmp(cmdtext,"/opengb1",true ))
  222.     {
  223.         MoveObject(gate1, 834.59997558594, -3030.189453125, 0.5, 1);
  224.         RotateObject(gb1, 0, 0, 0, 40);
  225.         SetTimer("Resetgate1",7500,0);
  226.         return 1;
  227.     }
  228.     if( !strcmp(cmdtext,"/closegb1",true ))
  229.     {
  230.         MoveObject(gate1, 834.59997558594, -3030.189453125, 1.7, 1);
  231.         RotateObject(gb1, 0, 89.5, 0, 40);
  232.         return 1;
  233.     }
  234.     if( !strcmp(cmdtext,"/opengb2",true ))
  235.     {
  236.         MoveObject(gate2, 839.72424316406, -3017.4499511719, 0.5, 1);
  237.         RotateObject(gb2, 0, 0, 0, 40);
  238.         SetTimer("Resetgate2",7500,0);
  239.         return 1;
  240.     }
  241.     if( !strcmp(cmdtext,"/closegb2",true ))
  242.     {
  243.         MoveObject(gate2, 839.72424316406, -3017.4499511719, 1.7, 1);
  244.         RotateObject(gb2, 0, 270, 0, 40);
  245.         return 1;
  246.     }
  247.     if(strcmp(cmdtext, "/fly", true) == 0)
  248.     {
  249.         MoveObject(androm1, 604.75311279297, -3075.5239257813, 135.80725097656, 20);
  250.         MoveObject(androm2, 607.53997802734, -3075.5239257813, 135.3, 20);
  251.         SendClientMessage(playerid, COLOR_BLUE, "You're flying with the Andromada now");
  252.         SendClientMessage(playerid, COLOR_BLUE, "Jump out at the right moment otherwise you'll be pushed out!");
  253.         return 1;
  254.     }
  255.     if (strcmp("/boat", cmdtext, true, 10) == 0)
  256.     {
  257.         SetPlayerPos(playerid,  837, -2078.8000488281, 13);
  258.         return 1;
  259.     }
  260.     if (strcmp("/ip", cmdtext, true, 10) == 0)
  261.     {
  262.         MoveObject(ship1, 836, -2178, -10.10000038147, 5);
  263.         MoveObject(ship2, 828.4697265625, -2181.2197265625, 20.10000038147, 5);
  264.         MoveObject(ship3, 836.02001953125, -2079, 1.3999999761581, 5);
  265.         return 1;
  266.     }
  267.     if (strcmp("/pi", cmdtext, true, 10) == 0)
  268.     {
  269.         MoveObject(ship1, 836.81744384766, -2797, -10.10000038147, 5);
  270.         MoveObject(ship2, 829.28002929688, -2800.2299804688,  20.10000038147, 5);
  271.         MoveObject(ship3, 836.79998779297, -2698, 1.32, 5);
  272.         return 1;
  273.     }
  274.     if (strcmp("/raise1", cmdtext, true, 10) == 0)
  275.     {
  276.         MoveObject(ship1, 836, -2178, 0.3, 5);
  277.         MoveObject(ship2, 828.4697265625, -2181.2197265625, 30.3, 5);
  278.         MoveObject(ship3, 836.02001953125, -2079, 11.7, 5);
  279.         return 1;
  280.     }
  281.     if (strcmp("/raise2", cmdtext, true, 10) == 0)
  282.     {
  283.         MoveObject(ship1, 836.81744384766, -2797, 0, 5);
  284.         MoveObject(ship2, 829.28002929688, -2800.2299804688,  30, 5);
  285.         MoveObject(ship3, 836.79998779297, -2698, 11.5, 5);
  286.         return 1;
  287.     }
  288.     if (strcmp("/lower1", cmdtext, true, 10) == 0)
  289.     {
  290.         MoveObject(ship1, 836, -2178, -10.10000038147, 5);
  291.         MoveObject(ship2, 828.4697265625, -2181.2197265625, 20.10000038147, 5);
  292.         MoveObject(ship3, 836.02001953125, -2079, 1.3999999761581, 5);
  293.         return 1;
  294.     }
  295.     if (strcmp("/lower2", cmdtext, true, 10) == 0)
  296.     {
  297.         MoveObject(ship1, 836.81744384766, -2797, -10.10000038147, 5);
  298.         MoveObject(ship2, 829.28002929688, -2800.2299804688,  20.10000038147, 5);
  299.         MoveObject(ship3, 836.79998779297, -2698, 1.32, 5);
  300.         return 1;
  301.     }
  302.     if (strcmp("/lower", cmdtext, true, 10) == 0)
  303.     {
  304.         MoveObject(lift1, 806.59997558594, -3083, 0.89999997615814, 20);
  305.         RotateObject(lift1, 0, 0, 0, 1);
  306.         return 1;
  307.     }
  308.     if (strcmp("/raise", cmdtext, true, 10) == 0)
  309.     {
  310.         MoveObject(lift1, 582.30975341797, -3295.5485839844, 45.200000762939, 20);
  311.         RotateObject(lift1, 0, 0, 347, 1);
  312.         return 1;
  313.     }
  314.     if (strcmp("/planetest", cmdtext, true, 10) == 0)
  315.     {
  316.         plane = CreateObject(1683, 659.45733642578, -2800.443359375, 35, 0, 356, 270);
  317.         MoveObject(plane, 652.84991455078, -2950.4885253906, 7.1876263618469, 20);
  318.         MoveObject(plane2, 631.84991455078, -2920.4885253906, 3.4, 30);
  319.         return 1;
  320.     }
  321.     if (strcmp("/clearfield", cmdtext, true, 10) == 0)
  322.     {
  323.         DestroyObject(plane);
  324.         DestroyObject(plane2);
  325.         plane2 = CreateObject(1681, 631.84991455078, -3080.4885253906, 3.4, 0, 0, 0);
  326.         return 1;
  327.     }
  328.     return 0;
  329.  
  330. }
  331.  
  332.  
  333. public OnPlayerPickUpPickup(playerid, pickupid)
  334. {
  335.     if(pickupid == pickup1)
  336.     {
  337.     SetPlayerPos(playerid, 2335.27, -1138.87, 1054.30);
  338.     SetPlayerInterior(playerid, 12);
  339.     }
  340.     if(pickupid == pickup2)
  341.     {
  342.     SetPlayerPos(playerid, 832.52105712891, -3117.3464355469, 5.419695854187);
  343.     SetPlayerInterior(playerid, 0);
  344.     }
  345.     if(pickupid == pickup3)
  346.     {
  347.     SetPlayerPos(playerid, 2313.44, -1138.89, 1054.30 );
  348.     SetPlayerInterior(playerid, 12);
  349.     }
  350.     if(pickupid == pickup4)
  351.     {
  352.     SetPlayerPos(playerid, 832.52105712891, -3117.3464355469, 5.419695854187);
  353.     SetPlayerInterior(playerid, 0);
  354.     }
  355.     return 1;
  356. }
  357.  
  358. public OnObjectMoved(objectid)
  359. {
  360.     if((objectid) == androm1)
  361.     {
  362.         DestroyObject(androm1);
  363.         DestroyObject(androm2);
  364.        
  365.         androm1 = CreateObject(14553, 2067.2434082031, -2496.7824707031, 17, 13, 0, 290);
  366.         androm2 = CreateObject(14548, 2070.2, -2496.8000488281, 17.6, 13, 0, 290);
  367.     }
  368.     if((objectid) == plane)
  369.     {
  370.         RotateObject(plane, 0, 358, 270, 10);
  371.         RotateObject(plane, 0, 358, 270, 5);
  372.         RotateObject(plane, 0, 360, 270, 5);
  373.         MoveObject(plane, 652.84991455078, -3057.4885253906, 7.1876263618469, 15);
  374.     }
  375.     if((objectid) == plane2)
  376.     {
  377.         MoveObject(plane2, 631.84991455078, -2500.4885253906, 35, 30);
  378.     }
  379. }
  380.  
  381. public OnObjectRotated(objectid)
  382. {
  383.     return 1;
  384. }
  385. public OnObjectStopRotate(objectid)
  386. {
  387.     return 1;
  388. }
  389. public OnObjectStopBucle(objectid)
  390. {
  391.     return 1;
  392. }
  393.  
  394. public OnPlayerSpawn(playerid)
  395. {
  396.     if(IsPlayerNPC(playerid))
  397.     {
  398.         new npcname[MAX_PLAYER_NAME];
  399.         GetPlayerName(playerid, npcname, sizeof(npcname));
  400.         if(!strcmp(npcname, "[BOT]Guard", true))
  401.         {
  402.             SetPlayerSkin(playerid, 164);
  403.             return 1;
  404.         }
  405.         if(!strcmp(npcname, "[BOT]Golfcaddy_Guard", true))
  406.         {
  407.             PutPlayerInVehicle(playerid, gg, 0);
  408.             return 1;
  409.         }
  410.         return 1;
  411.     }
  412.     return 1;
  413. }
  414.  
  415. public OnPlayerText(playerid, text[])
  416. {
  417.     if (strfind(text, "Patrol Silent!") != -1)
  418.     {
  419.         SendClientMessage(playerid, COLOR_WHITE, "Mitchell: Yes sir");
  420.         GivePlayerWeapon(playerid, 347, 999999);
  421.     }
  422.     if (strfind(text, "What are you doing, Mitchell?") != -1)
  423.     {
  424.         SendClientMessage(playerid, COLOR_WHITE, "~w~Mitchell: Uuuhm? What i'm supposed to do..*turns computer screen off*");
  425.         ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  426.     }
  427.     if (strfind(text, "Park my car") != -1)
  428.     {
  429.         SendClientMessage(playerid, COLOR_WHITE, "Valet: Ofcourse, Sir");
  430.     }
  431.     if (strfind(text, "You made a scratch on my ride!") != -1)
  432.     {
  433.         SendClientMessage(playerid, COLOR_WHITE, "Valet: I'm sorry sir, Here is money for a repair");
  434.         GivePlayerMoney(playerid, 900);
  435.     }
  436.     if (strfind(text, "Hello Norman") != -1)
  437.     {
  438.         SendClientMessage(playerid, COLOR_WHITE, "Norman: Hello sir.");
  439.     }
  440.     if (strfind(text, "Hello Charlie") != -1)
  441.     {
  442.         SendClientMessage(playerid, COLOR_WHITE, "Charlie: Hello Mr.");
  443.     }
  444.     if (strfind(text, "Hello guys") != -1)
  445.     {
  446.         SendClientMessage(playerid, COLOR_WHITE, "Bots: Hello");
  447.     }
  448.     if (strfind(text, "Hello Guard") != -1)
  449.     {
  450.         SendClientMessage(playerid, COLOR_WHITE, "Guard: Hello....");
  451.     }
  452.     if (strfind(text, "Bye Norman") != -1)
  453.     {
  454.         SendClientMessage(playerid, COLOR_WHITE, "Norman: Goodbye!");
  455.     }
  456.     if (strfind(text, "Bye Charlie") != -1)
  457.     {
  458.         SendClientMessage(playerid, COLOR_WHITE, "Charlie: Bye Bye!");
  459.     }
  460.     if (strfind(text, "Bye Guard") != -1)
  461.     {
  462.         SendClientMessage(playerid, COLOR_WHITE, "Guard: Bye...");
  463.     }
  464.     return 1;
  465. }
  466.  
  467. public Resetgate1()
  468. {
  469. MoveObject(gate1, 834.59997558594, -3030.189453125, 1.7, 1);
  470. RotateObject(gb1, 0, 89.5, 0, 40);
  471. }
  472.  
  473. public Resetgate2()
  474. {
  475. MoveObject(gate2, 839.72424316406, -3017.4499511719, 1.7, 1);
  476. RotateObject(gb2, 0, 270, 0, 40);
  477. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement