Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new bool:exitp;
- new bool:vputi;
- new bool:lift;
- new floorlift[3];
- new upgate,downgate,picjob;
- new bool:PlayerStartJob[MAX_PLAYERS];
- new bool:PlayerOnJob[MAX_PLAYERS];
- new GetPlayerMetall[MAX_PLAYERS];
- new GetPlayerMetallEx[MAX_PLAYERS];
- new AllPlayerMetall[MAX_PLAYERS];
- new AllPlayerMetallEx[MAX_PLAYERS];
- new ExtraMetall[MAX_PLAYERS];
- new PlayerSavedSkin[MAX_PLAYERS];
- #define DIALOG_STARTJOB 49
- #define DIALOG_ENDJOB 50
- forward TimerGiveMiner(playerid);
- forward TimerGiveMinerEx(playerid);
- forward UpdateExit();
- forward UpdateDoors();
- public OnFilterScriptInit()
- {
- CreateObject(983, 1678.4000244141, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1672, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1665.5999755859, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1659.1999511719, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1652.8000488281, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1646.4000244141, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1640, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1633.5999755859, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1627.1999511719, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1620.8000488281, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1614.4000244141, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1608.0999755859, -1098.6999511719, 23.60000038147, 0, 0, 90);
- CreateObject(983, 1683.1999511719, -1098.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1685.4000244141, -1102.0999755859, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1685.4000244141, -1108.5, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1685.4000244141, -1114.9000244141, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1685.4000244141, -1121.3000488281, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1685.4000244141, -1127.6999511719, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1685.4000244141, -1134.0999755859, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1685.4000244141, -1140.5, 23.799999237061, 0, 0, 0);
- CreateObject(983, 1682.1999511719, -1143.6999511719, 23.700000762939, 0, 0, 90);
- CreateObject(983, 1675.8000488281, -1143.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1669.4000244141, -1143.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1663, -1143.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1656.5999755859, -1143.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1650.1999511719, -1143.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1647, -1143.6999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1605.6999511719, -1101.9000244141, 23.799999237061, 0, 0, 192);
- CreateObject(983, 1606.9000244141, -1108.1999511719, 23.799999237061, 0, 0, 189.9970703125);
- CreateObject(983, 1607.9000244141, -1114.5, 23.799999237061, 0, 0, 187.9920501709);
- CreateObject(983, 1608.6999511719, -1120.9000244141, 23.799999237061, 0, 0, 185.98706054688);
- CreateObject(983, 1609.4000244141, -1127.3000488281, 23.799999237061, 0, 0, 185.98207092285);
- CreateObject(983, 1610.0999755859, -1133.5999755859, 23.799999237061, 0, 0, 185.98207092285);
- CreateObject(983, 1610.4000244141, -1140, 23.799999237061, 0, 0, 179.98205566406);
- CreateObject(983, 1613.5999755859, -1143.1999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1620, -1143.1999511719, 23.799999237061, 0, 0, 90);
- CreateObject(983, 1626.4000244141, -1143.1999511719, 23.799999237061, 0, 0, 90);
- CreateObject(985, 1641.3000488281, -1143.5999755859, 24.60000038147, 0, 0, 0);
- CreateObject(986, 1633.4000244141, -1143.5999755859, 24.60000038147, 0, 0, 0);
- CreateObject(7191, -1901, -1640.69921875, 5, 270, 180.29704284668, 90.505798339844);
- CreateObject(7191, -1901.099609375, -1637.099609375, 5, 270, 174.17150878906, 84.924072265625);
- CreateObject(7191, -1902.7998046875, -1639, 5, 270, 180, 180);
- CreateObject(5153, -1900.6999511719, -1639.5, 27.10000038147, 0, 23.999633789063, 0);
- CreateObject(5153, -1900.6999511719, -1638.1999511719, 27.10000038147, 0, 23.999633789063, 0);
- CreateObject(1688, 165.30000305176, 127.59999847412, 535.20001220703, 0, 0, 0);
- CreateObject(5153, -1901.0999755859, -1641, 21.799999237061, 90, 166.38427734375, 217.61529541016);
- CreateObject(5153, -1901.0999755859, -1641, 23.89999961853, 90, 192.02313232422, 191.97094726563);
- CreateObject(5153, -1901.0999755859, -1641, 26, 90, 173.66217041016, 210.32653808594);
- CreateObject(5153, -1901.0999755859, -1641, 28.10000038147, 90, 171.52404785156, 212.45910644531);
- CreateObject(5153, -1903.3000488281, -1638.9000244141, 21.799999237061, 90, 185.21534729004, 108.76779174805);
- CreateObject(5153, -1903.3000488281, -1638.9000244141, 23.89999961853, 90, 184.5463104248, 109.4313659668);
- CreateObject(5153, -1903.3000488281, -1638.9000244141, 26, 90, 184.60627746582, 109.36590576172);
- CreateObject(5153, -1903.3000488281, -1638.9000244141, 28.10000038147, 90, 184.36218261719, 109.6044921875);
- CreateObject(9131, -1903.1999511719, -1640.9000244141, 21.89999961853, 0, 0, 90);
- CreateObject(9131, -1903.1999511719, -1640.9000244141, 24.10000038147, 0, 0, 90);
- CreateObject(9131, -1903.1999511719, -1640.9000244141, 26.200000762939, 0, 0, 90);
- CreateObject(9131, -1903.1999511719, -1640.9000244141, 28.39999961853, 0, 0, 90);
- CreateObject(5153, -1901.1999511719, -1636.6999511719, 21.799999237061, 90, 184.30581665039, 19.237091064453);
- CreateObject(5153, -1901.1999511719, -1636.6999511719, 23.89999961853, 90, 184.3505859375, 19.18212890625);
- CreateObject(5153, -1901.1999511719, -1636.6999511719, 26, 90, 175.826171875, 27.706573486328);
- CreateObject(5153, -1901.1999511719, -1636.6999511719, 28, 90, 175.77575683594, 27.75146484375);
- CreateObject(9131, -1903.1999511719, -1636.8000488281, 21.89999961853, 0, 0, 0);
- CreateObject(9131, -1903.1999511719, -1636.8000488281, 24.10000038147, 0, 0, 0);
- CreateObject(9131, -1903.1999511719, -1636.8000488281, 26.200000762939, 0, 0, 0);
- CreateObject(9131, -1903.1999511719, -1636.8000488281, 28.39999961853, 0, 0, 0);
- CreateObject(9131, -1898.9000244141, -1636.8000488281, 21.89999961853, 0, 0, 180);
- CreateObject(9131, -1898.9000244141, -1636.8000488281, 24.10000038147, 0, 0, 179.99450683594);
- CreateObject(9131, -1898.9000244141, -1636.8000488281, 26.299999237061, 0, 0, 179.99450683594);
- CreateObject(9131, -1898.9000244141, -1636.8000488281, 28.39999961853, 0, 0, 179.99450683594);
- CreateObject(9131, -1898.9000244141, -1640.9000244141, 21.89999961853, 0, 0, 179.99450683594);
- CreateObject(9131, -1898.9000244141, -1640.9000244141, 24.10000038147, 0, 0, 179.99450683594);
- CreateObject(9131, -1898.9000244141, -1640.9000244141, 26.200000762939, 0, 0, 179.99450683594);
- CreateObject(9131, -1898.9000244141, -1640.9000244141, 28.39999961853, 0, 0, 179.99450683594);
- CreateObject(5153, -1898.69921875, -1638.8994140625, 28.200000762939, 90, 183.87551879883, 110.08013916016);
- CreateObject(5153, -1900.9000244141, -1639.5, 29.10000038147, 0, 23.999633789063, 0);
- CreateObject(5153, -1901.3000488281, -1639.5, 29.10000038147, 0, 23.999633789063, 0);
- CreateObject(5153, -1901.3000488281, -1638.0999755859, 29.10000038147, 0, 23.999633789063, 0);
- CreateObject(5153, -1900.9000244141, -1638.1999511719, 29.10000038147, 0, 23.999633789063, 0);
- CreateObject(9131, -1901.9000244141, -1636.9000244141, 29.10000038147, 0, 90, 0);
- CreateObject(9131, -1900, -1636.9000244141, 29.10000038147, 0, 90, 0);
- CreateObject(9131, -1903.0999755859, -1639.5999755859, 29.10000038147, 0, 90, 89.999816894531);
- CreateObject(9131, -1903.0999755859, -1638.0999755859, 29.10000038147, 0, 90, 90);
- CreateObject(9131, -1901.8000488281, -1640.8000488281, 29.10000038147, 90, 192.92098999023, 257.07904052734);
- CreateObject(9131, -1900.1999511719, -1640.8000488281, 29.10000038147, 90, 192.919921875, 257.07458496094);
- CreateObject(9131, -1898.9000244141, -1639.5, 29.10000038147, 90, 191.77824401855, 348.22174072266);
- CreateObject(9131, -1898.9000244141, -1638.0999755859, 29.10000038147, 90, 191.77734375, 348.21716308594);
- CreateObject(10244, -1879, -1642.5, 20.5, 0, 0, 90);
- CreateObject(1423, -1897.3000488281, -1640.4000244141, 24.799999237061, 0, 0, 0);
- CreateObject(1423, -1893.9000244141, -1640.4000244141, 24.799999237061, 0, 0, 0);
- CreateObject(1423, -1890.5, -1640.3000488281, 24.799999237061, 0, 0, 0);
- CreateObject(1423, -1886.9000244141, -1640.1999511719, 24.799999237061, 0, 0, 0);
- CreateObject(1423, -1883.0999755859, -1640.0999755859, 24.799999237061, 0, 0, 0);
- CreateObject(7191, -1899.19921875, -1639, 1.2000000476837, 270, 179.99963378906, 179.99963378906);
- CreateObject(5153, -1898.9000244141, -1638.5, 21.799999237061, 90, 176.34619140625, 117.60406494141);
- CreateObject(5153, -1898.9000244141, -1638.5, 22.799999237061, 90, 183.69140625, 110.25332641602);
- CreateObject(7191, -1901.099609375, -1637.099609375, -38.5, 90, 174.16625976563, 96.668823242188);
- CreateObject(7191, -1901, -1640.69921875, -38.5, 90, 181.08764648438, 88.79638671875);
- CreateObject(7191, -1902.7998046875, -1639, -38.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(7191, -1899.19921875, -1639, -35, 90, 180.00549316406, 179.98352050781);
- CreateObject(7191, -1901.69921875, -1638.8994140625, -61.299999237061, 0, 90, 270);
- CreateObject(1698, -1901.6999511719, -1638.8000488281, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1900.599609375, -1638.7998046875, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1899.5, -1638.8994140625, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1898.19921875, -1638.8994140625, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1896.8994140625, -1638.8994140625, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1895.6999511719, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1894.5999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1893.3000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1892, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1890.8000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1889.8000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1888.5, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1887.3000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1886.0999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1884.9000244141, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1883.5999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1882.3000488281, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1881.0999755859, -1638.9000244141, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1880.099609375, -1638.8994140625, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1898.5, -1637.2998046875, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(7191, -1898.5, -1637.19921875, -59, 0, 0, 270);
- CreateObject(1698, -1897.1999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1895.9000244141, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1894.5999755859, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1893.2998046875, -1637.2998046875, -59.5, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1892, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1890.6999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1889.5999755859, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1888.3000488281, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1887, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1885.6999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1884.4000244141, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1883.099609375, -1637.2998046875, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1882, -1637.3000488281, -59.5, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1880.69921875, -1637.2998046875, -59.5, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1880.1999511719, -1637.3000488281, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(7191, -1899, -1640.69921875, -59.200000762939, 0, 0, 270);
- CreateObject(1698, -1898.4000244141, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
- CreateObject(1698, -1897.0999755859, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
- CreateObject(1698, -1895.8000488281, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
- CreateObject(1698, -1894.5, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
- CreateObject(1698, -1893.1999511719, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
- CreateObject(1698, -1891.9000244141, -1640.5999755859, -59.5, 90, 0, 179.98352050781);
- CreateObject(1698, -1890.5999755859, -1640.5999755859, -59.5, 90, 180, 359.98352050781);
- CreateObject(1698, -1889.3000488281, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97802734375);
- CreateObject(1698, -1888, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97802734375);
- CreateObject(1698, -1886.6999511719, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97802734375);
- CreateObject(1698, -1885.4000244141, -1640.5999755859, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1884.099609375, -1640.599609375, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1882.8000488281, -1640.5999755859, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1881.5, -1640.599609375, -59.5, 90, 180.00549316406, 359.9670715332);
- CreateObject(1698, -1880.1999511719, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97805786133);
- CreateObject(1698, -1898.19921875, -1638.8994140625, -57.700000762939, 0, 180, 0);
- CreateObject(1698, -1896.9000244141, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1895.5999755859, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1894.3000488281, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1893, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1891.6999511719, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1890.5, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1889.1999511719, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1888, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1886.6999511719, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1885.4000244141, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1884.0999755859, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1882.7998046875, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1881.5, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1880.1999511719, -1639.0999755859, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1878.9000244141, -1640.5999755859, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1877.5999755859, -1640.5999755859, -59.5, 90, 179.99450683594, 359.97805786133);
- CreateObject(1698, -1879, -1637.3000488281, -59.400001525879, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1877.6999511719, -1637.3000488281, -59.400001525879, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1876.3994140625, -1637.2998046875, -59.400001525879, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1876.3994140625, -1640.599609375, -59.5, 90, 180.00549316406, 359.9670715332);
- CreateObject(1698, -1879.3994140625, -1639.099609375, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1878.6999511719, -1639.0999755859, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1878, -1639.0999755859, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1877.3000488281, -1639.0999755859, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1876.599609375, -1639.099609375, -61.099998474121, 0, 0, 0);
- CreateObject(1698, -1878.8994140625, -1639.099609375, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1877.69921875, -1639.099609375, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1876.4000244141, -1639, -57.700000762939, 0, 179.99450683594, 0);
- CreateObject(1698, -1875.6999511719, -1641.1999511719, -59.5, 90, 185.73919677734, 264.26092529297);
- CreateObject(1698, -1875.6999511719, -1642.3000488281, -59.5, 90, 187.97314453125, 262.02142333984);
- CreateObject(1698, -1875.6999511719, -1643.5999755859, -59.5, 90, 186.34075927734, 263.64831542969);
- CreateObject(1698, -1875.6999511719, -1644.9000244141, -59.5, 90, 184.56207275391, 265.42150878906);
- CreateObject(1698, -1875.6999511719, -1646.0999755859, -59.5, 90, 185.73486328125, 264.2431640625);
- CreateObject(1698, -1875.6999511719, -1636.6999511719, -59.5, 90, 185.15081787109, 264.84362792969);
- CreateObject(1698, -1875.6999511719, -1635.4000244141, -59.5, 90, 184.77618408203, 265.21276855469);
- CreateObject(1698, -1875.6999511719, -1634.0999755859, -59.5, 90, 184.56420898438, 265.41381835938);
- CreateObject(1698, -1875.6999511719, -1632.9000244141, -59.5, 90, 175.69116210938, 274.28143310547);
- CreateObject(1698, -1875.6999511719, -1631.6999511719, -59.5, 90, 184.36706542969, 265.59997558594);
- CreateObject(6959, -1875.5999755859, -1641.9000244141, -61, 0, 0, 0);
- CreateObject(18326, -1791.7998046875, -1629.099609375, -47.900001525879, 332.99560546875, 0, 285.99609375);
- CreateObject(1698, -1875, -1646.5, -59.5, 90, 180.00549316406, 359.9670715332);
- CreateObject(1698, -1873.6999511719, -1646.5, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1872.5, -1646.5, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1871.3000488281, -1646.5, -59.5, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1870.1999511719, -1646.5, -59.5, 90, 179.99450683594, 359.97802734375);
- CreateObject(1698, -1868.9000244141, -1646.5, -59.400001525879, 90, 179.99450683594, 359.97805786133);
- CreateObject(1698, -1875, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1873.6999511719, -1631.1999511719, -59.5, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1872.4000244141, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1871.0999755859, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1869.8000488281, -1631.1999511719, -59.5, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1868.5, -1631.1999511719, -59.099998474121, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1867.3000488281, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1868.3000488281, -1646.5, -56.200000762939, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1867, -1646.5, -56.200000762939, 90, 179.99450683594, 359.97805786133);
- CreateObject(1698, -1875.5999755859, -1643.4000244141, -57.700000762939, 45, 180, 270);
- CreateObject(1698, -1875.5999755859, -1644.6999511719, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1645.9000244141, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1642.0999755859, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1641.1999511719, -57.700000762939, 44.994506835938, 179.99450683594, 269.99996948242);
- CreateObject(1698, -1875.5999755859, -1636.6999511719, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1635.5, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1634.1999511719, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1633.0999755859, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1875.5999755859, -1631.9000244141, -57.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1637.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1639.1999511719, -56.700000762939, 44.994506835938, 179.99450683594, 269.99996948242);
- CreateObject(1698, -1874.5999755859, -1639.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1641.1999511719, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1642.5, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1643.8000488281, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1645, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1645.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1636.5999755859, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1635.3000488281, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1634.0999755859, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1632.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.5999755859, -1631.9000244141, -56.700000762939, 44.994506835938, 179.99450683594, 270);
- CreateObject(1698, -1874.9000244141, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1872.3000488281, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1873.5999755859, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1871, -1631.1999511719, -56.200000762939, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1869.8000488281, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1868.5, -1631.1999511719, -56.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1866, -1631.1999511719, -56, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1864.9000244141, -1631.1999511719, -55.200000762939, 90, 179.99450683594, 179.99450683594);
- CreateObject(1698, -1874.8000488281, -1646.5, -56.200000762939, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1873.5, -1646.5, -56.200000762939, 90, 179.99450683594, 359.97802734375);
- CreateObject(1698, -1872.1999511719, -1646.5, -56.200000762939, 90, 180.00549316406, 359.9670715332);
- CreateObject(1698, -1870.9000244141, -1646.5, -56.200000762939, 90, 179.99450683594, 359.97805786133);
- CreateObject(1698, -1869.5999755859, -1646.5, -56.200000762939, 90, 180.00549316406, 359.96704101563);
- CreateObject(1698, -1872.6999511719, -1645.4000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1872.6999511719, -1642.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1872.6999511719, -1639.4000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1872.6999511719, -1636.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1872.6999511719, -1633, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1872, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1871.3000488281, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1870.5999755859, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1869.9000244141, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1869.1999511719, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1868.5, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1867.8000488281, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1867.0999755859, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1866.0999755859, -1632.3000488281, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1865.099609375, -1632.2998046875, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1872, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1871.3000488281, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1870.5999755859, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1869.9000244141, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1869.1999511719, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1868.5999755859, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1867.3000488281, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1866, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1864.6999511719, -1635.5, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1871.4000244141, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1870.4000244141, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1869.0999755859, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1867.8000488281, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1866.6999511719, -1638.5999755859, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1865.3994140625, -1638.599609375, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1864, -1631.1999511719, -55.400001525879, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1867.5999755859, -1631.1999511719, -58.099998474121, 90, 180.00549316406, 179.98352050781);
- CreateObject(1698, -1871.4000244141, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1870.0999755859, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1868.9000244141, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1867.6999511719, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1866.5, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1865.1999511719, -1641.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1871.4000244141, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1870.0999755859, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1868.8000488281, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1867.5, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1866.1999511719, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1865.5, -1645.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1866.1999511719, -1646.5, -55.599998474121, 90, 180.00549316406, 359.96704101563);
- CreateObject(867, -1868.0999755859, -1635.3000488281, -58.5, 0, 327, 358);
- CreateObject(867, -1868.599609375, -1644.099609375, -57.799999237061, 0, 313, 357.98950195313);
- CreateObject(1698, -1863.9000244141, -1632.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1863.9000244141, -1634.1999511719, -55.400001525879, 0, 179.99450683594, 0);
- CreateObject(1698, -1864.5, -1637.9000244141, -55.400001525879, 0, 179.99450683594, 0);
- floorlift[0] = CreateObject(1698, -1900.1999511719, -1638.9000244141, 23.89999961853, 0, 0, 0);
- floorlift[1] = CreateObject(1698, -1901.4000244141, -1638.9000244141, 23.89999961853, 0, 0, 0);
- floorlift[2] = CreateObject(1698, -1902.0999755859, -1638.9000244141, 23.89999961853, 0, 0, 0);
- upgate = CreateObject(975, -1899.0999755859, -1633.0, 25.700000762939, 0, 0, 90); //open
- downgate = CreateObject(975, -1899.099609375, -1636.599609375, -59.400001525879, 0, 0, 90); //close
- Create3DTextLabel("Место добычи {00FF00}№1\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1854.7035,-1650.9668,25.7248,30,0,1);
- Create3DTextLabel("Место добычи {00FF00}№2\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1803.5344,-1655.2640,25.8294,30,0,1);
- Create3DTextLabel("Место добычи {00FF00}№3\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1788.5780,-1640.7179,27.0669,30,0,1);
- Create3DTextLabel("Место добычи {00FF00}№4\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1869.1316,-1634.7915,-58.500,30,0,1);
- Create3DTextLabel("Место добычи {00FF00}№5\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1868.9603,-1643.6682,-58.046,30,0,1);
- Create3DTextLabel("/lift{FFFFFF} - вызов/спуск", 0x00FF00FF,-1898.670,-1636.7733,26.0391,15,0,1);
- Create3DTextLabel("/lift{FFFFFF} - вызов/подъём",0x00FF00FF,-1898.500,-1637.5000,-58.974,10,0,1);
- picjob = CreatePickup(1275, 23, -1830.2748,-1639.3976,22.2496, 0);
- Create3DTextLabel("Работа шахтёра",0x00FF00FF,-1830.2748,-1639.3976,22.2496,20.0,0);
- CreateObject(3798,-1870.40002441,-1625.59997559,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (1)
- CreateObject(3798,-1870.40002441,-1623.50000000,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (2)
- CreateObject(3798,-1868.00000000,-1625.50000000,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (3)
- CreateObject(3800,-1866.19995117,-1626.00000000,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (1)
- CreateObject(3800,-1870.19995117,-1625.90002441,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (2)
- CreateObject(3800,-1868.59997559,-1625.69995117,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (3)
- CreateObject(3800,-1870.69995117,-1621.80004883,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (4)
- CreateObject(3800,-1870.30004883,-1621.59997559,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (5)
- CreateObject(3800,-1868.40002441,-1623.80004883,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (6)
- CreateObject(3800,-1865.00000000,-1626.09997559,20.79999962,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (7)
- CreateObject(3800,-1870.69995117,-1619.59997559,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs) (8)
- CreateObject(3929,-1803.30004883,-1654.19995117,25.29999924,0.00000000,0.00000000,0.00000000); //object(d_rock) (1)
- CreateObject(3929,-1802.40002441,-1654.69995117,25.29999924,0.00000000,0.00000000,40.0000000); //object(d_rock) (2)
- CreateObject(3929,-1801.59997559,-1655.09997559,25.89999962,0.00000000,0.00000000,310.000000); //object(d_rock) (3)
- CreateObject(3929,-1802.50000000,-1655.90002441,25.29999924,0.00000000,0.00000000,300.000000); //object(d_rock) (4)
- CreateObject(3929,-1802.19921875,-1656.79980469,25.50000000,0.00000000,0.00000000,0.00000000); //object(d_rock) (5)
- CreateObject(3929,-1786.90002441,-1640.40002441,27.00000000,0.00000000,0.00000000,8.00000000); //object(d_rock) (6)
- CreateObject(3929,-1788.50000000,-1640.30004883,25.39999962,0.00000000,0.00000000,40.0000000); //object(d_rock) (7)
- CreateObject(3929,-1789.09960938,-1641.50000000,27.00000000,0.00000000,0.00000000,280.000000); //object(d_rock) (8)
- CreateObject(3929,-1787.89941406,-1641.39941406,27.00000000,0.00000000,0.00000000,80.0000000); //object(d_rock) (9)
- CreateObject(3929,-1856.09997559,-1652.40002441,25.00000000,0.00000000,0.00000000,50.0000000); //object(d_rock) (10)
- CreateObject(3929,-1786.69921875,-1639.50000000,26.00000000,0.00000000,0.00000000,294.000000); //object(d_rock) (11)
- CreateObject(3929,-1790.69921875,-1639.89941406,25.00000000,0.00000000,0.00000000,30.0000000); //object(d_rock) (12)
- CreateObject(3929,-1855.40002441,-1649.50000000,25.00000000,0.00000000,0.00000000,90.0000000); //object(d_rock) (13)
- CreateObject(3929,-1856.00000000,-1650.80004883,25.39999962,0.00000000,0.00000000,320.000000); //object(d_rock) (14)
- CreateObject(3929,-1856.90002441,-1651.50000000,25.00000000,0.00000000,0.00000000,50.0000000); //object(d_rock) (15)
- CreateObject(3929,-1855.00000000,-1652.00000000,24.60000038,0.00000000,0.00000000,320.000000); //object(d_rock) (16)
- CreateObject(3929,-1853.90002441,-1654.00000000,23.39999962,0.00000000,0.00000000,60.0000000); //object(d_rock) (17)
- CreateObject(3930,-1787.50000000,-1639.40002441,25.50000000,0.00000000,0.00000000,0.00000000); //object(d_rock01) (1)
- CreateObject(3931,-1853.50000000,-1650.19995117,24.00000000,0.00000000,0.00000000,350.000000); //object(d_rock02) (1)
- CreateObject(3173,-1830.09997559,-1637.30004883,20.79999924,0.00000000,0.00000000,270.000000); //object(trailer_large4_01) (1)
- CreateObject(3798,-1837.00000000,-1636.09997559,20.79999924,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (4)
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- PlayerOnJob[playerid] = false;
- PlayerStartJob[playerid] = false;
- GetPlayerMetall[playerid] = 0;
- AllPlayerMetall[playerid] = 0;
- GetPlayerMetallEx[playerid] = 0;
- AllPlayerMetallEx[playerid] = 0;
- ExtraMetall[playerid] = 0;
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- PlayerOnJob[playerid] = false;
- PlayerStartJob[playerid] = false;
- GetPlayerMetall[playerid] = 0;
- AllPlayerMetall[playerid] = 0;
- GetPlayerMetallEx[playerid] = 0;
- AllPlayerMetallEx[playerid] = 0;
- ExtraMetall[playerid] = 0;
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(PlayerOnJob[playerid] && !PlayerStartJob[playerid] && !IsPlayerInAnyVehicle(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, -1854.7035,-1650.9668,25.7248)
- || IsPlayerInRangeOfPoint(playerid, 1, -1803.5344,-1655.2640,25.8294)
- || IsPlayerInRangeOfPoint(playerid, 1, -1788.5780,-1640.7179,27.0669))
- {
- SendClientMessage(playerid, -1, "Вы начали добывать обычный металл.");
- SetTimerEx("TimerGiveMiner", 5000, false, "i", playerid);
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
- PlayerStartJob[playerid] = true;
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, -1869.1316,-1634.7915,-58.500)
- || IsPlayerInRangeOfPoint(playerid, 1, -1868.9603,-1643.6682,-58.046))
- {
- SendClientMessage(playerid, -1, "Вы начали добывать качественный металл.");
- SetTimerEx("TimerGiveMinerEx", 5000, false, "i", playerid);
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
- PlayerStartJob[playerid] = true;
- }
- return 1;
- }
- if(PlayerStartJob[playerid])
- {
- if(IsPlayerApplyAnimation(playerid, "FALL_back")
- || IsPlayerApplyAnimation(playerid, "FALL_collapse")
- || IsPlayerApplyAnimation(playerid, "FALL_fall")
- || IsPlayerApplyAnimation(playerid, "FALL_front")
- || IsPlayerApplyAnimation(playerid, "FALL_glide")
- || IsPlayerApplyAnimation(playerid, "FALL_land")
- || IsPlayerApplyAnimation(playerid, "FALL_skyDive")
- || IsPlayerApplyAnimation(playerid, "JUMP_glide")
- || IsPlayerApplyAnimation(playerid, "JUMP_land")
- || IsPlayerApplyAnimation(playerid, "JUMP_launch")
- || IsPlayerApplyAnimation(playerid, "JUMP_launch_R"))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3, -1854.7035,-1650.9668,25.7248)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1803.5344,-1655.2640,25.8294)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1788.5780,-1640.7179,27.0669)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1869.1316,-1634.7915,-58.500)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1868.9603,-1643.6682,-58.046))
- {
- SendClientMessage(playerid, -1, "Вы уронили металл.");
- DisablePlayerCheckpoint(playerid);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 1);
- PlayerStartJob[playerid] = false;
- RemovePlayerAttachedObject(playerid, 4);
- SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
- GetPlayerMetall[playerid] = 0;
- GetPlayerMetallEx[playerid] = 0;
- return 1;
- }
- }
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == picjob)
- {
- if(!PlayerOnJob[playerid])
- {
- ShowPlayerDialog(playerid, DIALOG_STARTJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Работа шахтёра", "{FFFFFF}Вы согласны устроится на работу {FFFF00}шахтёра?", "Да", "Нет");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_ENDJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Работа шахтёра", "{FFFFFF}Вы согласны уволится с работы {FFFF00}шахтёра?", "Да", "Нет");
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_STARTJOB && response)
- {
- PlayerStartJob[playerid] = false;
- PlayerOnJob[playerid] = true;
- PlayerSavedSkin[playerid] = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, 16);
- SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
- SendClientMessage(playerid, -1, "Вы устроились на работу шахтёра. {00FF00}Места добычи находятся на камнях.");
- return 1;
- }
- if(dialogid == DIALOG_ENDJOB && response)
- {
- new string[128];
- new money = AllPlayerMetall[playerid]*2+AllPlayerMetallEx[playerid]*5;
- PlayerStartJob[playerid] = false;
- PlayerOnJob[playerid] = false;
- GetPlayerMetall[playerid] = 0;
- AllPlayerMetall[playerid] = 0;
- GetPlayerMetallEx[playerid] = 0;
- AllPlayerMetallEx[playerid] = 0;
- ExtraMetall[playerid] = 0;
- SetPlayerSkin(playerid, PlayerSavedSkin[playerid]);
- GivePlayerMoney(playerid, money);
- format(string, sizeof(string), "Вы закончили работу. Ваш заработок: {00FF00}$%d", money);
- SendClientMessage(playerid, -1, string);
- RemovePlayerAttachedObject(playerid, 3);
- RemovePlayerAttachedObject(playerid, 4);
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- return 0;
- }
- public TimerGiveMiner(playerid)
- {
- RemovePlayerAttachedObject(playerid, 3);
- SendClientMessage(playerid, -1, "Вы добыли обычный металл. Теперь отнесите его на склад.");
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 1, 1);
- SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
- SetPlayerCheckpoint(playerid, -1865.7438, -1622.5901, 21.9036, 3.0);
- ExtraMetall[playerid] = 0;
- return 1;
- }
- public TimerGiveMinerEx(playerid)
- {
- RemovePlayerAttachedObject(playerid, 3);
- SendClientMessage(playerid, -1, "Вы добыли качественный металл. Теперь отнесите его на склад.");
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 1, 1);
- SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
- SetPlayerCheckpoint(playerid, -1865.7438, -1622.5901, 21.9036, 3.0);
- ExtraMetall[playerid] = 1;
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(PlayerStartJob[playerid])
- {
- new string[256];
- DisablePlayerCheckpoint(playerid);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 1);
- PlayerStartJob[playerid] = false;
- RemovePlayerAttachedObject(playerid, 4);
- SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
- if(ExtraMetall[playerid] == 1)
- {
- GetPlayerMetallEx[playerid] = 20+random(20);
- AllPlayerMetallEx[playerid] = AllPlayerMetallEx[playerid] + GetPlayerMetallEx[playerid];
- format(string, sizeof(string), "Вы принесли {9ACD32}%d{FFFFFF} кг. качественного металла.", GetPlayerMetallEx[playerid]);
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "+%d", GetPlayerMetallEx[playerid]);
- SetPlayerChatBubble(playerid, string, 0x00FF00FF, 20.0, 3000);
- GetPlayerMetallEx[playerid] = 0;
- }
- else
- {
- GetPlayerMetall[playerid] = 20+random(40);
- AllPlayerMetall[playerid] = AllPlayerMetall[playerid] + GetPlayerMetall[playerid];
- format(string, sizeof(string), "Вы принесли {FFA500}%d{FFFFFF} кг. обычного металла.", GetPlayerMetall[playerid]);
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "+%d", GetPlayerMetall[playerid]);
- SetPlayerChatBubble(playerid, string, 0x00FF00FF, 20.0, 3000);
- GetPlayerMetall[playerid] = 0;
- }
- format(string, sizeof(string), "Всего принесено металла: {FFA500}Обычного: {FFFFFF}%d {9ACD32}Качественного: {FFFFFF}%d", AllPlayerMetall[playerid], AllPlayerMetallEx[playerid]);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp("/lift", cmdtext, true))
- {
- if(!PlayerOnJob[playerid]) return SendClientMessage(playerid, -1, "Вы не устроились на работу шахтёра.");
- if(exitp) return SendClientMessage(playerid, -1, "Пожалуйста подождите.");
- if(!IsPlayerInRangeOfPoint(playerid, 5, -1899.0999755859, -1636.5999755859, 25.700000762939)
- && !IsPlayerInRangeOfPoint(playerid, 5, -1899.0996093750, -1636.5996093750, -59.40000152587)) return SendClientMessage(playerid, -1, "Вы не у лифта.");
- if(vputi) return SendClientMessage(playerid, -1, "Лифт уже в пути.");
- if(!lift)
- {
- SetTimer("UpdateDoors", 17500, false);
- MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, -61.0, 5);
- MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, -61.0, 5);
- MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, -61.0, 5);
- MoveObject(upgate, -1899.0999755859, -1636.5999755859, 25.700000762939, 5);
- vputi = true;
- lift = true;
- }
- else
- {
- SetTimer("UpdateDoors", 17500, false);
- MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, 23.89999961853, 5);
- MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, 23.89999961853, 5);
- MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, 23.89999961853, 5);
- MoveObject(downgate, -1899.099609375, -1636.599609375, -59.400001525879, 5);
- vputi = true;
- lift = false;
- }
- return 1;
- }
- return 0;
- }
- public UpdateDoors()
- {
- if(lift)
- {
- MoveObject(downgate, -1899.099609375, -1633.1999511719, -59.400001525879, 5);
- }
- else
- {
- MoveObject(upgate, -1899.0999755859, -1633.0, 25.700000762939, 5);
- }
- exitp = true;
- SetTimer("UpdateExit", 5000, false);
- vputi = false;
- return 1;
- }
- public UpdateExit()
- {
- exitp = false;
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == KEY_FIRE && PlayerStartJob[playerid])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3, -1854.7035,-1650.9668,25.7248)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1803.5344,-1655.2640,25.8294)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1788.5780,-1640.7179,27.0669)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1869.1316,-1634.7915,-58.500)
- && !IsPlayerInRangeOfPoint(playerid, 3, -1868.9603,-1643.6682,-58.046))
- {
- SendClientMessage(playerid, -1, "Вы уронили металл.");
- DisablePlayerCheckpoint(playerid);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 1);
- PlayerStartJob[playerid] = false;
- RemovePlayerAttachedObject(playerid, 4);
- SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
- GetPlayerMetall[playerid] = 0;
- GetPlayerMetallEx[playerid] = 0;
- }
- }
- return 1;
- }
- stock IsPlayerApplyAnimation(playerid, animation[])
- {
- if(!GetPlayerAnimationIndex(playerid)) return 0;
- new animlib[32], animname[32];
- GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
- if(strcmp(animname, animation, true) == 0) return 1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement