Guest User

Monkey Stunter

a guest
Feb 14th, 2010
1,158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.24 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #pragma tabsize 0
  4.  
  5. new PDDOORa;
  6. new PDDOORb;
  7. new PDDOORc;
  8. new PDDOORd;
  9. new PDWINDOW;
  10. new CELLDOOR;
  11. new PDGATE;
  12. new PDGARAGE;
  13. new PDELEVATOR;
  14. new COMPOUNDGATE;
  15.  
  16.  
  17. #define COLOR_GREY 0xAFAFAFAA
  18. #define COLOR_PURPLE 0xC2A2DAAA
  19. #define COLOR_WHITE 0xFFFFFFAA
  20. #define COLOR_DBLUE 0x2641FEAA
  21. #define COLOR_BLUE 0x33AAFFFF
  22. #define COLOR_GREEN 0x33AA33AA
  23. #define COLOR_ORANGE 0xFF9900AA
  24. #define COLOR_PINK 0xFF69B4FF
  25. #define COLOR_BGREEN 0x08FD04FF
  26. #define COLOR_CYAN 0x00FFFFAA
  27. #define COLOR_RED 0xFF3366FF
  28. #define COLOR_YELLOW 0xFFCC33FF
  29. #define COLOR_DGREEN 0x008000FF
  30. #define COLOR_DRED 0x800000FF
  31. #define COLOR_DARK 0x000000FF
  32.  
  33. // This is a comment
  34. // uncomment the line below if you want to write a filterscript
  35. //#define FILTERSCRIPT
  36. #define Filterscript
  37. #if defined FILTERSCRIPT
  38.  
  39. public OnFilterScriptInit()
  40. {
  41. print("\n--------------------------------------");
  42. print(" LSPD Gates & Doors by Avenger678");
  43. print("--------------------------------------\n");
  44. return 1;
  45. }
  46.  
  47. public OnFilterScriptExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. #else
  53.  
  54. main()
  55. {
  56. print("\n----------------------------------");
  57. print(" LSPD Gates & Doors by Avenger678");
  58. print("----------------------------------\n");
  59. }
  60.  
  61. #endif
  62.  
  63. public OnGameModeInit()
  64. {
  65.  
  66. PDDOORa = CreateObject( 985 , 247.005905 , 72.448440 , 1003.640625 , 0.000000 , 0.000000 , 1260.000000 );
  67. PDDOORb = CreateObject( 985 , 250.774871 , 60.822799 , 1003.640625 , 0.000000 , 0.000000 , 5130.000000 );
  68. PDDOORc = CreateObject( 986 , 248.142105 , 78.125961 , 1003.640625 , 0.000000 , 0.000000 , 12690.000000 );
  69. PDDOORd = CreateObject( 986 , 248.248901 , 87.360313 , 1003.467834 , 0.000000 , 0.000000 , 12690.000000 );
  70. PDWINDOW = CreateObject( 974 , 250.503234 , 67.772872 , 1006.222045 , 0.000000 , 0.000000 , 7830.000000 );
  71. CELLDOOR = CreateObject( 989 , 266.238403 , 81.891395 , 1001.039062 , 0.000000 , 0.000000 , 10816.000000 );
  72. PDGATE = CreateObject( 987 , 1546.113769 , -1621.810913 , 11.709331 , 0.000000 , 0.000000 , 990.000000 );
  73. PDGARAGE = CreateObject( 987 , 1593.301635 , -1638.118530 , 12.467614 , 0.000000 , 0.000000 , 540.000000 );
  74. PDELEVATOR = CreateObject( 988 , 1549.049804 , -1697.787109 , 12.551495 , -90.000000 , 0.000000 , 810.000000 );
  75. COMPOUNDGATE = CreateObject( 986 , 1591.682861 , -1617.880371 , 12.053466 , 0.000000 , 0.000000 , 0.000000 );
  76.  
  77. CreateObject(4882 , 1529.906372 , -1645.990844 , 17.192256 , 0.000000 , 0.000000 , 812.000000 );
  78. CreateObject(8947 , 1550.584350 , -1628.559570 , 24.334913 , 0.000000 , 0.000000 , 0.000000 );
  79. CreateObject(8947 , 1564.935302 , -1628.527343 , 24.324607 , 0.000000 , 0.000000 , 0.000000 );
  80. CreateObject(8947 , 1550.579711 , -1628.601928 , 24.300050 , 180.000000 , 0.000000 , 0.000000 );
  81. CreateObject(8947 , 1564.789306 , -1628.576049 , 24.312379 , 180.000000 , 0.000000 , 0.000000 );
  82. CreateObject(3749 , 1546.750122 , -1627.783447 , 18.306715 , 0.000000 , 0.000000 , 630.000000 );
  83. CreateObject(1635 , 1542.953247 , -1627.944946 , 22.180809 , 0.000000 , 0.000000 , 0.000000 );
  84. CreateObject(9241, 1565.905273, -1698.264893, 28.904495, 0.0000, 0.0000, 270.0000);
  85. CreateObject(9241, 1566.000244, -1653.266724, 28.779516, 0.0000, 0.0000, 270.0000);
  86. CreateObject(8550 , 1555.286376 , -1627.094482 , 31.792537 , 0.000000 , 0.000000 , 0.000000 );
  87.  
  88. CreateObject( 987 , 1539.853759 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
  89. CreateObject( 987 , 1539.853759 , -1605.779907 , 11.450000 , 0.000000 , 0.000000 , 270.000000 );
  90. CreateObject( 987 , 1539.853759 , -1602.585693 , 11.450000 , 0.000000 , 0.000000 , 2070.000000 );
  91. CreateObject( 987 , 1551.839843 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 1260.000000 );
  92. CreateObject( 987 , 1563.804321 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 8100.000000 );
  93. CreateObject( 987 , 1575.796264 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 1260.000000 );
  94. CreateObject( 987 , 1587.784790 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 8100.000000 );
  95. CreateObject( 987 , 1599.765014 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 1260.000000 );
  96. CreateObject( 987 , 1607.886596 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 8100.000000 );
  97. CreateObject( 987 , 1607.750000 , -1614.606567 , 11.450000 , 0.000000 , 0.000000 , 90.000000 );
  98. CreateObject( 987 , 1607.750000 , -1626.607299 , 11.450000 , 0.000000 , 0.000000 , 810.000000 );
  99. CreateObject( 987 , 1607.750000 , -1637.935058 , 11.450000 , 0.000000 , 0.000000 , 810.000000 );
  100. CreateObject( 987 , 1607.750000 , -1638.097900 , 11.450000 , 0.000000 , 0.000000 , 7022.000000 );
  101. CreateObject( 987 , 1551.849731 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
  102. CreateObject( 987 , 1563.764404 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
  103. CreateObject( 987 , 1575.738769 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
  104. CreateObject( 987 , 1595.711425 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
  105.  
  106. AddStaticVehicle(497,1566.6086,-1699.9132,30.9096,2.0264,0,1);
  107. AddStaticVehicle(497,1566.7705,-1652.6370,30.7791,183.1091,0,1);
  108.  
  109.  
  110.  
  111. return 1;
  112. }
  113.  
  114. public OnGameModeExit()
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerCommandText(playerid, cmdtext[])
  120. {
  121. if (strcmp(cmdtext, "/pd1op", true)==0)
  122. {
  123. MoveObject(PDDOORa,247.005905 , 72.448440 , 1003.640625,3.5);//close
  124. MoveObject(PDDOORa,247.005905 , 72.448440 , 1006.912902,3.5);//open
  125. SendClientMessage(playerid, COLOR_YELLOW,"Administration Door Open");
  126. return 1;
  127. }
  128.  
  129. if (strcmp(cmdtext, "/pd1cl", true)==0)
  130. {
  131. MoveObject(PDDOORa,247.005905 , 72.448440 , 1006.912902,3.5);//open
  132. MoveObject(PDDOORa,247.005905 , 72.448440 , 1003.640625,3.5);//close
  133. SendClientMessage(playerid, COLOR_YELLOW,"Administration Door Close");
  134. return 1;
  135. }
  136.  
  137. if (strcmp(cmdtext, "/pd2op", true)==0)
  138. {
  139. MoveObject(PDDOORb,250.774871 , 60.822799 , 1003.640625,3.5);//close
  140. MoveObject(PDDOORb,250.774871 , 60.822799 , 1006.862670,3.5);//open
  141. SendClientMessage(playerid, COLOR_YELLOW,"Desk Door 2 Open");
  142. return 1;
  143. }
  144.  
  145. if (strcmp(cmdtext, "/pd2cl", true)==0)
  146. {
  147. MoveObject(PDDOORb,250.774871 , 60.822799 , 1006.862670,3.5);//open
  148. MoveObject(PDDOORb,250.774871 , 60.822799 , 1003.640625,3.5);//close
  149. SendClientMessage(playerid, COLOR_YELLOW,"Desk Door 2 Close");
  150. return 1;
  151. }
  152.  
  153. if (strcmp(cmdtext, "/pd3op", true)==0)
  154. {
  155. MoveObject(PDDOORc,248.142105 , 78.125961 , 1003.640625,3.5);//close
  156. MoveObject(PDDOORc,248.142105 , 78.125961 , 1007.248718,3.5);//open
  157. SendClientMessage(playerid, COLOR_YELLOW,"Locker Room Open");
  158. return 1;
  159. }
  160.  
  161. if (strcmp(cmdtext, "/pd3cl", true)==0)
  162. {
  163. MoveObject(PDDOORc,248.142105 , 78.125961 , 1007.248718,3.5);//open
  164. MoveObject(PDDOORc,248.142105 , 78.125961 , 1003.640625,3.5);//close
  165. SendClientMessage(playerid, COLOR_YELLOW,"Locker Room Close");
  166. return 1;
  167. }
  168.  
  169. if (strcmp(cmdtext, "/pd4op", true)==0)
  170. {
  171. MoveObject(PDDOORd,248.248901 , 87.360313 , 1003.467834,3.5);//close
  172. MoveObject(PDDOORd,248.248901 , 87.360313 , 1006.931152,3.5);//open
  173. SendClientMessage(playerid, COLOR_YELLOW,"Cell Entrance Open");
  174. return 1;
  175. }
  176.  
  177. if (strcmp(cmdtext, "/pd4cl", true)==0)
  178. {
  179. MoveObject(PDDOORd,248.248901 , 87.360313 , 1006.931152,3.5);//open
  180. MoveObject(PDDOORd,248.248901 , 87.360313 , 1003.467834,3.5);//close
  181. SendClientMessage(playerid, COLOR_YELLOW,"Cell Entrance Close");
  182. return 1;
  183. }
  184.  
  185. if (strcmp(cmdtext, "/pdwop", true)==0)
  186. {
  187. MoveObject(PDWINDOW,250.503234 , 67.772872 , 1006.222045,3.5);//close
  188. MoveObject(PDWINDOW,250.503234 , 67.772872 , 1008.109191,3.5);//open
  189. SendClientMessage(playerid, COLOR_YELLOW,"Window Open");
  190. return 1;
  191. }
  192.  
  193. if (strcmp(cmdtext, "/pdwcl", true)==0)
  194. {
  195. MoveObject(PDWINDOW,250.503234 , 67.772872 , 1008.109191,3.5);//open
  196. MoveObject(PDWINDOW,250.503234 , 67.772872 , 1006.222045,3.5);//close
  197. SendClientMessage(playerid, COLOR_YELLOW,"Window Close");
  198. return 1;
  199. }
  200.  
  201. if (strcmp(cmdtext, "/celop", true)==0)
  202. {
  203. MoveObject(CELLDOOR,266.238403 , 81.891395 , 1001.039062,3.5);//close
  204. MoveObject(CELLDOOR,266.238403 , 81.891395 , 1004.377380,3.5);//open
  205. SendClientMessage(playerid, COLOR_YELLOW,"Celldoor Open");
  206. return 1;
  207. }
  208.  
  209. if (strcmp(cmdtext, "/celcl", true)==0)
  210. {
  211. MoveObject(CELLDOOR,266.238403 , 81.891395 , 1004.377380,3.5);//open
  212. MoveObject(CELLDOOR,266.238403 , 81.891395 , 1001.039062,3.5);//close
  213. SendClientMessage(playerid, COLOR_YELLOW,"Celldoor Close");
  214. return 1;
  215. }
  216.  
  217. if (strcmp(cmdtext, "/pdgatop", true)==0)
  218. {
  219. MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close
  220. MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open
  221. SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD, Gate Open");
  222. return 1;
  223. }
  224.  
  225. if (strcmp(cmdtext, "/pdgatcl", true)==0)
  226. {
  227. MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open
  228. MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close
  229. SendClientMessage(playerid, COLOR_YELLOW,"Gate Close");
  230. return 1;
  231. }
  232.  
  233. if (strcmp(cmdtext, "/pdgarop", true)==0)
  234. {
  235. MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 12.467614,3.5);//close
  236. MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 6.142154,3.5);//open
  237. SendClientMessage(playerid, COLOR_YELLOW,"Garage Open");
  238. return 1;
  239. }
  240.  
  241. if (strcmp(cmdtext, "/pdgarcl", true)==0)
  242. {
  243. MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 6.142154,3.5);//open
  244. MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 12.467614,3.5);//close
  245. SendClientMessage(playerid, COLOR_YELLOW,"Garage Close");
  246. return 1;
  247. }
  248.  
  249. if (strcmp(cmdtext, "/pdelup", true)==0)
  250. {
  251. MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 12.551495,3.5);//down
  252. MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 27.134717,3.5);//up
  253. SendClientMessage(playerid, COLOR_YELLOW,"Garage Open");
  254. return 1;
  255. }
  256.  
  257. if (strcmp(cmdtext, "/pdeldo", true)==0)
  258. {
  259. MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 27.134717,3.5);//up
  260. MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 12.551495,3.5);//down
  261. SendClientMessage(playerid, COLOR_YELLOW,"Garage Close");
  262. return 1;
  263. }
  264.  
  265. if (strcmp(cmdtext, "/pdcompop", true)==0)
  266. {
  267. MoveObject(COMPOUNDGATE,1591.682861 , -1617.880371 , 12.053466,3.5);//close
  268. MoveObject(COMPOUNDGATE,1583.598754 , -1617.880371 , 12.053466,3.5);//open
  269. SendClientMessage(playerid, COLOR_YELLOW,"Compound Open");
  270. return 1;
  271. }
  272.  
  273. if (strcmp(cmdtext, "/pdcompcl", true)==0)
  274. {
  275. MoveObject(COMPOUNDGATE,1583.598754 , -1617.880371 , 12.053466,3.5);//open
  276. MoveObject(COMPOUNDGATE,1591.682861 , -1617.880371 , 12.053466,3.5);//close
  277. SendClientMessage(playerid, COLOR_YELLOW,"Compound Close");
  278. return 1;
  279. }
  280.  
  281. return 0;
  282. }
Advertisement
Add Comment
Please, Sign In to add comment