Доступ к готовым решениям

Переход в группу "Пользователь"

300.00
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Мануал Работа шахтёра

Статус
В этой теме нельзя размещать новые ответы.

Domenic_Capone

Изучающий
Пользователь
Регистрация
17 Авг 2012
Сообщения
352
Лучшие ответы
0
Репутация
150
Всем привет=) вот решил выложить работу=) Шахтёра.

Начнём:
PHP:
new bool:exitp,bool:vputi,bool:lift,floorlift[3],upgate,downgate,picjob,bool:PlayerStartJob[MAX_PLAYERS],bool:PlayerOnJob[MAX_PLAYERS];
new GetPlayerMetall[MAX_PLAYERS],GetPlayerMetallEx[MAX_PLAYERS],AllPlayerMetall[MAX_PLAYERS],AllPlayerMetallEx[MAX_PLAYERS],ExtraMetall[MAX_PLAYERS],PlayerSavedSkin[MAX_PLAYERS];
new TimerGiveMiner[MAX_PLAYERS],TimerGiveMinerEx[MAX_PLAYERS];
new htyk[MAX_PLAYERS];
new woodpick;

PHP:
pMoney,

PHP:
#define DIALOG_STARTJOB     				1011
#define DIALOG_ENDJOB       				1012

PHP:
		PlayerWood[playerid] = false;

PHP:
forward UpdateExit();
forward UpdateDoors();

PHP:
CreatePickup(1318,23,1212.0762,-28.5799,1000.9531,-1);
	CreatePickup(1318,23,1124.2694,-2040.9692,69.8827);
	CreatePickup(1318,23,-2192.6687,646.5949,49.4375);
	CreatePickup(1318,23,-2722.0066,-321.8170,7.8438);
	CreatePickup(1318,23,2211.9890,-1406.5155,24.4334);
	CreatePickup(1318,23,2486.2839,-1644.5435,14.0772);
	CreatePickup(1318,23,1739.9434,-2053.8269,13.5707);
	CreatePickup(1318,23,-2144.9578,-109.6709,35.3203);
	CreatePickup(1318,23,2479.7585,2351.9961,4.2109);
	CreatePickup(1318,23,2751.4946,-1967.8376,17.3203);
	CreatePickup(1318,23,-2236.9961,2354.2617,4.9799);
	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.69921875, -1639.5, 27.10000038147, 0, 23.999633789063, 0);
	CreateObject(5153, -1900.6999511719, -1638.1999511719, 27.10000038147, 0, 23.999633789063, 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.8994140625, -1640.8994140625, 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, -1896.1999511719, -1642.8000488281, 20.5, 0, 0, 92);
	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);
	Create3DTextLabel("Место добычи {00C0FF}№1\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1854.7035,-1650.9668,25.7248,30,0,1);
	Create3DTextLabel("Место добычи {00C0FF}№2\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1803.5344,-1655.2640,25.8294,30,0,1);
	Create3DTextLabel("Место добычи {00C0FF}№3\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1788.5780,-1640.7179,27.0669,30,0,1);
	Create3DTextLabel("Место добычи {00C0FF}№4\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1869.1316,-1634.7915,-58.500,30,0,1);
	Create3DTextLabel("Место добычи {00C0FF}№5\n{C1C1C1}Для начала работы подойдите к камням",0xFFFFFFFF,-1868.9603,-1643.6682,-58.046,30,0,1);
	Create3DTextLabel("{00C0FF}/lift{FFFFFF} - вызов/спуск", 0x00FF00FF,-1898.670,-1636.7733,26.0391,15,0,1);
	Create3DTextLabel("{00C0FF}/lift{FFFFFF} - вызов/подъём",0x00FF00FF,-1898.500,-1637.5000,-58.974,10,0,1);
	Create3DTextLabel("{FFFFFF}Место работы: Шахтер\n Подойди к пикапу,чтобы приступить к работе",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)

PHP:
	adminreadsms[playerid] = 0;
	PlayerOnJob[playerid] = false;
	PlayerStartJob[playerid] = false;
	GetPlayerMetall[playerid] = 0;
	AllPlayerMetall[playerid] = 0;
	GetPlayerMetallEx[playerid] = 0;
	AllPlayerMetallEx[playerid] = 0;
	ExtraMetall[playerid] = 0;

PHP:
	adminreadsms[playerid] = 0;
	PlayerOnJob[playerid] = false;
	PlayerStartJob[playerid] = false;
	GetPlayerMetall[playerid] = 0;
	AllPlayerMetall[playerid] = 0;
	GetPlayerMetallEx[playerid] = 0;
	AllPlayerMetallEx[playerid] = 0;
	ExtraMetall[playerid] = 0;

PHP:
public OnPlayerUpdate(playerid)
{
	if(PlayerOnJob[playerid] && !PlayerStartJob[playerid] && !IsPlayerInAnyVehicle(playerid))
	{
		if(IsPlayerInRangeOfPoint(playerid,2.0,-1854.67,-1650.97,25.7248)
				|| IsPlayerInRangeOfPoint(playerid,2.0,-1803.5344,-1655.2640,25.8294)
				|| IsPlayerInRangeOfPoint(playerid,2.0,-1788.5780,-1640.7179,27.0669))
		{
			SendClientMessage(playerid, -1, "Вы начали добывать обычный металл.");
			TimerGiveMiner[playerid] = 5;
			ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
			PlayerStartJob[playerid] = true;
		}
		if(IsPlayerInRangeOfPoint(playerid,2.0,-1869.1316,-1634.7915,-58.500)
				|| IsPlayerInRangeOfPoint(playerid,2.0,-1868.9603,-1643.6682,-58.046))
		{
			SendClientMessage(playerid, -1, "Вы начали добывать качественный металл.");
			TimerGiveMinerEx[playerid] = 5;
			ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
			PlayerStartJob[playerid] = true;
		}
		return true;
	}
	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 true;
			}
		}
	}
	return true;
}

PHP:
	if(pickupid == picjob)
	{
		if(!PlayerOnJob[playerid]) ShowPlayerDialog(playerid, DIALOG_STARTJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Работа шахтёра", "{FFFFFF}Вы согласны устроиться на работу шахтёра?", "Да", "Нет");
		else ShowPlayerDialog(playerid, DIALOG_ENDJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Работа шахтёра", "{FFFFFF}Вы согласны уволится с работы шахтёра?", "Да", "Нет");
	}
	if(pickupid ==  woodpick)
	{
		if(PlayerWood[playerid] == false)
		{
			ShowPlayerDialog(playerid,9997,DIALOG_STYLE_MSGBOX,"{ffcc00}Работа шахтёра","{FFFFFF}Вы собираетесь начать работу шахтёра","Начать","Отмена");
		}
		else
		{
			ShowPlayerDialog(playerid,9998,DIALOG_STYLE_MSGBOX,"{ffcc00}Работа шахтёра","{FFFFFF}Вы собираетесь покинуть работу шахтёра","Покинуть","Отмена");
		}
	}

)]
PHP:
	if(dialogid == DIALOG_STARTJOB)
	{
		if(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, "Вы устроились на работу шахтёра. {00C0FF}Места добычи находятся на камнях.");
			return true;
		}
		else {}
	}
	if(dialogid == DIALOG_ENDJOB)
	{
		if(response)
		{
			new moneyv = AllPlayerMetall[playerid]*4+AllPlayerMetallEx[playerid]*20;
			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]);
			PlayerInfo[playerid][pMoney] += moneyv;
			format(string, sizeof(string), "Вы закончили работу. Ваш заработок: {00FF00}%d$", moneyv);
			SendClientMessage(playerid, -1, string);
			RemovePlayerAttachedObject(playerid, 3);
			RemovePlayerAttachedObject(playerid, 4);
			DisablePlayerCheckpoint(playerid);
			return true;
		}
		else {}
	}

