Advertisement
Guest User

Untitled

a guest
Mar 15th, 2015
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.64 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new bool:exitp;
  4. new bool:vputi;
  5. new bool:lift;
  6. new floorlift[3];
  7.  
  8. new upgate,downgate,picjob;
  9. new bool:PlayerStartJob[MAX_PLAYERS];
  10. new bool:PlayerOnJob[MAX_PLAYERS];
  11. new GetPlayerMetall[MAX_PLAYERS];
  12. new GetPlayerMetallEx[MAX_PLAYERS];
  13. new AllPlayerMetall[MAX_PLAYERS];
  14. new AllPlayerMetallEx[MAX_PLAYERS];
  15. new ExtraMetall[MAX_PLAYERS];
  16. new PlayerSavedSkin[MAX_PLAYERS];
  17.  
  18. #define DIALOG_STARTJOB 49
  19. #define DIALOG_ENDJOB 50
  20.  
  21. forward TimerGiveMiner(playerid);
  22. forward TimerGiveMinerEx(playerid);
  23. forward UpdateExit();
  24. forward UpdateDoors();
  25.  
  26. public OnFilterScriptInit()
  27. {
  28. CreateObject(983, 1678.4000244141, -1098.6999511719, 23.60000038147, 0, 0, 90);
  29. CreateObject(983, 1672, -1098.6999511719, 23.60000038147, 0, 0, 90);
  30. CreateObject(983, 1665.5999755859, -1098.6999511719, 23.60000038147, 0, 0, 90);
  31. CreateObject(983, 1659.1999511719, -1098.6999511719, 23.60000038147, 0, 0, 90);
  32. CreateObject(983, 1652.8000488281, -1098.6999511719, 23.60000038147, 0, 0, 90);
  33. CreateObject(983, 1646.4000244141, -1098.6999511719, 23.60000038147, 0, 0, 90);
  34. CreateObject(983, 1640, -1098.6999511719, 23.60000038147, 0, 0, 90);
  35. CreateObject(983, 1633.5999755859, -1098.6999511719, 23.60000038147, 0, 0, 90);
  36. CreateObject(983, 1627.1999511719, -1098.6999511719, 23.60000038147, 0, 0, 90);
  37. CreateObject(983, 1620.8000488281, -1098.6999511719, 23.60000038147, 0, 0, 90);
  38. CreateObject(983, 1614.4000244141, -1098.6999511719, 23.60000038147, 0, 0, 90);
  39. CreateObject(983, 1608.0999755859, -1098.6999511719, 23.60000038147, 0, 0, 90);
  40. CreateObject(983, 1683.1999511719, -1098.6999511719, 23.799999237061, 0, 0, 90);
  41. CreateObject(983, 1685.4000244141, -1102.0999755859, 23.799999237061, 0, 0, 0);
  42. CreateObject(983, 1685.4000244141, -1108.5, 23.799999237061, 0, 0, 0);
  43. CreateObject(983, 1685.4000244141, -1114.9000244141, 23.799999237061, 0, 0, 0);
  44. CreateObject(983, 1685.4000244141, -1121.3000488281, 23.799999237061, 0, 0, 0);
  45. CreateObject(983, 1685.4000244141, -1127.6999511719, 23.799999237061, 0, 0, 0);
  46. CreateObject(983, 1685.4000244141, -1134.0999755859, 23.799999237061, 0, 0, 0);
  47. CreateObject(983, 1685.4000244141, -1140.5, 23.799999237061, 0, 0, 0);
  48. CreateObject(983, 1682.1999511719, -1143.6999511719, 23.700000762939, 0, 0, 90);
  49. CreateObject(983, 1675.8000488281, -1143.6999511719, 23.799999237061, 0, 0, 90);
  50. CreateObject(983, 1669.4000244141, -1143.6999511719, 23.799999237061, 0, 0, 90);
  51. CreateObject(983, 1663, -1143.6999511719, 23.799999237061, 0, 0, 90);
  52. CreateObject(983, 1656.5999755859, -1143.6999511719, 23.799999237061, 0, 0, 90);
  53. CreateObject(983, 1650.1999511719, -1143.6999511719, 23.799999237061, 0, 0, 90);
  54. CreateObject(983, 1647, -1143.6999511719, 23.799999237061, 0, 0, 90);
  55. CreateObject(983, 1605.6999511719, -1101.9000244141, 23.799999237061, 0, 0, 192);
  56. CreateObject(983, 1606.9000244141, -1108.1999511719, 23.799999237061, 0, 0, 189.9970703125);
  57. CreateObject(983, 1607.9000244141, -1114.5, 23.799999237061, 0, 0, 187.9920501709);
  58. CreateObject(983, 1608.6999511719, -1120.9000244141, 23.799999237061, 0, 0, 185.98706054688);
  59. CreateObject(983, 1609.4000244141, -1127.3000488281, 23.799999237061, 0, 0, 185.98207092285);
  60. CreateObject(983, 1610.0999755859, -1133.5999755859, 23.799999237061, 0, 0, 185.98207092285);
  61. CreateObject(983, 1610.4000244141, -1140, 23.799999237061, 0, 0, 179.98205566406);
  62. CreateObject(983, 1613.5999755859, -1143.1999511719, 23.799999237061, 0, 0, 90);
  63. CreateObject(983, 1620, -1143.1999511719, 23.799999237061, 0, 0, 90);
  64. CreateObject(983, 1626.4000244141, -1143.1999511719, 23.799999237061, 0, 0, 90);
  65. CreateObject(985, 1641.3000488281, -1143.5999755859, 24.60000038147, 0, 0, 0);
  66. CreateObject(986, 1633.4000244141, -1143.5999755859, 24.60000038147, 0, 0, 0);
  67. CreateObject(7191, -1901, -1640.69921875, 5, 270, 180.29704284668, 90.505798339844);
  68. CreateObject(7191, -1901.099609375, -1637.099609375, 5, 270, 174.17150878906, 84.924072265625);
  69. CreateObject(7191, -1902.7998046875, -1639, 5, 270, 180, 180);
  70. CreateObject(5153, -1900.6999511719, -1639.5, 27.10000038147, 0, 23.999633789063, 0);
  71. CreateObject(5153, -1900.6999511719, -1638.1999511719, 27.10000038147, 0, 23.999633789063, 0);
  72. CreateObject(1688, 165.30000305176, 127.59999847412, 535.20001220703, 0, 0, 0);
  73. CreateObject(5153, -1901.0999755859, -1641, 21.799999237061, 90, 166.38427734375, 217.61529541016);
  74. CreateObject(5153, -1901.0999755859, -1641, 23.89999961853, 90, 192.02313232422, 191.97094726563);
  75. CreateObject(5153, -1901.0999755859, -1641, 26, 90, 173.66217041016, 210.32653808594);
  76. CreateObject(5153, -1901.0999755859, -1641, 28.10000038147, 90, 171.52404785156, 212.45910644531);
  77. CreateObject(5153, -1903.3000488281, -1638.9000244141, 21.799999237061, 90, 185.21534729004, 108.76779174805);
  78. CreateObject(5153, -1903.3000488281, -1638.9000244141, 23.89999961853, 90, 184.5463104248, 109.4313659668);
  79. CreateObject(5153, -1903.3000488281, -1638.9000244141, 26, 90, 184.60627746582, 109.36590576172);
  80. CreateObject(5153, -1903.3000488281, -1638.9000244141, 28.10000038147, 90, 184.36218261719, 109.6044921875);
  81. CreateObject(9131, -1903.1999511719, -1640.9000244141, 21.89999961853, 0, 0, 90);
  82. CreateObject(9131, -1903.1999511719, -1640.9000244141, 24.10000038147, 0, 0, 90);
  83. CreateObject(9131, -1903.1999511719, -1640.9000244141, 26.200000762939, 0, 0, 90);
  84. CreateObject(9131, -1903.1999511719, -1640.9000244141, 28.39999961853, 0, 0, 90);
  85. CreateObject(5153, -1901.1999511719, -1636.6999511719, 21.799999237061, 90, 184.30581665039, 19.237091064453);
  86. CreateObject(5153, -1901.1999511719, -1636.6999511719, 23.89999961853, 90, 184.3505859375, 19.18212890625);
  87. CreateObject(5153, -1901.1999511719, -1636.6999511719, 26, 90, 175.826171875, 27.706573486328);
  88. CreateObject(5153, -1901.1999511719, -1636.6999511719, 28, 90, 175.77575683594, 27.75146484375);
  89. CreateObject(9131, -1903.1999511719, -1636.8000488281, 21.89999961853, 0, 0, 0);
  90. CreateObject(9131, -1903.1999511719, -1636.8000488281, 24.10000038147, 0, 0, 0);
  91. CreateObject(9131, -1903.1999511719, -1636.8000488281, 26.200000762939, 0, 0, 0);
  92. CreateObject(9131, -1903.1999511719, -1636.8000488281, 28.39999961853, 0, 0, 0);
  93. CreateObject(9131, -1898.9000244141, -1636.8000488281, 21.89999961853, 0, 0, 180);
  94. CreateObject(9131, -1898.9000244141, -1636.8000488281, 24.10000038147, 0, 0, 179.99450683594);
  95. CreateObject(9131, -1898.9000244141, -1636.8000488281, 26.299999237061, 0, 0, 179.99450683594);
  96. CreateObject(9131, -1898.9000244141, -1636.8000488281, 28.39999961853, 0, 0, 179.99450683594);
  97. CreateObject(9131, -1898.9000244141, -1640.9000244141, 21.89999961853, 0, 0, 179.99450683594);
  98. CreateObject(9131, -1898.9000244141, -1640.9000244141, 24.10000038147, 0, 0, 179.99450683594);
  99. CreateObject(9131, -1898.9000244141, -1640.9000244141, 26.200000762939, 0, 0, 179.99450683594);
  100. CreateObject(9131, -1898.9000244141, -1640.9000244141, 28.39999961853, 0, 0, 179.99450683594);
  101. CreateObject(5153, -1898.69921875, -1638.8994140625, 28.200000762939, 90, 183.87551879883, 110.08013916016);
  102. CreateObject(5153, -1900.9000244141, -1639.5, 29.10000038147, 0, 23.999633789063, 0);
  103. CreateObject(5153, -1901.3000488281, -1639.5, 29.10000038147, 0, 23.999633789063, 0);
  104. CreateObject(5153, -1901.3000488281, -1638.0999755859, 29.10000038147, 0, 23.999633789063, 0);
  105. CreateObject(5153, -1900.9000244141, -1638.1999511719, 29.10000038147, 0, 23.999633789063, 0);
  106. CreateObject(9131, -1901.9000244141, -1636.9000244141, 29.10000038147, 0, 90, 0);
  107. CreateObject(9131, -1900, -1636.9000244141, 29.10000038147, 0, 90, 0);
  108. CreateObject(9131, -1903.0999755859, -1639.5999755859, 29.10000038147, 0, 90, 89.999816894531);
  109. CreateObject(9131, -1903.0999755859, -1638.0999755859, 29.10000038147, 0, 90, 90);
  110. CreateObject(9131, -1901.8000488281, -1640.8000488281, 29.10000038147, 90, 192.92098999023, 257.07904052734);
  111. CreateObject(9131, -1900.1999511719, -1640.8000488281, 29.10000038147, 90, 192.919921875, 257.07458496094);
  112. CreateObject(9131, -1898.9000244141, -1639.5, 29.10000038147, 90, 191.77824401855, 348.22174072266);
  113. CreateObject(9131, -1898.9000244141, -1638.0999755859, 29.10000038147, 90, 191.77734375, 348.21716308594);
  114. CreateObject(10244, -1879, -1642.5, 20.5, 0, 0, 90);
  115. CreateObject(1423, -1897.3000488281, -1640.4000244141, 24.799999237061, 0, 0, 0);
  116. CreateObject(1423, -1893.9000244141, -1640.4000244141, 24.799999237061, 0, 0, 0);
  117. CreateObject(1423, -1890.5, -1640.3000488281, 24.799999237061, 0, 0, 0);
  118. CreateObject(1423, -1886.9000244141, -1640.1999511719, 24.799999237061, 0, 0, 0);
  119. CreateObject(1423, -1883.0999755859, -1640.0999755859, 24.799999237061, 0, 0, 0);
  120. CreateObject(7191, -1899.19921875, -1639, 1.2000000476837, 270, 179.99963378906, 179.99963378906);
  121. CreateObject(5153, -1898.9000244141, -1638.5, 21.799999237061, 90, 176.34619140625, 117.60406494141);
  122. CreateObject(5153, -1898.9000244141, -1638.5, 22.799999237061, 90, 183.69140625, 110.25332641602);
  123. CreateObject(7191, -1901.099609375, -1637.099609375, -38.5, 90, 174.16625976563, 96.668823242188);
  124. CreateObject(7191, -1901, -1640.69921875, -38.5, 90, 181.08764648438, 88.79638671875);
  125. CreateObject(7191, -1902.7998046875, -1639, -38.5, 90, 179.99450683594, 179.99450683594);
  126. CreateObject(7191, -1899.19921875, -1639, -35, 90, 180.00549316406, 179.98352050781);
  127. CreateObject(7191, -1901.69921875, -1638.8994140625, -61.299999237061, 0, 90, 270);
  128. CreateObject(1698, -1901.6999511719, -1638.8000488281, -61.099998474121, 0, 0, 0);
  129. CreateObject(1698, -1900.599609375, -1638.7998046875, -61.099998474121, 0, 0, 0);
  130. CreateObject(1698, -1899.5, -1638.8994140625, -61.099998474121, 0, 0, 0);
  131. CreateObject(1698, -1898.19921875, -1638.8994140625, -61.099998474121, 0, 0, 0);
  132. CreateObject(1698, -1896.8994140625, -1638.8994140625, -61.099998474121, 0, 0, 0);
  133. CreateObject(1698, -1895.6999511719, -1638.9000244141, -61.099998474121, 0, 0, 0);
  134. CreateObject(1698, -1894.5999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
  135. CreateObject(1698, -1893.3000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
  136. CreateObject(1698, -1892, -1638.9000244141, -61.099998474121, 0, 0, 0);
  137. CreateObject(1698, -1890.8000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
  138. CreateObject(1698, -1889.8000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
  139. CreateObject(1698, -1888.5, -1638.9000244141, -61.099998474121, 0, 0, 0);
  140. CreateObject(1698, -1887.3000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
  141. CreateObject(1698, -1886.0999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
  142. CreateObject(1698, -1884.9000244141, -1638.9000244141, -61.099998474121, 0, 0, 0);
  143. CreateObject(1698, -1883.5999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
  144. CreateObject(1698, -1882.3000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
  145. CreateObject(1698, -1881.0999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
  146. CreateObject(1698, -1880.099609375, -1638.8994140625, -61.099998474121, 0, 0, 0);
  147. CreateObject(1698, -1898.5, -1637.2998046875, -59.5, 90, 179.99450683594, 179.99450683594);
  148. CreateObject(7191, -1898.5, -1637.19921875, -59, 0, 0, 270);
  149. CreateObject(1698, -1897.1999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  150. CreateObject(1698, -1895.9000244141, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  151. CreateObject(1698, -1894.5999755859, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  152. CreateObject(1698, -1893.2998046875, -1637.2998046875, -59.5, 90, 180.00549316406, 179.98352050781);
  153. CreateObject(1698, -1892, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  154. CreateObject(1698, -1890.6999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  155. CreateObject(1698, -1889.5999755859, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  156. CreateObject(1698, -1888.3000488281, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  157. CreateObject(1698, -1887, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  158. CreateObject(1698, -1885.6999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  159. CreateObject(1698, -1884.4000244141, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  160. CreateObject(1698, -1883.099609375, -1637.2998046875, -59.5, 90, 179.99450683594, 179.99450683594);
  161. CreateObject(1698, -1882, -1637.3000488281, -59.5, 90, 180.00549316406, 179.98352050781);
  162. CreateObject(1698, -1880.69921875, -1637.2998046875, -59.5, 90, 180.00549316406, 179.98352050781);
  163. CreateObject(1698, -1880.1999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
  164. CreateObject(7191, -1899, -1640.69921875, -59.200000762939, 0, 0, 270);
  165. CreateObject(1698, -1898.4000244141, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
  166. CreateObject(1698, -1897.0999755859, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
  167. CreateObject(1698, -1895.8000488281, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
  168. CreateObject(1698, -1894.5, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
  169. CreateObject(1698, -1893.1999511719, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
  170. CreateObject(1698, -1891.9000244141, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
  171. CreateObject(1698, -1890.5999755859, -1640.5999755859, -59.5, 90, 180, 359.98352050781);
  172. CreateObject(1698, -1889.3000488281, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97802734375);
  173. CreateObject(1698, -1888, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97802734375);
  174. CreateObject(1698, -1886.6999511719, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97802734375);
  175. CreateObject(1698, -1885.4000244141, -1640.5999755859, -59.5, 90, 180.00549316406, 359.96704101563);
  176. CreateObject(1698, -1884.099609375, -1640.599609375, -59.5, 90, 180.00549316406, 359.96704101563);
  177. CreateObject(1698, -1882.8000488281, -1640.5999755859, -59.5, 90, 180.00549316406, 359.96704101563);
  178. CreateObject(1698, -1881.5, -1640.599609375, -59.5, 90, 180.00549316406, 359.9670715332);
  179. CreateObject(1698, -1880.1999511719, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97805786133);
  180. CreateObject(1698, -1898.19921875, -1638.8994140625, -57.700000762939, 0, 180, 0);
  181. CreateObject(1698, -1896.9000244141, -1639, -57.700000762939, 0, 179.99450683594, 0);
  182. CreateObject(1698, -1895.5999755859, -1639, -57.700000762939, 0, 179.99450683594, 0);
  183. CreateObject(1698, -1894.3000488281, -1639, -57.700000762939, 0, 179.99450683594, 0);
  184. CreateObject(1698, -1893, -1639, -57.700000762939, 0, 179.99450683594, 0);
  185. CreateObject(1698, -1891.6999511719, -1639, -57.700000762939, 0, 179.99450683594, 0);
  186. CreateObject(1698, -1890.5, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  187. CreateObject(1698, -1889.1999511719, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  188. CreateObject(1698, -1888, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  189. CreateObject(1698, -1886.6999511719, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  190. CreateObject(1698, -1885.4000244141, -1639, -57.700000762939, 0, 179.99450683594, 0);
  191. CreateObject(1698, -1884.0999755859, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  192. CreateObject(1698, -1882.7998046875, -1639, -57.700000762939, 0, 179.99450683594, 0);
  193. CreateObject(1698, -1881.5, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  194. CreateObject(1698, -1880.1999511719, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
  195. CreateObject(1698, -1878.9000244141, -1640.5999755859, -59.5, 90, 180.00549316406, 359.96704101563);
  196. CreateObject(1698, -1877.5999755859, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97805786133);
  197. CreateObject(1698, -1879, -1637.3000488281, -59.400001525879, 90, 179.99450683594, 179.99450683594);
  198. CreateObject(1698, -1877.6999511719, -1637.3000488281, -59.400001525879, 90, 180.00549316406, 179.98352050781);
  199. CreateObject(1698, -1876.3994140625, -1637.2998046875, -59.400001525879, 90, 179.99450683594, 179.99450683594);
  200. CreateObject(1698, -1876.3994140625, -1640.599609375, -59.5, 90, 180.00549316406, 359.9670715332);
  201. CreateObject(1698, -1879.3994140625, -1639.099609375, -61.099998474121, 0, 0, 0);
  202. CreateObject(1698, -1878.6999511719, -1639.0999755859, -61.099998474121, 0, 0, 0);
  203. CreateObject(1698, -1878, -1639.0999755859, -61.099998474121, 0, 0, 0);
  204. CreateObject(1698, -1877.3000488281, -1639.0999755859, -61.099998474121, 0, 0, 0);
  205. CreateObject(1698, -1876.599609375, -1639.099609375, -61.099998474121, 0, 0, 0);
  206. CreateObject(1698, -1878.8994140625, -1639.099609375, -57.700000762939, 0, 179.99450683594, 0);
  207. CreateObject(1698, -1877.69921875, -1639.099609375, -57.700000762939, 0, 179.99450683594, 0);
  208. CreateObject(1698, -1876.4000244141, -1639, -57.700000762939, 0, 179.99450683594, 0);
  209. CreateObject(1698, -1875.6999511719, -1641.1999511719, -59.5, 90, 185.73919677734, 264.26092529297);
  210. CreateObject(1698, -1875.6999511719, -1642.3000488281, -59.5, 90, 187.97314453125, 262.02142333984);
  211. CreateObject(1698, -1875.6999511719, -1643.5999755859, -59.5, 90, 186.34075927734, 263.64831542969);
  212. CreateObject(1698, -1875.6999511719, -1644.9000244141, -59.5, 90, 184.56207275391, 265.42150878906);
  213. CreateObject(1698, -1875.6999511719, -1646.0999755859, -59.5, 90, 185.73486328125, 264.2431640625);
  214. CreateObject(1698, -1875.6999511719, -1636.6999511719, -59.5, 90, 185.15081787109, 264.84362792969);
  215. CreateObject(1698, -1875.6999511719, -1635.4000244141, -59.5, 90, 184.77618408203, 265.21276855469);
  216. CreateObject(1698, -1875.6999511719, -1634.0999755859, -59.5, 90, 184.56420898438, 265.41381835938);
  217. CreateObject(1698, -1875.6999511719, -1632.9000244141, -59.5, 90, 175.69116210938, 274.28143310547);
  218. CreateObject(1698, -1875.6999511719, -1631.6999511719, -59.5, 90, 184.36706542969, 265.59997558594);
  219. CreateObject(6959, -1875.5999755859, -1641.9000244141, -61, 0, 0, 0);
  220. CreateObject(18326, -1791.7998046875, -1629.099609375, -47.900001525879, 332.99560546875, 0, 285.99609375);
  221. CreateObject(1698, -1875, -1646.5, -59.5, 90, 180.00549316406, 359.9670715332);
  222. CreateObject(1698, -1873.6999511719, -1646.5, -59.5, 90, 180.00549316406, 359.96704101563);
  223. CreateObject(1698, -1872.5, -1646.5, -59.5, 90, 180.00549316406, 359.96704101563);
  224. CreateObject(1698, -1871.3000488281, -1646.5, -59.5, 90, 180.00549316406, 359.96704101563);
  225. CreateObject(1698, -1870.1999511719, -1646.5, -59.5, 90, 179.99450683594, 359.97802734375);
  226. CreateObject(1698, -1868.9000244141, -1646.5, -59.400001525879, 90, 179.99450683594, 359.97805786133);
  227. CreateObject(1698, -1875, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
  228. CreateObject(1698, -1873.6999511719, -1631.1999511719, -59.5, 90, 180.00549316406, 179.98352050781);
  229. CreateObject(1698, -1872.4000244141, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
  230. CreateObject(1698, -1871.0999755859, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
  231. CreateObject(1698, -1869.8000488281, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
  232. CreateObject(1698, -1868.5, -1631.1999511719, -59.099998474121, 90, 180.00549316406, 179.98352050781);
  233. CreateObject(1698, -1867.3000488281, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
  234. CreateObject(1698, -1868.3000488281, -1646.5, -56.200000762939, 90, 180.00549316406, 359.96704101563);
  235. CreateObject(1698, -1867, -1646.5, -56.200000762939, 90, 179.99450683594, 359.97805786133);
  236. CreateObject(1698, -1875.5999755859, -1643.4000244141, -57.700000762939, 45, 180, 270);
  237. CreateObject(1698, -1875.5999755859, -1644.6999511719, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  238. CreateObject(1698, -1875.5999755859, -1645.9000244141, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  239. CreateObject(1698, -1875.5999755859, -1642.0999755859, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  240. CreateObject(1698, -1875.5999755859, -1641.1999511719, -57.700000762939, 44.994506835938, 179.99450683594, 269.99996948242);
  241. CreateObject(1698, -1875.5999755859, -1636.6999511719, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  242. CreateObject(1698, -1875.5999755859, -1635.5, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  243. CreateObject(1698, -1875.5999755859, -1634.1999511719, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  244. CreateObject(1698, -1875.5999755859, -1633.0999755859, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  245. CreateObject(1698, -1875.5999755859, -1631.9000244141, -57.700000762939, 44.994506835938, 179.99450683594, 270);
  246. CreateObject(1698, -1874.5999755859, -1637.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  247. CreateObject(1698, -1874.5999755859, -1639.1999511719, -56.700000762939, 44.994506835938, 179.99450683594, 269.99996948242);
  248. CreateObject(1698, -1874.5999755859, -1639.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  249. CreateObject(1698, -1874.5999755859, -1641.1999511719, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  250. CreateObject(1698, -1874.5999755859, -1642.5, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  251. CreateObject(1698, -1874.5999755859, -1643.8000488281, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  252. CreateObject(1698, -1874.5999755859, -1645, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  253. CreateObject(1698, -1874.5999755859, -1645.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  254. CreateObject(1698, -1874.5999755859, -1636.5999755859, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  255. CreateObject(1698, -1874.5999755859, -1635.3000488281, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  256. CreateObject(1698, -1874.5999755859, -1634.0999755859, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  257. CreateObject(1698, -1874.5999755859, -1632.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  258. CreateObject(1698, -1874.5999755859, -1631.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
  259. CreateObject(1698, -1874.9000244141, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
  260. CreateObject(1698, -1872.3000488281, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
  261. CreateObject(1698, -1873.5999755859, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
  262. CreateObject(1698, -1871, -1631.1999511719, -56.200000762939, 90, 180.00549316406, 179.98352050781);
  263. CreateObject(1698, -1869.8000488281, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
  264. CreateObject(1698, -1868.5, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
  265. CreateObject(1698, -1866, -1631.1999511719, -56, 90, 180.00549316406, 179.98352050781);
  266. CreateObject(1698, -1864.9000244141, -1631.1999511719, -55.200000762939, 90, 179.99450683594, 179.99450683594);
  267. CreateObject(1698, -1874.8000488281, -1646.5, -56.200000762939, 90, 180.00549316406, 359.96704101563);
  268. CreateObject(1698, -1873.5, -1646.5, -56.200000762939, 90, 179.99450683594, 359.97802734375);
  269. CreateObject(1698, -1872.1999511719, -1646.5, -56.200000762939, 90, 180.00549316406, 359.9670715332);
  270. CreateObject(1698, -1870.9000244141, -1646.5, -56.200000762939, 90, 179.99450683594, 359.97805786133);
  271. CreateObject(1698, -1869.5999755859, -1646.5, -56.200000762939, 90, 180.00549316406, 359.96704101563);
  272. CreateObject(1698, -1872.6999511719, -1645.4000244141, -55.400001525879, 0, 179.99450683594, 0);
  273. CreateObject(1698, -1872.6999511719, -1642.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  274. CreateObject(1698, -1872.6999511719, -1639.4000244141, -55.400001525879, 0, 179.99450683594, 0);
  275. CreateObject(1698, -1872.6999511719, -1636.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  276. CreateObject(1698, -1872.6999511719, -1633, -55.400001525879, 0, 179.99450683594, 0);
  277. CreateObject(1698, -1872, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  278. CreateObject(1698, -1871.3000488281, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  279. CreateObject(1698, -1870.5999755859, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  280. CreateObject(1698, -1869.9000244141, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  281. CreateObject(1698, -1869.1999511719, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  282. CreateObject(1698, -1868.5, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  283. CreateObject(1698, -1867.8000488281, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  284. CreateObject(1698, -1867.0999755859, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  285. CreateObject(1698, -1866.0999755859, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
  286. CreateObject(1698, -1865.099609375, -1632.2998046875, -55.400001525879, 0, 179.99450683594, 0);
  287. CreateObject(1698, -1872, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  288. CreateObject(1698, -1871.3000488281, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  289. CreateObject(1698, -1870.5999755859, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  290. CreateObject(1698, -1869.9000244141, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  291. CreateObject(1698, -1869.1999511719, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  292. CreateObject(1698, -1868.5999755859, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  293. CreateObject(1698, -1867.3000488281, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  294. CreateObject(1698, -1866, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  295. CreateObject(1698, -1864.6999511719, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
  296. CreateObject(1698, -1871.4000244141, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
  297. CreateObject(1698, -1870.4000244141, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
  298. CreateObject(1698, -1869.0999755859, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
  299. CreateObject(1698, -1867.8000488281, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
  300. CreateObject(1698, -1866.6999511719, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
  301. CreateObject(1698, -1865.3994140625, -1638.599609375, -55.400001525879, 0, 179.99450683594, 0);
  302. CreateObject(1698, -1864, -1631.1999511719, -55.400001525879, 90, 180.00549316406, 179.98352050781);
  303. CreateObject(1698, -1867.5999755859, -1631.1999511719, -58.099998474121, 90, 180.00549316406, 179.98352050781);
  304. CreateObject(1698, -1871.4000244141, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  305. CreateObject(1698, -1870.0999755859, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  306. CreateObject(1698, -1868.9000244141, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  307. CreateObject(1698, -1867.6999511719, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  308. CreateObject(1698, -1866.5, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  309. CreateObject(1698, -1865.1999511719, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  310. CreateObject(1698, -1871.4000244141, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  311. CreateObject(1698, -1870.0999755859, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  312. CreateObject(1698, -1868.8000488281, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  313. CreateObject(1698, -1867.5, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  314. CreateObject(1698, -1866.1999511719, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  315. CreateObject(1698, -1865.5, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  316. CreateObject(1698, -1866.1999511719, -1646.5, -55.599998474121, 90, 180.00549316406, 359.96704101563);
  317. CreateObject(867, -1868.0999755859, -1635.3000488281, -58.5, 0, 327, 358);
  318. CreateObject(867, -1868.599609375, -1644.099609375, -57.799999237061, 0, 313, 357.98950195313);
  319. CreateObject(1698, -1863.9000244141, -1632.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  320. CreateObject(1698, -1863.9000244141, -1634.1999511719, -55.400001525879, 0, 179.99450683594, 0);
  321. CreateObject(1698, -1864.5, -1637.9000244141, -55.400001525879, 0, 179.99450683594, 0);
  322.  
  323. floorlift[0] = CreateObject(1698, -1900.1999511719, -1638.9000244141, 23.89999961853, 0, 0, 0);
  324. floorlift[1] = CreateObject(1698, -1901.4000244141, -1638.9000244141, 23.89999961853, 0, 0, 0);
  325. floorlift[2] = CreateObject(1698, -1902.0999755859, -1638.9000244141, 23.89999961853, 0, 0, 0);
  326. upgate = CreateObject(975, -1899.0999755859, -1633.0, 25.700000762939, 0, 0, 90); //open
  327. downgate = CreateObject(975, -1899.099609375, -1636.599609375, -59.400001525879, 0, 0, 90); //close
  328.  
  329. Create3DTextLabel("Место добычи {00FF00}№1\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1854.7035,-1650.9668,25.7248,30,0,1);
  330. Create3DTextLabel("Место добычи {00FF00}№2\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1803.5344,-1655.2640,25.8294,30,0,1);
  331. Create3DTextLabel("Место добычи {00FF00}№3\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1788.5780,-1640.7179,27.0669,30,0,1);
  332. Create3DTextLabel("Место добычи {00FF00}№4\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1869.1316,-1634.7915,-58.500,30,0,1);
  333. Create3DTextLabel("Место добычи {00FF00}№5\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1868.9603,-1643.6682,-58.046,30,0,1);
  334.  
  335. Create3DTextLabel("/lift{FFFFFF} - вызов/спуск", 0x00FF00FF,-1898.670,-1636.7733,26.0391,15,0,1);
  336. Create3DTextLabel("/lift{FFFFFF} - вызов/подъём",0x00FF00FF,-1898.500,-1637.5000,-58.974,10,0,1);
  337.  
  338. picjob = CreatePickup(1275, 23, -1830.2748,-1639.3976,22.2496, 0);
  339. Create3DTextLabel("Работа шахтёра",0x00FF00FF,-1830.2748,-1639.3976,22.2496,20.0,0);
  340.  
  341. CreateObject(3798,-1870.40002441,-1625.59997559,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (1)
  342. CreateObject(3798,-1870.40002441,-1623.50000000,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (2)
  343. CreateObject(3798,-1868.00000000,-1625.50000000,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (3)
  344. CreateObject(3800,-1866.19995117,-1626.00000000,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (1)
  345. CreateObject(3800,-1870.19995117,-1625.90002441,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (2)
  346. CreateObject(3800,-1868.59997559,-1625.69995117,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (3)
  347. CreateObject(3800,-1870.69995117,-1621.80004883,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (4)
  348. CreateObject(3800,-1870.30004883,-1621.59997559,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (5)
  349. CreateObject(3800,-1868.40002441,-1623.80004883,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (6)
  350. CreateObject(3800,-1865.00000000,-1626.09997559,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (7)
  351. CreateObject(3800,-1870.69995117,-1619.59997559,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (8)
  352. CreateObject(3929,-1803.30004883,-1654.19995117,25.29999924,0.00000000,0.00000000,0.00000000); //object(d_rock) (1)
  353. CreateObject(3929,-1802.40002441,-1654.69995117,25.29999924,0.00000000,0.00000000,40.0000000); //object(d_rock) (2)
  354. CreateObject(3929,-1801.59997559,-1655.09997559,25.89999962,0.00000000,0.00000000,310.000000); //object(d_rock) (3)
  355. CreateObject(3929,-1802.50000000,-1655.90002441,25.29999924,0.00000000,0.00000000,300.000000); //object(d_rock) (4)
  356. CreateObject(3929,-1802.19921875,-1656.79980469,25.50000000,0.00000000,0.00000000,0.00000000); //object(d_rock) (5)
  357. CreateObject(3929,-1786.90002441,-1640.40002441,27.00000000,0.00000000,0.00000000,8.00000000); //object(d_rock) (6)
  358. CreateObject(3929,-1788.50000000,-1640.30004883,25.39999962,0.00000000,0.00000000,40.0000000); //object(d_rock) (7)
  359. CreateObject(3929,-1789.09960938,-1641.50000000,27.00000000,0.00000000,0.00000000,280.000000); //object(d_rock) (8)
  360. CreateObject(3929,-1787.89941406,-1641.39941406,27.00000000,0.00000000,0.00000000,80.0000000); //object(d_rock) (9)
  361. CreateObject(3929,-1856.09997559,-1652.40002441,25.00000000,0.00000000,0.00000000,50.0000000); //object(d_rock) (10)
  362. CreateObject(3929,-1786.69921875,-1639.50000000,26.00000000,0.00000000,0.00000000,294.000000); //object(d_rock) (11)
  363. CreateObject(3929,-1790.69921875,-1639.89941406,25.00000000,0.00000000,0.00000000,30.0000000); //object(d_rock) (12)
  364. CreateObject(3929,-1855.40002441,-1649.50000000,25.00000000,0.00000000,0.00000000,90.0000000); //object(d_rock) (13)
  365. CreateObject(3929,-1856.00000000,-1650.80004883,25.39999962,0.00000000,0.00000000,320.000000); //object(d_rock) (14)
  366. CreateObject(3929,-1856.90002441,-1651.50000000,25.00000000,0.00000000,0.00000000,50.0000000); //object(d_rock) (15)
  367. CreateObject(3929,-1855.00000000,-1652.00000000,24.60000038,0.00000000,0.00000000,320.000000); //object(d_rock) (16)
  368. CreateObject(3929,-1853.90002441,-1654.00000000,23.39999962,0.00000000,0.00000000,60.0000000); //object(d_rock) (17)
  369. CreateObject(3930,-1787.50000000,-1639.40002441,25.50000000,0.00000000,0.00000000,0.00000000); //object(d_rock01) (1)
  370. CreateObject(3931,-1853.50000000,-1650.19995117,24.00000000,0.00000000,0.00000000,350.000000); //object(d_rock02) (1)
  371. CreateObject(3173,-1830.09997559,-1637.30004883,20.79999924,0.00000000,0.00000000,270.000000); //object(trailer_large4_01) (1)
  372. CreateObject(3798,-1837.00000000,-1636.09997559,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (4)
  373. return 1;
  374. }
  375.  
  376. public OnPlayerConnect(playerid)
  377. {
  378. PlayerOnJob[playerid] = false;
  379. PlayerStartJob[playerid] = false;
  380. GetPlayerMetall[playerid] = 0;
  381. AllPlayerMetall[playerid] = 0;
  382. GetPlayerMetallEx[playerid] = 0;
  383. AllPlayerMetallEx[playerid] = 0;
  384. ExtraMetall[playerid] = 0;
  385. return 1;
  386. }
  387.  
  388. public OnPlayerDeath(playerid, killerid, reason)
  389. {
  390. PlayerOnJob[playerid] = false;
  391. PlayerStartJob[playerid] = false;
  392. GetPlayerMetall[playerid] = 0;
  393. AllPlayerMetall[playerid] = 0;
  394. GetPlayerMetallEx[playerid] = 0;
  395. AllPlayerMetallEx[playerid] = 0;
  396. ExtraMetall[playerid] = 0;
  397. return 1;
  398. }
  399.  
  400. public OnPlayerUpdate(playerid)
  401. {
  402. if(PlayerOnJob[playerid] && !PlayerStartJob[playerid] && !IsPlayerInAnyVehicle(playerid))
  403. {
  404. if(IsPlayerInRangeOfPoint(playerid, 1, -1854.7035,-1650.9668,25.7248)
  405. || IsPlayerInRangeOfPoint(playerid, 1, -1803.5344,-1655.2640,25.8294)
  406. || IsPlayerInRangeOfPoint(playerid, 1, -1788.5780,-1640.7179,27.0669))
  407. {
  408. SendClientMessage(playerid, -1, "Вы начали добывать обычный металл.");
  409. SetTimerEx("TimerGiveMiner", 5000, false, "i", playerid);
  410. ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
  411. PlayerStartJob[playerid] = true;
  412. }
  413. if(IsPlayerInRangeOfPoint(playerid, 1, -1869.1316,-1634.7915,-58.500)
  414. || IsPlayerInRangeOfPoint(playerid, 1, -1868.9603,-1643.6682,-58.046))
  415. {
  416. SendClientMessage(playerid, -1, "Вы начали добывать качественный металл.");
  417. SetTimerEx("TimerGiveMinerEx", 5000, false, "i", playerid);
  418. ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
  419. PlayerStartJob[playerid] = true;
  420. }
  421. return 1;
  422. }
  423. if(PlayerStartJob[playerid])
  424. {
  425. if(IsPlayerApplyAnimation(playerid, "FALL_back")
  426. || IsPlayerApplyAnimation(playerid, "FALL_collapse")
  427. || IsPlayerApplyAnimation(playerid, "FALL_fall")
  428. || IsPlayerApplyAnimation(playerid, "FALL_front")
  429. || IsPlayerApplyAnimation(playerid, "FALL_glide")
  430. || IsPlayerApplyAnimation(playerid, "FALL_land")
  431. || IsPlayerApplyAnimation(playerid, "FALL_skyDive")
  432. || IsPlayerApplyAnimation(playerid, "JUMP_glide")
  433. || IsPlayerApplyAnimation(playerid, "JUMP_land")
  434. || IsPlayerApplyAnimation(playerid, "JUMP_launch")
  435. || IsPlayerApplyAnimation(playerid, "JUMP_launch_R"))
  436. {
  437. if(!IsPlayerInRangeOfPoint(playerid, 3, -1854.7035,-1650.9668,25.7248)
  438. && !IsPlayerInRangeOfPoint(playerid, 3, -1803.5344,-1655.2640,25.8294)
  439. && !IsPlayerInRangeOfPoint(playerid, 3, -1788.5780,-1640.7179,27.0669)
  440. && !IsPlayerInRangeOfPoint(playerid, 3, -1869.1316,-1634.7915,-58.500)
  441. && !IsPlayerInRangeOfPoint(playerid, 3, -1868.9603,-1643.6682,-58.046))
  442. {
  443. SendClientMessage(playerid, -1, "Вы уронили металл.");
  444. DisablePlayerCheckpoint(playerid);
  445. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 1);
  446. PlayerStartJob[playerid] = false;
  447. RemovePlayerAttachedObject(playerid, 4);
  448. SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
  449. GetPlayerMetall[playerid] = 0;
  450. GetPlayerMetallEx[playerid] = 0;
  451. return 1;
  452. }
  453. }
  454. }
  455. return 1;
  456. }
  457.  
  458. public OnPlayerPickUpPickup(playerid, pickupid)
  459. {
  460. if(pickupid == picjob)
  461. {
  462. if(!PlayerOnJob[playerid])
  463. {
  464. ShowPlayerDialog(playerid, DIALOG_STARTJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Работа шахтёра", "{FFFFFF}Вы согласны устроится на работу {FFFF00}шахтёра?", "Да", "Нет");
  465. }
  466. else
  467. {
  468. ShowPlayerDialog(playerid, DIALOG_ENDJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Работа шахтёра", "{FFFFFF}Вы согласны уволится с работы {FFFF00}шахтёра?", "Да", "Нет");
  469. }
  470. }
  471. return 1;
  472. }
  473.  
  474. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  475. {
  476. if(dialogid == DIALOG_STARTJOB && response)
  477. {
  478. PlayerStartJob[playerid] = false;
  479. PlayerOnJob[playerid] = true;
  480. PlayerSavedSkin[playerid] = GetPlayerSkin(playerid);
  481. SetPlayerSkin(playerid, 16);
  482. SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
  483. SendClientMessage(playerid, -1, "Вы устроились на работу шахтёра. {00FF00}Места добычи находятся на камнях.");
  484. return 1;
  485. }
  486. if(dialogid == DIALOG_ENDJOB && response)
  487. {
  488. new string[128];
  489. new money = AllPlayerMetall[playerid]*2+AllPlayerMetallEx[playerid]*5;
  490. PlayerStartJob[playerid] = false;
  491. PlayerOnJob[playerid] = false;
  492. GetPlayerMetall[playerid] = 0;
  493. AllPlayerMetall[playerid] = 0;
  494. GetPlayerMetallEx[playerid] = 0;
  495. AllPlayerMetallEx[playerid] = 0;
  496. ExtraMetall[playerid] = 0;
  497. SetPlayerSkin(playerid, PlayerSavedSkin[playerid]);
  498. GivePlayerMoney(playerid, money);
  499. format(string, sizeof(string), "Вы закончили работу. Ваш заработок: {00FF00}$%d", money);
  500. SendClientMessage(playerid, -1, string);
  501. RemovePlayerAttachedObject(playerid, 3);
  502. RemovePlayerAttachedObject(playerid, 4);
  503. DisablePlayerCheckpoint(playerid);
  504. return 1;
  505. }
  506. return 0;
  507. }
  508.  
  509. public TimerGiveMiner(playerid)
  510. {
  511. RemovePlayerAttachedObject(playerid, 3);
  512. SendClientMessage(playerid, -1, "Вы добыли обычный металл. Теперь отнесите его на склад.");
  513. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 1, 1);
  514. SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
  515. SetPlayerCheckpoint(playerid, -1865.7438, -1622.5901, 21.9036, 3.0);
  516. ExtraMetall[playerid] = 0;
  517. return 1;
  518. }
  519.  
  520. public TimerGiveMinerEx(playerid)
  521. {
  522. RemovePlayerAttachedObject(playerid, 3);
  523. SendClientMessage(playerid, -1, "Вы добыли качественный металл. Теперь отнесите его на склад.");
  524. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 1, 1);
  525. SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
  526. SetPlayerCheckpoint(playerid, -1865.7438, -1622.5901, 21.9036, 3.0);
  527. ExtraMetall[playerid] = 1;
  528. return 1;
  529. }
  530.  
  531. public OnPlayerEnterCheckpoint(playerid)
  532. {
  533. if(PlayerStartJob[playerid])
  534. {
  535. new string[256];
  536. DisablePlayerCheckpoint(playerid);
  537. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 1);
  538. PlayerStartJob[playerid] = false;
  539. RemovePlayerAttachedObject(playerid, 4);
  540. SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
  541. if(ExtraMetall[playerid] == 1)
  542. {
  543. GetPlayerMetallEx[playerid] = 20+random(20);
  544. AllPlayerMetallEx[playerid] = AllPlayerMetallEx[playerid] + GetPlayerMetallEx[playerid];
  545. format(string, sizeof(string), "Вы принесли {9ACD32}%d{FFFFFF} кг. качественного металла.", GetPlayerMetallEx[playerid]);
  546. SendClientMessage(playerid, -1, string);
  547. format(string, sizeof(string), "+%d", GetPlayerMetallEx[playerid]);
  548. SetPlayerChatBubble(playerid, string, 0x00FF00FF, 20.0, 3000);
  549. GetPlayerMetallEx[playerid] = 0;
  550. }
  551. else
  552. {
  553. GetPlayerMetall[playerid] = 20+random(40);
  554. AllPlayerMetall[playerid] = AllPlayerMetall[playerid] + GetPlayerMetall[playerid];
  555. format(string, sizeof(string), "Вы принесли {FFA500}%d{FFFFFF} кг. обычного металла.", GetPlayerMetall[playerid]);
  556. SendClientMessage(playerid, -1, string);
  557. format(string, sizeof(string), "+%d", GetPlayerMetall[playerid]);
  558. SetPlayerChatBubble(playerid, string, 0x00FF00FF, 20.0, 3000);
  559. GetPlayerMetall[playerid] = 0;
  560. }
  561. format(string, sizeof(string), "Всего принесено металла: {FFA500}Обычного: {FFFFFF}%d {9ACD32}Качественного: {FFFFFF}%d", AllPlayerMetall[playerid], AllPlayerMetallEx[playerid]);
  562. SendClientMessage(playerid, -1, string);
  563. return 1;
  564. }
  565. return 1;
  566. }
  567.  
  568. public OnPlayerCommandText(playerid, cmdtext[])
  569. {
  570. if(!strcmp("/lift", cmdtext, true))
  571. {
  572. if(!PlayerOnJob[playerid]) return SendClientMessage(playerid, -1, "Вы не устроились на работу шахтёра.");
  573. if(exitp) return SendClientMessage(playerid, -1, "Пожалуйста подождите.");
  574. if(!IsPlayerInRangeOfPoint(playerid, 5, -1899.0999755859, -1636.5999755859, 25.700000762939)
  575. && !IsPlayerInRangeOfPoint(playerid, 5, -1899.0996093750, -1636.5996093750, -59.40000152587)) return SendClientMessage(playerid, -1, "Вы не у лифта.");
  576. if(vputi) return SendClientMessage(playerid, -1, "Лифт уже в пути.");
  577. if(!lift)
  578. {
  579. SetTimer("UpdateDoors", 17500, false);
  580. MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, -61.0, 5);
  581. MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, -61.0, 5);
  582. MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, -61.0, 5);
  583. MoveObject(upgate, -1899.0999755859, -1636.5999755859, 25.700000762939, 5);
  584. vputi = true;
  585. lift = true;
  586. }
  587. else
  588. {
  589. SetTimer("UpdateDoors", 17500, false);
  590. MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, 23.89999961853, 5);
  591. MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, 23.89999961853, 5);
  592. MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, 23.89999961853, 5);
  593. MoveObject(downgate, -1899.099609375, -1636.599609375, -59.400001525879, 5);
  594. vputi = true;
  595. lift = false;
  596. }
  597. return 1;
  598. }
  599. return 0;
  600. }
  601.  
  602. public UpdateDoors()
  603. {
  604. if(lift)
  605. {
  606. MoveObject(downgate, -1899.099609375, -1633.1999511719, -59.400001525879, 5);
  607. }
  608. else
  609. {
  610. MoveObject(upgate, -1899.0999755859, -1633.0, 25.700000762939, 5);
  611. }
  612. exitp = true;
  613. SetTimer("UpdateExit", 5000, false);
  614. vputi = false;
  615. return 1;
  616. }
  617.  
  618. public UpdateExit()
  619. {
  620. exitp = false;
  621. return 1;
  622. }
  623.  
  624. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  625. {
  626. if(newkeys == KEY_FIRE && PlayerStartJob[playerid])
  627. {
  628. if(!IsPlayerInRangeOfPoint(playerid, 3, -1854.7035,-1650.9668,25.7248)
  629. && !IsPlayerInRangeOfPoint(playerid, 3, -1803.5344,-1655.2640,25.8294)
  630. && !IsPlayerInRangeOfPoint(playerid, 3, -1788.5780,-1640.7179,27.0669)
  631. && !IsPlayerInRangeOfPoint(playerid, 3, -1869.1316,-1634.7915,-58.500)
  632. && !IsPlayerInRangeOfPoint(playerid, 3, -1868.9603,-1643.6682,-58.046))
  633. {
  634. SendClientMessage(playerid, -1, "Вы уронили металл.");
  635. DisablePlayerCheckpoint(playerid);
  636. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 1);
  637. PlayerStartJob[playerid] = false;
  638. RemovePlayerAttachedObject(playerid, 4);
  639. SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
  640. GetPlayerMetall[playerid] = 0;
  641. GetPlayerMetallEx[playerid] = 0;
  642. }
  643. }
  644. return 1;
  645. }
  646.  
  647. stock IsPlayerApplyAnimation(playerid, animation[])
  648. {
  649. if(!GetPlayerAnimationIndex(playerid)) return 0;
  650. new animlib[32], animname[32];
  651. GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
  652. if(strcmp(animname, animation, true) == 0) return 1;
  653. return 0;
  654. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement