Закрыть Привет! Если вы читаете это - Вы еще не зарегистрированы. Это займет не больше минуты. Нажмите здесь, чтобы пройти регистрацию в несколько простых шагов, чтобы пользоваться всеми возможностями нашего форума. Обратите внимание, запрещены непристойные, матерные, бессмысленные (цифры, случайный набор букв) ники. Удачи!

Тема: Помощь по работе шахтёр...

Показано с 1 по 3 из 3

  1. #1
    Пользователь

    Аватар для _D@ddy_

    Статус: Оффлайн
    Регистрация:07.04.2012
    Сообщений:35
    Репутация:2 [+/-] 

    Помощь по работе шахтёр...

    Здравствуйте ув. скриптеры!

    Помогите пожалуйста! У меня с работой шатёр какие-то баги..
    Когда я захожу на пикап "Работа шатёр" чтобы устроиться, я нажимаю Да, но ничего не происходит!

    PHP код:
    #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     490
    #define DIALOG_ENDJOB       491

    forward TimerGiveMiner(playerid);
    forward TimerGiveMinerEx(playerid);
    forward UpdateExit();
    forward UpdateDoors();

    public 
    OnFilterScriptInit()
    {
        
    CreateObject(9831678.4000244141, -1098.699951171923.600000381470090);
        
    CreateObject(9831672, -1098.699951171923.600000381470090);
        
    CreateObject(9831665.5999755859, -1098.699951171923.600000381470090);
        
    CreateObject(9831659.1999511719, -1098.699951171923.600000381470090);
        
    CreateObject(9831652.8000488281, -1098.699951171923.600000381470090);
        
    CreateObject(9831646.4000244141, -1098.699951171923.600000381470090);
        
    CreateObject(9831640, -1098.699951171923.600000381470090);
        
    CreateObject(9831633.5999755859, -1098.699951171923.600000381470090);
        
    CreateObject(9831627.1999511719, -1098.699951171923.600000381470090);
        
    CreateObject(9831620.8000488281, -1098.699951171923.600000381470090);
        
    CreateObject(9831614.4000244141, -1098.699951171923.600000381470090);
        
    CreateObject(9831608.0999755859, -1098.699951171923.600000381470090);
        
    CreateObject(9831683.1999511719, -1098.699951171923.7999992370610090);
        
    CreateObject(9831685.4000244141, -1102.099975585923.799999237061000);
        
    CreateObject(9831685.4000244141, -1108.523.799999237061000);
        
    CreateObject(9831685.4000244141, -1114.900024414123.799999237061000);
        
    CreateObject(9831685.4000244141, -1121.300048828123.799999237061000);
        
    CreateObject(9831685.4000244141, -1127.699951171923.799999237061000);
        
    CreateObject(9831685.4000244141, -1134.099975585923.799999237061000);
        
    CreateObject(9831685.4000244141, -1140.523.799999237061000);
        
    CreateObject(9831682.1999511719, -1143.699951171923.7000007629390090);
        
    CreateObject(9831675.8000488281, -1143.699951171923.7999992370610090);
        
    CreateObject(9831669.4000244141, -1143.699951171923.7999992370610090);
        
    CreateObject(9831663, -1143.699951171923.7999992370610090);
        
    CreateObject(9831656.5999755859, -1143.699951171923.7999992370610090);
        
    CreateObject(9831650.1999511719, -1143.699951171923.7999992370610090);
        
    CreateObject(9831647, -1143.699951171923.7999992370610090);
        
    CreateObject(9831605.6999511719, -1101.900024414123.79999923706100192);
        
    CreateObject(9831606.9000244141, -1108.199951171923.79999923706100189.9970703125);
        
    CreateObject(9831607.9000244141, -1114.523.79999923706100187.9920501709);
        
    CreateObject(9831608.6999511719, -1120.900024414123.79999923706100185.98706054688);
        
    CreateObject(9831609.4000244141, -1127.300048828123.79999923706100185.98207092285);
        
    CreateObject(9831610.0999755859, -1133.599975585923.79999923706100185.98207092285);
        
    CreateObject(9831610.4000244141, -114023.79999923706100179.98205566406);
        
    CreateObject(9831613.5999755859, -1143.199951171923.7999992370610090);
        
    CreateObject(9831620, -1143.199951171923.7999992370610090);
        
    CreateObject(9831626.4000244141, -1143.199951171923.7999992370610090);
        
    CreateObject(9851641.3000488281, -1143.599975585924.60000038147000);
        
    CreateObject(9861633.4000244141, -1143.599975585924.60000038147000);
        
    CreateObject(7191, -1901, -1640.699218755270180.2970428466890.505798339844);
        
    CreateObject(7191, -1901.099609375, -1637.0996093755270174.1715087890684.924072265625);
        
    CreateObject(7191, -1902.7998046875, -16395270180180);
        
    CreateObject(5153, -1900.6999511719, -1639.527.10000038147023.9996337890630);
        
    CreateObject(5153, -1900.6999511719, -1638.199951171927.10000038147023.9996337890630);
        
    CreateObject(1688165.30000305176127.59999847412535.20001220703000);
        
    CreateObject(5153, -1901.0999755859, -164121.79999923706190166.38427734375217.61529541016);
        
    CreateObject(5153, -1901.0999755859, -164123.8999996185390192.02313232422191.97094726563);
        
    CreateObject(5153, -1901.0999755859, -16412690173.66217041016210.32653808594);
        
    CreateObject(5153, -1901.0999755859, -164128.1000003814790171.52404785156212.45910644531);
        
    CreateObject(5153, -1903.3000488281, -1638.900024414121.79999923706190185.21534729004108.76779174805);
        
    CreateObject(5153, -1903.3000488281, -1638.900024414123.8999996185390184.5463104248109.4313659668);
        
    CreateObject(5153, -1903.3000488281, -1638.90002441412690184.60627746582109.36590576172);
        
    CreateObject(5153, -1903.3000488281, -1638.900024414128.1000003814790184.36218261719109.6044921875);
        
    CreateObject(9131, -1903.1999511719, -1640.900024414121.899999618530090);
        
    CreateObject(9131, -1903.1999511719, -1640.900024414124.100000381470090);
        
    CreateObject(9131, -1903.1999511719, -1640.900024414126.2000007629390090);
        
    CreateObject(9131, -1903.1999511719, -1640.900024414128.399999618530090);
        
    CreateObject(5153, -1901.1999511719, -1636.699951171921.79999923706190184.3058166503919.237091064453);
        
    CreateObject(5153, -1901.1999511719, -1636.699951171923.8999996185390184.350585937519.18212890625);
        
    CreateObject(5153, -1901.1999511719, -1636.69995117192690175.82617187527.706573486328);
        
    CreateObject(5153, -1901.1999511719, -1636.69995117192890175.7757568359427.75146484375);
        
    CreateObject(9131, -1903.1999511719, -1636.800048828121.89999961853000);
        
    CreateObject(9131, -1903.1999511719, -1636.800048828124.10000038147000);
        
    CreateObject(9131, -1903.1999511719, -1636.800048828126.200000762939000);
        
    CreateObject(9131, -1903.1999511719, -1636.800048828128.39999961853000);
        
    CreateObject(9131, -1898.9000244141, -1636.800048828121.8999996185300180);
        
    CreateObject(9131, -1898.9000244141, -1636.800048828124.1000003814700179.99450683594);
        
    CreateObject(9131, -1898.9000244141, -1636.800048828126.29999923706100179.99450683594);
        
    CreateObject(9131, -1898.9000244141, -1636.800048828128.3999996185300179.99450683594);
        
    CreateObject(9131, -1898.9000244141, -1640.900024414121.8999996185300179.99450683594);
        
    CreateObject(9131, -1898.9000244141, -1640.900024414124.1000003814700179.99450683594);
        
    CreateObject(9131, -1898.9000244141, -1640.900024414126.20000076293900179.99450683594);
        
    CreateObject(9131, -1898.9000244141, -1640.900024414128.3999996185300179.99450683594);
        
    CreateObject(5153, -1898.69921875, -1638.899414062528.20000076293990183.87551879883110.08013916016);
        
    CreateObject(5153, -1900.9000244141, -1639.529.10000038147023.9996337890630);
        
    CreateObject(5153, -1901.3000488281, -1639.529.10000038147023.9996337890630);
        
    CreateObject(5153, -1901.3000488281, -1638.099975585929.10000038147023.9996337890630);
        
    CreateObject(5153, -1900.9000244141, -1638.199951171929.10000038147023.9996337890630);
        
    CreateObject(9131, -1901.9000244141, -1636.900024414129.100000381470900);
        
    CreateObject(9131, -1900, -1636.900024414129.100000381470900);
        
    CreateObject(9131, -1903.0999755859, -1639.599975585929.1000003814709089.999816894531);
        
    CreateObject(9131, -1903.0999755859, -1638.099975585929.1000003814709090);
        
    CreateObject(9131, -1901.8000488281, -1640.800048828129.1000003814790192.92098999023257.07904052734);
        
    CreateObject(9131, -1900.1999511719, -1640.800048828129.1000003814790192.919921875257.07458496094);
        
    CreateObject(9131, -1898.9000244141, -1639.529.1000003814790191.77824401855348.22174072266);
        
    CreateObject(9131, -1898.9000244141, -1638.099975585929.1000003814790191.77734375348.21716308594);
        
    CreateObject(10244, -1879, -1642.520.50090);
        
    CreateObject(1423, -1897.3000488281, -1640.400024414124.799999237061000);
        
    CreateObject(1423, -1893.9000244141, -1640.400024414124.799999237061000);
        
    CreateObject(1423, -1890.5, -1640.300048828124.799999237061000);
        
    CreateObject(1423, -1886.9000244141, -1640.199951171924.799999237061000);
        
    CreateObject(1423, -1883.0999755859, -1640.099975585924.799999237061000);
        
    CreateObject(7191, -1899.19921875, -16391.2000000476837270179.99963378906179.99963378906);
        
    CreateObject(5153, -1898.9000244141, -1638.521.79999923706190176.34619140625117.60406494141);
        
    CreateObject(5153, -1898.9000244141, -1638.522.79999923706190183.69140625110.25332641602);
        
    CreateObject(7191, -1901.099609375, -1637.099609375, -38.590174.1662597656396.668823242188);
        
    CreateObject(7191, -1901, -1640.69921875, -38.590181.0876464843888.79638671875);
        
    CreateObject(7191, -1902.7998046875, -1639, -38.590179.99450683594179.99450683594);
        
    CreateObject(7191, -1899.19921875, -1639, -3590180.00549316406179.98352050781);
        
    CreateObject(7191, -1901.69921875, -1638.8994140625, -61.299999237061090270);
        
    CreateObject(1698, -1901.6999511719, -1638.8000488281, -61.099998474121000);
        
    CreateObject(1698, -1900.599609375, -1638.7998046875, -61.099998474121000);
        
    CreateObject(1698, -1899.5, -1638.8994140625, -61.099998474121000);
        
    CreateObject(1698, -1898.19921875, -1638.8994140625, -61.099998474121000);
        
    CreateObject(1698, -1896.8994140625, -1638.8994140625, -61.099998474121000);
        
    CreateObject(1698, -1895.6999511719, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1894.5999755859, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1893.3000488281, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1892, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1890.8000488281, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1889.8000488281, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1888.5, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1887.3000488281, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1886.0999755859, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1884.9000244141, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1883.5999755859, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1882.3000488281, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1881.0999755859, -1638.9000244141, -61.099998474121000);
        
    CreateObject(1698, -1880.099609375, -1638.8994140625, -61.099998474121000);
        
    CreateObject(1698, -1898.5, -1637.2998046875, -59.590179.99450683594179.99450683594);
        
    CreateObject(7191, -1898.5, -1637.19921875, -5900270);
        
    CreateObject(1698, -1897.1999511719, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1895.9000244141, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1894.5999755859, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1893.2998046875, -1637.2998046875, -59.590180.00549316406179.98352050781);
        
    CreateObject(1698, -1892, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1890.6999511719, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1889.5999755859, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1888.3000488281, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1887, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1885.6999511719, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1884.4000244141, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1883.099609375, -1637.2998046875, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1882, -1637.3000488281, -59.590180.00549316406179.98352050781);
        
    CreateObject(1698, -1880.69921875, -1637.2998046875, -59.590180.00549316406179.98352050781);
        
    CreateObject(1698, -1880.1999511719, -1637.3000488281, -59.590179.99450683594179.99450683594);
        
    CreateObject(7191, -1899, -1640.69921875, -59.20000076293900270);
        
    CreateObject(1698, -1898.4000244141, -1640.5999755859, -59.5900179.98352050781);
        
    CreateObject(1698, -1897.0999755859, -1640.5999755859, -59.5900179.98352050781);
        
    CreateObject(1698, -1895.8000488281, -1640.5999755859, -59.5900179.98352050781);
        
    CreateObject(1698, -1894.5, -1640.5999755859, -59.5900179.98352050781);
        
    CreateObject(1698, -1893.1999511719, -1640.5999755859, -59.5900179.98352050781);
        
    CreateObject(1698, -1891.9000244141, -1640.5999755859, -59.5900179.98352050781);
        
    CreateObject(1698, -1890.5999755859, -1640.5999755859, -59.590180359.98352050781);
        
    CreateObject(1698, -1889.3000488281, -1640.5999755859, -59.590179.99450683594359.97802734375);
        
    CreateObject(1698, -1888, -1640.5999755859, -59.590179.99450683594359.97802734375);
        
    CreateObject(1698, -1886.6999511719, -1640.5999755859, -59.590179.99450683594359.97802734375);
        
    CreateObject(1698, -1885.4000244141, -1640.5999755859, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1884.099609375, -1640.599609375, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1882.8000488281, -1640.5999755859, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1881.5, -1640.599609375, -59.590180.00549316406359.9670715332);
        
    CreateObject(1698, -1880.1999511719, -1640.5999755859, -59.590179.99450683594359.97805786133);
        
    CreateObject(1698, -1898.19921875, -1638.8994140625, -57.70000076293901800);
        
    CreateObject(1698, -1896.9000244141, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1895.5999755859, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1894.3000488281, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1893, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1891.6999511719, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1890.5, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1889.1999511719, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1888, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1886.6999511719, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1885.4000244141, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1884.0999755859, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1882.7998046875, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1881.5, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1880.1999511719, -1639.0999755859, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1878.9000244141, -1640.5999755859, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1877.5999755859, -1640.5999755859, -59.590179.99450683594359.97805786133);
        
    CreateObject(1698, -1879, -1637.3000488281, -59.40000152587990179.99450683594179.99450683594);
        
    CreateObject(1698, -1877.6999511719, -1637.3000488281, -59.40000152587990180.00549316406179.98352050781);
        
    CreateObject(1698, -1876.3994140625, -1637.2998046875, -59.40000152587990179.99450683594179.99450683594);
        
    CreateObject(1698, -1876.3994140625, -1640.599609375, -59.590180.00549316406359.9670715332);
        
    CreateObject(1698, -1879.3994140625, -1639.099609375, -61.099998474121000);
        
    CreateObject(1698, -1878.6999511719, -1639.0999755859, -61.099998474121000);
        
    CreateObject(1698, -1878, -1639.0999755859, -61.099998474121000);
        
    CreateObject(1698, -1877.3000488281, -1639.0999755859, -61.099998474121000);
        
    CreateObject(1698, -1876.599609375, -1639.099609375, -61.099998474121000);
        
    CreateObject(1698, -1878.8994140625, -1639.099609375, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1877.69921875, -1639.099609375, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1876.4000244141, -1639, -57.7000007629390179.994506835940);
        
    CreateObject(1698, -1875.6999511719, -1641.1999511719, -59.590185.73919677734264.26092529297);
        
    CreateObject(1698, -1875.6999511719, -1642.3000488281, -59.590187.97314453125262.02142333984);
        
    CreateObject(1698, -1875.6999511719, -1643.5999755859, -59.590186.34075927734263.64831542969);
        
    CreateObject(1698, -1875.6999511719, -1644.9000244141, -59.590184.56207275391265.42150878906);
        
    CreateObject(1698, -1875.6999511719, -1646.0999755859, -59.590185.73486328125264.2431640625);
        
    CreateObject(1698, -1875.6999511719, -1636.6999511719, -59.590185.15081787109264.84362792969);
        
    CreateObject(1698, -1875.6999511719, -1635.4000244141, -59.590184.77618408203265.21276855469);
        
    CreateObject(1698, -1875.6999511719, -1634.0999755859, -59.590184.56420898438265.41381835938);
        
    CreateObject(1698, -1875.6999511719, -1632.9000244141, -59.590175.69116210938274.28143310547);
        
    CreateObject(1698, -1875.6999511719, -1631.6999511719, -59.590184.36706542969265.59997558594);
        
    CreateObject(6959, -1875.5999755859, -1641.9000244141, -61000);
        
    CreateObject(18326, -1791.7998046875, -1629.099609375, -47.900001525879332.995605468750285.99609375);
        
    CreateObject(1698, -1875, -1646.5, -59.590180.00549316406359.9670715332);
        
    CreateObject(1698, -1873.6999511719, -1646.5, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1872.5, -1646.5, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1871.3000488281, -1646.5, -59.590180.00549316406359.96704101563);
        
    CreateObject(1698, -1870.1999511719, -1646.5, -59.590179.99450683594359.97802734375);
        
    CreateObject(1698, -1868.9000244141, -1646.5, -59.40000152587990179.99450683594359.97805786133);
        
    CreateObject(1698, -1875, -1631.1999511719, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1873.6999511719, -1631.1999511719, -59.590180.00549316406179.98352050781);
        
    CreateObject(1698, -1872.4000244141, -1631.1999511719, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1871.0999755859, -1631.1999511719, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1869.8000488281, -1631.1999511719, -59.590179.99450683594179.99450683594);
        
    CreateObject(1698, -1868.5, -1631.1999511719, -59.09999847412190180.00549316406179.98352050781);
        
    CreateObject(1698, -1867.3000488281, -1631.1999511719, -56.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1868.3000488281, -1646.5, -56.20000076293990180.00549316406359.96704101563);
        
    CreateObject(1698, -1867, -1646.5, -56.20000076293990179.99450683594359.97805786133);
        
    CreateObject(1698, -1875.5999755859, -1643.4000244141, -57.70000076293945180270);
        
    CreateObject(1698, -1875.5999755859, -1644.6999511719, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1645.9000244141, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1642.0999755859, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1641.1999511719, -57.70000076293944.994506835938179.99450683594269.99996948242);
        
    CreateObject(1698, -1875.5999755859, -1636.6999511719, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1635.5, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1634.1999511719, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1633.0999755859, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1875.5999755859, -1631.9000244141, -57.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1637.9000244141, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1639.1999511719, -56.70000076293944.994506835938179.99450683594269.99996948242);
        
    CreateObject(1698, -1874.5999755859, -1639.9000244141, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1641.1999511719, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1642.5, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1643.8000488281, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1645, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1645.9000244141, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1636.5999755859, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1635.3000488281, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1634.0999755859, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1632.9000244141, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.5999755859, -1631.9000244141, -56.70000076293944.994506835938179.99450683594270);
        
    CreateObject(1698, -1874.9000244141, -1631.1999511719, -56.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1872.3000488281, -1631.1999511719, -56.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1873.5999755859, -1631.1999511719, -56.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1871, -1631.1999511719, -56.20000076293990180.00549316406179.98352050781);
        
    CreateObject(1698, -1869.8000488281, -1631.1999511719, -56.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1868.5, -1631.1999511719, -56.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1866, -1631.1999511719, -5690180.00549316406179.98352050781);
        
    CreateObject(1698, -1864.9000244141, -1631.1999511719, -55.20000076293990179.99450683594179.99450683594);
        
    CreateObject(1698, -1874.8000488281, -1646.5, -56.20000076293990180.00549316406359.96704101563);
        
    CreateObject(1698, -1873.5, -1646.5, -56.20000076293990179.99450683594359.97802734375);
        
    CreateObject(1698, -1872.1999511719, -1646.5, -56.20000076293990180.00549316406359.9670715332);
        
    CreateObject(1698, -1870.9000244141, -1646.5, -56.20000076293990179.99450683594359.97805786133);
        
    CreateObject(1698, -1869.5999755859, -1646.5, -56.20000076293990180.00549316406359.96704101563);
        
    CreateObject(1698, -1872.6999511719, -1645.4000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1872.6999511719, -1642.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1872.6999511719, -1639.4000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1872.6999511719, -1636.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1872.6999511719, -1633, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1872, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1871.3000488281, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1870.5999755859, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1869.9000244141, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1869.1999511719, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1868.5, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1867.8000488281, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1867.0999755859, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1866.0999755859, -1632.3000488281, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1865.099609375, -1632.2998046875, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1872, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1871.3000488281, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1870.5999755859, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1869.9000244141, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1869.1999511719, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1868.5999755859, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1867.3000488281, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1866, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1864.6999511719, -1635.5, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1871.4000244141, -1638.5999755859, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1870.4000244141, -1638.5999755859, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1869.0999755859, -1638.5999755859, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1867.8000488281, -1638.5999755859, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1866.6999511719, -1638.5999755859, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1865.3994140625, -1638.599609375, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1864, -1631.1999511719, -55.40000152587990180.00549316406179.98352050781);
        
    CreateObject(1698, -1867.5999755859, -1631.1999511719, -58.09999847412190180.00549316406179.98352050781);
        
    CreateObject(1698, -1871.4000244141, -1641.9000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1870.0999755859, -1641.9000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1868.9000244141, -1641.9000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1867.6999511719, -1641.9000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1866.5, -1641.9000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1865.1999511719, -1641.9000244141, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1871.4000244141, -1645.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1870.0999755859, -1645.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1868.8000488281, -1645.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1867.5, -1645.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1866.1999511719, -1645.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1865.5, -1645.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1866.1999511719, -1646.5, -55.59999847412190180.00549316406359.96704101563);
        
    CreateObject(867, -1868.0999755859, -1635.3000488281, -58.50327358);
        
    CreateObject(867, -1868.599609375, -1644.099609375, -57.7999992370610313357.98950195313);
        
    CreateObject(1698, -1863.9000244141, -1632.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1863.9000244141, -1634.1999511719, -55.4000015258790179.994506835940);
        
    CreateObject(1698, -1864.5, -1637.9000244141, -55.4000015258790179.994506835940);

        
    floorlift[0] = CreateObject(1698, -1900.1999511719, -1638.900024414123.89999961853000);
        
    floorlift[1] = CreateObject(1698, -1901.4000244141, -1638.900024414123.89999961853000);
        
    floorlift[2] = CreateObject(1698, -1902.0999755859, -1638.900024414123.89999961853000);
        
    upgate CreateObject(975, -1899.0999755859, -1633.025.7000007629390090); //open
        
    downgate CreateObject(975, -1899.099609375, -1636.599609375, -59.4000015258790090); //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(127523, -1830.2748,-1639.3976,22.24960);
        
    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(playeridkilleridreason)
    {
        
    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(playerid1, -1854.7035,-1650.9668,25.7248)
            || 
    IsPlayerInRangeOfPoint(playerid1, -1803.5344,-1655.2640,25.8294)
            || 
    IsPlayerInRangeOfPoint(playerid1, -1788.5780,-1640.7179,27.0669))
            {
                
    SendClientMessage(playerid, -1"Вы начали добывать обычный металл.");
                
    SetTimerEx("TimerGiveMiner"5000false"i"playerid);
                
    ApplyAnimation(playerid"SWORD""sword_4"4.010000);
                  
    PlayerStartJob[playerid] = true;
            }
            if(
    IsPlayerInRangeOfPoint(playerid1, -1869.1316,-1634.7915,-58.500)
            || 
    IsPlayerInRangeOfPoint(playerid1, -1868.9603,-1643.6682,-58.046))
            {
                
    SendClientMessage(playerid, -1"Вы начали добывать качественный металл.");
                
    SetTimerEx("TimerGiveMinerEx"5000false"i"playerid);
                
    ApplyAnimation(playerid"SWORD""sword_4"4.010000);
                  
    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(playerid3, -1854.7035,-1650.9668,25.7248)
                && !
    IsPlayerInRangeOfPoint(playerid3, -1803.5344,-1655.2640,25.8294)
                && !
    IsPlayerInRangeOfPoint(playerid3, -1788.5780,-1640.7179,27.0669)
                && !
    IsPlayerInRangeOfPoint(playerid3, -1869.1316,-1634.7915,-58.500)
                && !
    IsPlayerInRangeOfPoint(playerid3, -1868.9603,-1643.6682,-58.046))
                {
                    
    SendClientMessage(playerid, -1"Вы уронили металл.");
                    
    DisablePlayerCheckpoint(playerid);
                    
    ApplyAnimation(playerid"CARRY""crry_prtial"4.000001);
                    
    PlayerStartJob[playerid] = false;
                    
    RemovePlayerAttachedObject(playerid4);
                    
    SetPlayerAttachedObject(playerid31863460.0782220.0000000.110844298.897308264.126861193.3505551.0000001.0000001.000000);
                    
    GetPlayerMetall[playerid] = 0;
                    
    GetPlayerMetallEx[playerid] = 0;
                    return 
    1;
                }
            }
        }
        return 
    1;
    }

    public 
    OnPlayerPickUpPickup(playeridpickupid)
    {
        if(
    pickupid == picjob)
        {
            if(!
    PlayerOnJob[playerid])
            {
                
    ShowPlayerDialog(playeridDIALOG_STARTJOBDIALOG_STYLE_MSGBOX"{FFFFFF}Работа шахтёра""{FFFFFF}Вы согласны устроится на работу {FFFF00}шахтёра?""Да""Нет");
            }
            else
            {
                
    ShowPlayerDialog(playeridDIALOG_ENDJOBDIALOG_STYLE_MSGBOX"{FFFFFF}Работа шахтёра""{FFFFFF}Вы согласны уволится с работы {FFFF00}шахтёра?""Да""Нет");
            }
        }
        return 
    1;
    }

    public 
    OnDialogResponse(playeriddialogidresponselistiteminputtext[])
    {
        if(
    dialogid == DIALOG_STARTJOB && response)
        {
            
    PlayerStartJob[playerid] = false;
            
    PlayerOnJob[playerid] = true;
            
    PlayerSavedSkin[playerid] = GetPlayerSkin(playerid);
            
    SetPlayerSkin(playerid16);
            
    SetPlayerAttachedObject(playerid31863460.0782220.0000000.110844298.897308264.126861193.3505551.0000001.0000001.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(playeridPlayerSavedSkin[playerid]);
            
    GivePlayerMoney(playeridmoney);
            
    format(stringsizeof(string), "Вы закончили работу. Ваш заработок: {00FF00}$%d"money);
            
    SendClientMessage(playerid, -1string);
            
    RemovePlayerAttachedObject(playerid3);
            
    RemovePlayerAttachedObject(playerid4);
            
    DisablePlayerCheckpoint(playerid);
            return 
    1;
        }
        return 
    0;
    }

    public 
    TimerGiveMiner(playerid)
    {
        
    RemovePlayerAttachedObject(playerid3);
        
    SendClientMessage(playerid, -1"Вы добыли обычный металл. Теперь отнесите его на склад.");
        
    ApplyAnimation(playerid"CARRY""crry_prtial"4.000011);
        
    SetPlayerAttachedObject(playerid4293610.1846990.4262470.000000259.53134180.9495920.0000000.4761240.4681810.470769);
        
    SetPlayerCheckpoint(playerid, -1865.7438, -1622.590121.90363.0);
        
    ExtraMetall[playerid] = 0;
        return 
    1;
    }

    public 
    TimerGiveMinerEx(playerid)
    {
        
    RemovePlayerAttachedObject(playerid3);
        
    SendClientMessage(playerid, -1"Вы добыли качественный металл. Теперь отнесите его на склад.");
        
    ApplyAnimation(playerid"CARRY""crry_prtial"4.000011);
        
    SetPlayerAttachedObject(playerid4293610.1846990.4262470.000000259.53134180.9495920.0000000.4761240.4681810.470769);
        
    SetPlayerCheckpoint(playerid, -1865.7438, -1622.590121.90363.0);
        
    ExtraMetall[playerid] = 1;
        return 
    1;
    }

    public 
    OnPlayerEnterCheckpoint(playerid)
    {
        if(
    PlayerStartJob[playerid])
        {
            new 
    string[256];
            
    DisablePlayerCheckpoint(playerid);
            
    ApplyAnimation(playerid"CARRY""crry_prtial"4.000001);
            
    PlayerStartJob[playerid] = false;
            
    RemovePlayerAttachedObject(playerid4);
            
    SetPlayerAttachedObject(playerid31863460.0782220.0000000.110844298.897308264.126861193.3505551.0000001.0000001.000000);
            if(
    ExtraMetall[playerid] == 1)
            {
                
    GetPlayerMetallEx[playerid] = 20+random(20);
                
    AllPlayerMetallEx[playerid] = AllPlayerMetallEx[playerid] + GetPlayerMetallEx[playerid];
                
    format(stringsizeof(string), "Вы принесли {9ACD32}%d{FFFFFF} кг. качественного металла."GetPlayerMetallEx[playerid]);
                
    SendClientMessage(playerid, -1string);
                  
    format(stringsizeof(string), "+%d"GetPlayerMetallEx[playerid]);
                  
    SetPlayerChatBubble(playeridstring0x00FF00FF20.03000);
                
    GetPlayerMetallEx[playerid] = 0;
            }
            else
            {
                
    GetPlayerMetall[playerid] = 20+random(40);
                
    AllPlayerMetall[playerid] = AllPlayerMetall[playerid] + GetPlayerMetall[playerid];
                
    format(stringsizeof(string), "Вы принесли {FFA500}%d{FFFFFF} кг. обычного металла."GetPlayerMetall[playerid]);
                
    SendClientMessage(playerid, -1string);
                  
    format(stringsizeof(string), "+%d"GetPlayerMetall[playerid]);
                  
    SetPlayerChatBubble(playeridstring0x00FF00FF20.03000);
                
    GetPlayerMetall[playerid] = 0;
            }
            
    format(stringsizeof(string), "Всего принесено металла: {FFA500}Обычного: {FFFFFF}%d {9ACD32}Качественного: {FFFFFF}%d"AllPlayerMetall[playerid], AllPlayerMetallEx[playerid]);
            
    SendClientMessage(playerid, -1string);
            return 
    1;
        }
        return 
    1;
    }

    public 
    OnPlayerCommandText(playeridcmdtext[])
    {
        if(!
    strcmp("/lift"cmdtexttrue))
        {
            if(!
    PlayerOnJob[playerid]) return SendClientMessage(playerid, -1"Вы не устроились на работу шахтёра.");
            if(
    exitp) return SendClientMessage(playerid, -1"Пожалуйста подождите.");
            if(!
    IsPlayerInRangeOfPoint(playerid5, -1899.0999755859, -1636.599975585925.700000762939)
            && !
    IsPlayerInRangeOfPoint(playerid5, -1899.0996093750, -1636.5996093750, -59.40000152587)) return SendClientMessage(playerid, -1"Вы не у лифта.");
            if(
    vputi) return SendClientMessage(playerid, -1"Лифт уже в пути.");
            if(!
    lift)
            {
                
    SetTimer("UpdateDoors"17500false);
                
    MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, -61.05);
                
    MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, -61.05);
                
    MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, -61.05);
                
    MoveObject(upgate, -1899.0999755859, -1636.599975585925.7000007629395);
                
    vputi true;
                
    lift true;
            }
            else
            {
                
    SetTimer("UpdateDoors"17500false);
                
    MoveObject(floorlift[0], -1900.1999511719, -1638.900024414123.899999618535);
                
    MoveObject(floorlift[1], -1901.4000244141, -1638.900024414123.899999618535);
                
    MoveObject(floorlift[2], -1902.0999755859, -1638.900024414123.899999618535);
                
    MoveObject(downgate, -1899.099609375, -1636.599609375, -59.4000015258795);
                
    vputi true;
                
    lift false;
            }
            return 
    1;
        }
        return 
    0;
    }

    public 
    UpdateDoors()
    {
        if(
    lift)
        {
            
    MoveObject(downgate, -1899.099609375, -1633.1999511719, -59.4000015258795);
        }
        else
        {
            
    MoveObject(upgate, -1899.0999755859, -1633.025.7000007629395);
        }
        
    exitp true;
        
    SetTimer("UpdateExit"5000false);
        
    vputi false;
        return 
    1;
    }

    public 
    UpdateExit()
    {
        
    exitp false;
        return 
    1;
    }

    public 
    OnPlayerKeyStateChange(playeridnewkeysoldkeys)
    {
        if(
    newkeys == KEY_FIRE && PlayerStartJob[playerid])
        {
            if(!
    IsPlayerInRangeOfPoint(playerid3, -1854.7035,-1650.9668,25.7248)
            && !
    IsPlayerInRangeOfPoint(playerid3, -1803.5344,-1655.2640,25.8294)
            && !
    IsPlayerInRangeOfPoint(playerid3, -1788.5780,-1640.7179,27.0669)
            && !
    IsPlayerInRangeOfPoint(playerid3, -1869.1316,-1634.7915,-58.500)
            && !
    IsPlayerInRangeOfPoint(playerid3, -1868.9603,-1643.6682,-58.046))
            {
                
    SendClientMessage(playerid, -1"Вы уронили металл.");
                   
    DisablePlayerCheckpoint(playerid);
                
    ApplyAnimation(playerid"CARRY""crry_prtial"4.000001);
                
    PlayerStartJob[playerid] = false;
                   
    RemovePlayerAttachedObject(playerid4);
                   
    SetPlayerAttachedObject(playerid31863460.0782220.0000000.110844298.897308264.126861193.3505551.0000001.0000001.000000);
                
    GetPlayerMetall[playerid] = 0;
                   
    GetPlayerMetallEx[playerid] = 0;
            }
        }
        return 
    1;
    }

    stock IsPlayerApplyAnimation(playeridanimation[])
    {
        if(!
    GetPlayerAnimationIndex(playerid)) return 0;
        new 
    animlib[32], animname[32];
        
    GetAnimationName(GetPlayerAnimationIndex(playerid), animlibsizeof(animlib), animnamesizeof(animname));
        if(
    strcmp(animnameanimationtrue) == 0) return 1;
        return 
    0;

    Скрины:





    Помогите пожалуйста! Дам +!
    1321
  2. #2
    Заблокирован

    Аватар для Eloy

    Статус: Оффлайн
    Регистрация:05.11.2011
    Адрес:Балаково
    Сообщений:1,228
    Репутация:333 [+/-] 
    Попробуй изменить ид диалогов
  3. #3
    Пользователь

    Аватар для _D@ddy_

    Статус: Оффлайн
    Регистрация:07.04.2012
    Сообщений:35
    Репутация:2 [+/-] 
    Менял.. :(
    1321

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения