Advertisement
Guest User

Untitled

a guest
Jan 4th, 2012
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.78 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7. #include <sscanf2>
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. //Color Defines
  12. #define COLOR_RED 0xFF0000FF
  13. #define COLOR_BLUE 0x0000FFFF
  14. #define COLOR_PINK 0xFF0080FF
  15. #define COLOR_PURPLE 0xC700D7FF
  16. #define COLOR_GREEN 0x00FF00FF
  17. #define COLOR_YELLOW 0xFFFF00FF
  18. #define COLOR_WHITE 0xFFFFFFFF
  19. #define COLOR_CARROT 0xFF8000FF
  20. #define COLOR_GRAY 0xAFAFAFFF
  21. #define COLOR_PINK 0xFF0080FF
  22. #define COLOR_CYAN 0x00FFF9FF
  23. #define COLOR_GOLD 0xA79B58FF
  24. //Embed Defines
  25. #define EMBED_RED "{FF0000}"
  26. #define EMBED_BLUE "{0000FF}"
  27. #define EMBED_PINK "{FF0080}"
  28. #define EMBED_PURPLE "{C700D7}"
  29. #define EMBED_GREEN "{00FF00}"
  30. #define EMBED_YELLOW "{FFFF00}"
  31. #define EMBED_WHITE "{FFFFFF}"
  32. #define EMBED_CARROT "{FF8000}"
  33. #define EMBED_GRAY "{AFAFAF}"
  34. #define EMBED_PINK "{FF0080}"
  35. #define EMBED_CYAN "{00FFF9}"
  36. #define EMBED_GOLD "{A79B58}"
  37.  
  38. new MainLift[2];
  39. new SideGate;
  40. new InnerGate;
  41. new LiftMoving[MAX_PLAYERS];
  42. new GateMoving[MAX_PLAYERS];
  43.  
  44. public OnFilterScriptInit()
  45. {
  46. printf("Army base filterscript by Azzeto.");
  47. //Area 51 mapped Objects
  48. AddStaticVehicleEx(520,179.50000000,1834.90002441,25.00000000,0.00000000,-1,-1,350); //Hydra
  49. AddStaticVehicleEx(520,197.00000000,1834.90002441,25.00000000,0.00000000,-1,-1,350); //Hydra
  50. AddStaticVehicleEx(548,197.50000000,1931.09997559,25.10000038,180.00000000,-1,-1,350); //Cargobob
  51. AddStaticVehicleEx(548,216.60000610,1931.69995117,25.10000038,180.00000000,-1,-1,350); //Cargobob
  52. AddStaticVehicleEx(470,193.39999390,1920.09997559,17.79999924,180.00000000,-1,-1,350); //Patriot
  53. AddStaticVehicleEx(470,220.30000305,1920.09997559,17.79999924,180.00000000,-1,-1,350); //Patriot
  54. AddStaticVehicleEx(433,202.39999390,1917.80004883,18.20000076,180.00000000,-1,-1,350); //Barracks
  55. AddStaticVehicleEx(433,211.89999390,1917.90002441,18.20000076,180.00000000,-1,-1,350); //Barracks
  56. AddStaticVehicleEx(432,277.10000610,1951.09997559,17.70000076,270.00000000,-1,-1,350); //Rhino
  57. AddStaticVehicleEx(432,277.10000610,1959.40002441,17.70000076,270.00000000,-1,-1,350); //Rhino
  58. AddStaticVehicleEx(476,281.29998779,1989.69995117,18.79999924,270.00000000,-1,-1,350); //Rustler
  59. AddStaticVehicleEx(432,281.20001221,2019.00000000,17.70000076,270.00000000,-1,-1,350); //Rhino
  60. AddStaticVehicleEx(432,281.39999390,2027.59997559,17.70000076,270.00000000,-1,-1,350); //Rhino
  61. AddStaticVehicleEx(432,221.80000305,1856.80004883,13.19999981,0.00000000,-1,-1,350); //Rhino
  62. AddStaticVehicleEx(432,214.19999695,1856.59997559,13.19999981,0.00000000,-1,-1,350); //Rhino
  63. AddStaticVehicleEx(490,206.10000610,1863.09997559,13.50000000,270.00000000,-1,-1,350); //FBI Rancher
  64. AddStaticVehicleEx(490,205.89999390,1870.80004883,13.50000000,270.00000000,-1,-1,350); //FBI Rancher
  65. AddStaticVehicleEx(425,348.79998779,1926.59997559,19.10000038,90.00000000,-1,-1,350); //Hunter
  66. AddStaticVehicleEx(425,348.79998779,1986.30004883,19.29999924,90.00000000,-1,-1,350); //Hunter
  67. SideGate = CreateObject(988,96.69999695,1920.40002441,17.70000076,0.00000000,0.00000000,268.75000000); //object(ws_apgate) (1)
  68. CreateObject(3934,179.39999390,1834.80004883,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (1)
  69. CreateObject(3934,197.10000610,1834.90002441,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (2)
  70. CreateObject(3934,197.80000305,1931.90002441,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (3)
  71. CreateObject(3934,216.69999695,1932.09997559,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (4)
  72. InnerGate = CreateObject(980,214.10000610,1875.50000000,13.10000038,0.00000000,0.00000000,0.00000000); //object(airportgate) (2)
  73. CreateObject(5837,126.40000153,1951.50000000,20.10000038,0.00000000,0.00000000,90.00000000); //object(ci_guardhouse1) (1)
  74. CreateObject(3264,142.80000305,1950.30004883,18.39999962,0.00000000,0.00000000,200.00000000); //object(privatesign3) (1)
  75. CreateObject(1491,124.90000153,1949.69995117,18.70000076,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (1)
  76. CreateObject(3263,93.50000000,1923.50000000,17.00000000,0.00000000,0.00000000,280.00000000); //object(privatesign2) (1)
  77. CreateObject(3262,94.30000305,1918.09997559,17.10000038,0.00000000,0.00000000,240.00000000); //object(privatesign1) (1)
  78. CreateObject(8613,284.00000000,1890.09997559,21.00000000,0.00000000,0.00000000,0.00000000); //object(vgssstairs03_lvs) (1)
  79. CreateObject(8613,290.60000610,1898.30004883,21.00000000,0.00000000,0.00000000,180.00000000); //object(vgssstairs03_lvs) (2)
  80. MainLift[0] = CreateObject(971,135.10000610,1945.00000000,18.50000000,89.24981689,180.00000000,179.75000000); //object(subwaygate) (1)
  81. MainLift[1] = CreateObject(971,135.00000000,1937.80004883,18.39999962,89.24743652,179.99450684,179.74731445); //object(subwaygate) (3)
  82. CreateObject(6973,355.89999390,1909.80004883,12.30000019,0.00000000,0.00000000,0.00000000); //object(shamheliprt1) (1)
  83. CreateObject(6973,356.60000610,1970.09997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(shamheliprt1) (2)
  84. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  85. return 1;
  86. }
  87. public OnPlayerConnect(playerid)
  88. {
  89. LiftMoving[playerid] = 0;
  90. GateMoving[playerid] = 0;
  91. return 1;
  92. }
  93. public OnFilterScriptExit()
  94. {
  95. return 1;
  96. }
  97. CMD:liftup(playerid,params[])
  98. {
  99. if(IsPlayerInRangeOfPoint(playerid,10.0,134.7912,1943.0454,19.6578))
  100. {
  101. if(GetPlayerSkin(playerid) != 287) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You're not in the military.");
  102. {
  103. MoveObject(MainLift[0],135.10000610352,1945,25.700000762939,4);
  104. MoveObject(MainLift[1],135,1937.8000488281,25.60000038147,4);
  105. }
  106. }
  107. return 1;
  108. }
  109. CMD:liftdown(playerid,params[])
  110. {
  111. if(IsPlayerInRangeOfPoint(playerid,10.0,134.7912,1943.0454,19.6578))
  112. {
  113. if(GetPlayerSkin(playerid) != 287) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You're not in the military.");
  114. {
  115. {
  116. MoveObject(MainLift[0],135.10000610,1945.00000000,18.50000000,4);
  117. MoveObject(MainLift[1],135.00000000,1937.80004883,18.39999962,4);
  118. }
  119. }
  120. }
  121. return 1;
  122. }
  123. CMD:sgateopen(playerid,params[])
  124. {
  125. if(IsPlayerInRangeOfPoint(playerid,7.5,96.69999695,1920.40002441,17.70000076))
  126. {
  127. if(GetPlayerSkin(playerid) == 287)
  128. {
  129. MoveObject(SideGate,96.699996948242,1925.0999755859,17.700000762939,7.5);
  130. GateMoving[playerid] = 1;
  131. }
  132. }
  133. return 1;
  134. }
  135. CMD:sgateclose(playerid,params[])
  136. {
  137. if(IsPlayerInRangeOfPoint(playerid,7.5,96.69999695,1920.40002441,17.70000076))
  138. {
  139. if(GateMoving[playerid] == 1)
  140. {
  141. MoveObject(SideGate,96.69999695,1920.40002441,17.70000076,7.5);
  142. GateMoving[playerid] = 0;
  143. }
  144. }
  145. return 1;
  146. }
  147. CMD:igateopen(playerid,params[])
  148. {
  149. if(IsPlayerInRangeOfPoint(playerid,7.5,214.10000610,1875.50000000,13.10000038))
  150. {
  151. if(GetPlayerSkin(playerid) == 287)
  152. {
  153. MoveObject(InnerGate,214.10000610352,1875.5,8.6000003814697,7.5);
  154. GateMoving[playerid] = 1;
  155. }
  156. }
  157. return 1;
  158. }
  159. CMD:igateclose(playerid,params[])
  160. {
  161. if(IsPlayerInRangeOfPoint(playerid,7.5,214.10000610,1875.50000000,13.10000038))
  162. {
  163. MoveObject(InnerGate,214.10000610,1875.50000000,13.10000038,7.5);
  164. GateMoving[playerid] = 0;
  165. }
  166. return 1;
  167. }
  168. CMD:skin(playerid,params[])
  169. {
  170. SetPlayerSkin(playerid,287);
  171. return 1;
  172. }
  173. CMD:area51(playerid,params[])
  174. {
  175. SetPlayerPos(playerid,124.8262,1959.2607,19.4685);
  176. return 1;
  177. }
  178. CMD:area51help(playerid,params[])
  179. {
  180. SendClientMessage(playerid,COLOR_WHITE,"/sgateopen - /sgateclose");
  181. SendClientMessage(playerid,COLOR_WHITE,"/liftup - /liftdown");
  182. SendClientMessage(playerid,COLOR_WHITE,"/igateopen - /igateclose");
  183. return 1;
  184. }
  185. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement