Guest User

Mephisto

a guest
May 2nd, 2008
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.53 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #pragma tabsize 0
  4. forward GateCloseLSPDGATE();
  5. forward GateCloseLSPDGAR();
  6. forward EL1DOWN();
  7. forward EL2DOWN();
  8. forward EL3DOWN();
  9. new EL1;
  10. new EL2;
  11. new EL3;
  12. new LSPDGATE;
  13. new LSPDGAR;
  14.  
  15. #define COLOR_GREY 0xAFAFAFAA
  16. #define COLOR_PURPLE 0xC2A2DAAA
  17. #define COLOR_WHITE 0xFFFFFFAA
  18. #define COLOR_DBLUE 0x2641FEAA
  19. #define COLOR_BLUE 0x33AAFFFF
  20. #define COLOR_GREEN 0x33AA33AA
  21. #define COLOR_ORANGE 0xFF9900AA
  22. #define COLOR_PINK 0xFF69B4FF
  23. #define COLOR_BGREEN 0x08FD04FF
  24. #define COLOR_CYAN 0x00FFFFAA
  25. #define COLOR_RED 0xFF3366FF
  26. #define COLOR_YELLOW 0xFFCC33FF
  27. #define COLOR_DGREEN 0x008000FF
  28. #define COLOR_DRED 0x800000FF
  29. #define COLOR_DARK 0x000000FF
  30.  
  31. // This is a comment
  32. // uncomment the line below if you want to write a filterscript
  33. //#define FILTERSCRIPT
  34. #define Filterscript
  35. #if defined FILTERSCRIPT
  36.  
  37. public OnFilterScriptInit()
  38. {
  39. print("\n--------------------------------------");
  40. print(" Blank Filterscript by your name here");
  41. print("--------------------------------------\n");
  42. return 1;
  43. }
  44.  
  45. public OnFilterScriptExit()
  46. {
  47. return 1;
  48. }
  49.  
  50. #else
  51.  
  52. main()
  53. {
  54. print("\n----------------------------------");
  55. print(" Blank Gamemode by your name here");
  56. print("----------------------------------\n");
  57. }
  58.  
  59. #endif
  60.  
  61. public OnGameModeInit()
  62. {
  63. CreateObject(987,1539.434,-1633.052,12.547,0.0,0.0,-90.000);
  64. CreateObject(987,1539.645,-1645.169,12.407,0.0,0.0,0.0);
  65. CreateObject(987,1539.665,-1624.030,12.547,0.0,0.0,88.281);
  66. CreateObject(987,1539.605,-1617.624,14.998,0.0,0.0,0.0);
  67. CreateObject(987,1551.277,-1606.102,12.547,0.0,0.0,270.482);
  68. CreateObject(987,1539.637,-1617.429,14.973,0.0,0.0,90.077);
  69. CreateObject(987,1539.547,-1602.434,14.948,0.0,0.0,-90.000);
  70. CreateObject(987,1539.659,-1602.436,14.965,0.0,0.0,0.0);
  71. CreateObject(987,1550.704,-1602.731,12.383,0.0,0.0,-87.422);
  72. CreateObject(987,1551.665,-1602.437,14.932,0.0,0.0,0.0);
  73. CreateObject(987,1563.655,-1602.412,14.892,0.0,0.0,0.0);
  74. CreateObject(987,1575.683,-1602.462,14.820,0.0,0.0,0.0);
  75. CreateObject(987,1587.639,-1602.437,14.766,0.0,0.0,0.0);
  76. CreateObject(987,1596.129,-1602.435,14.770,0.0,0.0,0.0);
  77. CreateObject(987,1608.206,-1602.594,14.772,0.0,0.0,-91.796);
  78. CreateObject(987,1607.888,-1614.759,14.752,0.0,0.0,-89.218);
  79. CreateObject(987,1608.038,-1626.662,14.712,0.0,0.0,-88.358);
  80. CreateObject(987,1608.237,-1638.068,14.715,0.0,0.0,-180.000);
  81. CreateObject(987,1608.282,-1637.703,18.879,0.0,0.0,-180.000);
  82. CreateObject(987,1593.149,-1637.737,17.804,0.0,0.0,-178.281);
  83. CreateObject(987,1581.182,-1638.198,17.729,0.0,0.0,-180.000);
  84. CreateObject(987,1542.714,-1637.733,26.527,0.0,0.0,0.0);
  85. CreateObject(987,1542.822,-1637.649,26.564,0.0,0.0,-87.422);
  86. CreateObject(987,1541.220,-1649.638,26.777,0.0,0.0,0.0);
  87. CreateObject(987,1553.038,-1649.896,26.802,0.0,0.0,-90.000);
  88. CreateObject(987,1577.582,-1677.224,27.396,0.0,0.0,-179.141);
  89. CreateObject(987,1577.666,-1680.146,27.396,0.0,0.0,90.000);
  90. CreateObject(987,1577.519,-1683.063,27.396,0.0,0.0,90.000);
  91. CreateObject(987,1577.805,-1694.427,27.396,0.0,0.0,-268.281);
  92. CreateObject(987,1577.615,-1694.530,27.396,0.0,0.0,-90.000);
  93. CreateObject(9241,1565.957,-1653.482,26.580,0.0,0.0,-180.000);
  94. CreateObject(1499,1549.571,-1617.785,12.541,0.0,0.0,0.0);
  95. CreateObject(987,1577.988,-1660.943,27.432,0.0,0.0,-90.000);
  96. CreateObject(987,1577.865,-1660.951,27.333,0.0,0.0,90.000);
  97. CreateObject(987,1577.881,-1641.485,25.833,0.0,0.0,-90.000);
  98. CreateObject(987,1577.789,-1637.472,26.952,0.0,0.0,-90.000);
  99. CreateObject(987,1562.452,-1637.321,26.612,0.0,0.0,-180.000);
  100. CreateObject(987,1566.530,-1637.569,26.816,0.0,0.0,-1.478);
  101. CreateObject(987,1577.738,-1714.311,27.395,0.0,0.0,90.000);
  102. CreateObject(987,1565.972,-1714.185,27.395,0.0,0.0,0.0);
  103. CreateObject(987,1553.983,-1714.311,27.395,0.0,0.0,0.0);
  104. CreateObject(987,1542.757,-1714.286,27.395,0.0,0.0,0.0);
  105. CreateObject(987,1543.020,-1702.246,27.395,0.0,0.0,-90.000);
  106. CreateObject(987,1542.927,-1702.196,27.421,-0.859,0.0,6.953);
  107. CreateObject(987,1554.750,-1700.727,27.270,0.0,0.0,90.000);
  108. CreateObject(987,1554.917,-1688.888,27.271,0.0,0.0,45.000);
  109. CreateObject(1698,1573.299,-1668.546,39.887,0.0,0.0,-90.000);
  110. CreateObject(1698,1573.300,-1667.326,39.906,0.0,0.0,-90.000);
  111. CreateObject(1698,1573.290,-1666.468,39.900,0.0,0.0,-90.000);
  112. CreateObject(1698,1571.810,-1666.380,39.919,0.0,0.0,0.0);
  113. CreateObject(1698,1573.306,-1665.328,39.919,0.0,0.0,-90.000);
  114. CreateObject(1698,1571.770,-1668.015,37.343,-137.510,0.0,-46.719);
  115. CreateObject(1698,1572.947,-1666.938,38.788,-138.369,0.0,-49.375);
  116. CreateObject(16644,1573.618,-1672.611,39.967,0.0,0.0,-90.000);
  117. CreateObject(16644,1574.070,-1672.644,39.944,0.0,0.0,-90.000);
  118. CreateObject(16644,1573.998,-1673.809,39.996,0.0,0.0,-90.000);
  119. CreateObject(16644,1574.100,-1673.802,40.114,0.0,0.0,-90.000);
  120. CreateObject(3279,1548.141,-1642.468,27.478,0.0,0.0,0.0);
  121. CreateObject(3279,1548.386,-1706.999,27.470,0.0,0.0,0.0);
  122. CreateObject(9241,1564.943,-1701.017,26.629,0.0,0.0,0.0);
  123. CreateObject(987,1572.501,-1637.734,22.545,0.0,0.0,0.0);
  124. CreateObject(987,1583.701,-1638.208,28.943,145.245,-2.578,-90.000);
  125. CreateObject(987,1583.770,-1649.659,28.944,146.104,0.0,-90.000);
  126. CreateObject(987,1583.820,-1661.329,28.846,145.245,0.0,-90.000);
  127. CreateObject(987,1584.047,-1673.252,28.803,142.667,0.0,-90.000);
  128. CreateObject(987,1576.190,-1669.345,24.845,-91.100,0.0,-90.000);
  129. CreateObject(987,1577.763,-1678.417,24.959,-92.819,-0.859,-90.000);
  130. CreateObject(987,1584.095,-1684.751,28.756,140.088,0.0,-90.000);
  131. CreateObject(987,1584.229,-1695.988,28.709,137.510,0.0,-86.562);
  132. CreateObject(987,1578.400,-1705.126,24.902,-92.819,0.0,-92.578);
  133. CreateObject(987,1585.448,-1705.301,27.892,136.651,-1.719,-83.984);
  134. CreateObject(1499,1577.307,-1635.860,12.575,0.0,0.0,-90.000);
  135. CreateObject(987,1590.694,-1638.476,12.283,0.0,0.0,0.0);
  136. CreateObject(1499,1582.625,-1638.259,12.371,0.0,0.0,0.0);
  137. CreateObject(16644,1564.719,-1643.595,27.189,0.0,0.0,90.000);
  138. CreateObject(16644,1564.157,-1641.072,27.223,0.0,0.0,-90.000);
  139. LSPDGATE = CreateObject(971,1539.670,-1628.510,15.928,0.0,0.0,-89.141);
  140. //CreateObject(971,1539.567,-1637.498,16.035,0.0,0.0,-450.000); - Movimento Port�o da Frente
  141. LSPDGAR = CreateObject(971,1586.284,-1638.433,15.964,0.0,0.0,177.903);
  142. //CreateObject(971,1576.977,-1638.293,15.929,0.0,0.0,-180.000); - MOvimento GARAGEM
  143. EL1 = CreateObject(2669,1569.070,-1635.112,13.817,0.0,0.0,-90.000);
  144. //CreateObject(2669,1569.069,-1635.136,28.482,0.0,0.0,-90.000); - Movimento EL1
  145. EL2 = CreateObject(2669,1568.493,-1666.246,28.660,0.0,0.0,90.000);
  146. //CreateObject(2669,1568.466,-1666.350,41.350,0.0,0.0,90.000); - Movimento EL2
  147. EL3 = CreateObject(2669,1573.717,-1685.977,41.382,0.0,0.0,-180.000);
  148. //CreateObject(2669,1573.691,-1685.959,28.746,0.0,0.0,0.0); - Movimento EL3
  149. CreateObject(987,1553.091,-1661.630,26.733,0.0,0.0,-45.000);
  150. return 1;
  151. }
  152.  
  153. public OnGameModeExit()
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnPlayerCommandText(playerid, cmdtext[])
  159. {
  160. if (strcmp(cmdtext, "/lspdgate", true)==0)
  161. {
  162. MoveObject(LSPDGATE,1539.670,-1628.510,15.928, 3.5);//Fechado
  163. MoveObject(LSPDGATE,1539.567,-1637.498,16.035, 3.5);//Aberto
  164. SetTimer("GateCloseLSPDGATE", 5000, 0);
  165. SendClientMessage(playerid, COLOR_YELLOW,"Be Welcome to the LSPD the Gate will AutoClose in 5 Seconds");
  166. return 1;
  167. }
  168. if (strcmp(cmdtext, "/lspdgar", true)==0)
  169. {
  170. MoveObject(LSPDGAR,1586.284,-1638.433,15.964, 3.5);//Fechado
  171. MoveObject(LSPDGAR,1576.977,-1638.293,15.929, 3.5);//Aberto
  172. SetTimer("GateCloseLSPDGAR", 5000, 0);
  173. SendClientMessage(playerid, COLOR_YELLOW,"Be Welcome to the LSPD Garage the Gate will AutoClose in 5 Seconds");
  174. return 1;
  175. }
  176. if (strcmp(cmdtext, "/LSPDEL1", true)==0)
  177. {
  178. MoveObject(EL1,1569.070,-1635.112,13.817, 3.5);//Encima
  179. MoveObject(EL1,1569.069,-1635.136,28.482, 3.5);//Embaixo
  180. SetTimer("EL1DOWN", 9000, 0);
  181. SendClientMessage(playerid, COLOR_YELLOW, "Be Welcome to the LSPD Elevator the will Go Up/Down and Return After 9 Seconds");
  182. return 1;
  183. }
  184. if (strcmp(cmdtext, "/LSPDEL2", true)==0)
  185. {
  186. MoveObject(EL2,1568.493,-1666.246,28.660, 3.5);//Encima
  187. MoveObject(EL2,1568.466,-1666.350,41.350, 3.5);//Embaixo
  188. SetTimer("EL2DOWN", 9000, 0);
  189. SendClientMessage(playerid, COLOR_YELLOW,"Be Welcome to the LSPD Elevator the will Go Up/Down and Return After 9 Seconds");
  190. return 1;
  191. }
  192. if (strcmp(cmdtext, "/LSPDEL3", true)==0)
  193. {
  194. MoveObject(EL3,1573.717,-1685.977,41.382, 3.5);//Encima
  195. MoveObject(EL3,1573.691,-1685.959,28.746, 3.5);//Embaixo
  196. SetTimer("EL3DOWN", 9000, 0);
  197. SendClientMessage(playerid, COLOR_YELLOW,"Be Welcome to the LSPD Elevator the will Go Up/Down and Return After 9 Seconds");
  198. return 1;
  199. }
  200. return 0;
  201. }
  202. public GateCloseLSPDGATE()
  203. {
  204. MoveObject(LSPDGATE,1539.567,-1637.498,16.035, 3.5);//Aberto
  205. MoveObject(LSPDGATE,1539.670,-1628.510,15.928, 3.5);//Fechado
  206. return 1;
  207. }
  208. public GateCloseLSPDGAR()
  209. {
  210. MoveObject(LSPDGAR,1576.977,-1638.293,15.929, 3.5);//Aberto
  211. MoveObject(LSPDGAR,1586.284,-1638.433,15.964, 3.5);//Fechado
  212. return 1;
  213. }
  214. public EL1DOWN()
  215. {
  216. MoveObject(EL1,1569.069,-1635.136,28.482, 3.5);//Embaixo
  217. MoveObject(EL1,1569.070,-1635.112,13.817, 3.5);//Encima
  218. return 1;
  219. }
  220. public EL2DOWN()
  221. {
  222. MoveObject(EL2,1568.466,-1666.350,41.350, 3.5);//Embaixo
  223. MoveObject(EL2,1568.493,-1666.246,28.660, 3.5);//Encima
  224. return 1;
  225. }
  226. public EL3DOWN()
  227. {
  228. MoveObject(EL3,1573.691,-1685.959,28.746, 3.5);//Embaixo
  229. MoveObject(EL3,1573.717,-1685.977,41.382, 3.5);//Encima
  230. return 1;
  231. }
  232.  
Advertisement
Add Comment
Please, Sign In to add comment