PHP:
		if(TimerGiveMiner[i] > 0) {
			TimerGiveMiner[i] --;
			if(TimerGiveMiner[i] == 0) {
				RemovePlayerAttachedObject(i, 3);
				SendClientMessage(i, -1, "Вы добыли обычный металл. Теперь отнесите его на склад.");
				ApplyAnimation(i, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 1, 1);
				SetPlayerAttachedObject(i, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
				SetPlayerRaceCheckpoint(i,2,-1865.7438, -1622.5901, 21.9036,0.0,0.0,0.0,3.0);
				ExtraMetall[i] = 0;
			}
		}
		if(TimerGiveMinerEx[i] > 0) {
			TimerGiveMinerEx[i] --;
			if(TimerGiveMinerEx[i] == 0) {
				RemovePlayerAttachedObject(i, 3);
				SendClientMessage(i, -1, "Вы добыли качественный металл. Теперь отнесите его на склад.");
				ApplyAnimation(i, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 1, 1);
				SetPlayerAttachedObject(i, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
				SetPlayerRaceCheckpoint(i,2,-1865.7438,-1622.5901,21.9036,0.0,0.0,0.0,3.0);
				ExtraMetall[i] = 1;
			}
		}

PHP:
	if(PlayerStartJob[playerid])
	{
		DisablePlayerRaceCheckpoint(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);
		new string[512];
		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;
			DisablePlayerRaceCheckpoint(playerid);
		}
		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;
			DisablePlayerRaceCheckpoint(playerid);
		}
		format(string, sizeof(string), "Всего принесено металла: {FFA500}Обычного: {FFFFFF}%d {9ACD32}Качественного: {FFFFFF}%d", AllPlayerMetall[playerid], AllPlayerMetallEx[playerid]);
		SendClientMessage(playerid, -1, string);
		return true;
	}
	return true;
}

)]
PHP:
	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 true;
	}
PHP:
	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;
		}
	}

PHP:
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 true;
}
public UpdateExit()
{
	exitp = false;
	return true;
}
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 true;
	return 0;
}


Не выпрашиваю + :)


















:dh: :dh: :dh:
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу