Доступ к архиву

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

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

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

Шахта

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

sany

Умник
Шахта аналог Advance-RP

Всем привет !
Строго не судите моя 1 работа !
Хочу представить вам, Шахту
Автор: Я
Время Работы: где то 40мин
.

Скриншеты​











CreateDynamicObject(3401, -1892.12, -1634.91, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.09, -1642.81, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.10, -1647.31, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.13, -1630.64, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.09, -1651.61, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.08, -1655.89, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.05, -1659.88, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.05, -1664.09, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.06, -1668.47, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(5277, -1886.05, -1607.39, -61.38, 0.00, 0.00, 44.81);
CreateDynamicObject(3401, -1892.08, -1672.77, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.06, -1676.85, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.05, -1681.19, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.02, -1685.64, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.02, -1689.73, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3564, -1887.64, -1642.71, -60.28, 0.00, 0.00, 270.39);
CreateDynamicObject(3401, -1892.05, -1693.98, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.13, -1626.05, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(3401, -1892.13, -1621.83, -55.46, 90.00, 0.00, 0.00);
CreateDynamicObject(899, -1891.58, -1688.10, -65.02, 0.00, 0.00, 0.00);
CreateDynamicObject(899, -1883.73, -1705.62, -57.23, 0.00, -76.00, 3.00);
CreateDynamicObject(899, -1903.28, -1702.20, -57.23, 0.00, -76.00, 175.58);
CreateDynamicObject(899, -1897.24, -1710.24, -46.43, 0.00, -180.00, 176.00);
CreateDynamicObject(899, -1896.02, -1713.53, -54.51, -287.00, -178.00, 176.00);
CreateDynamicObject(899, -1893.57, -1701.17, -65.02, 0.00, 0.00, 0.00);
CreateDynamicObject(934, -1890.67, -1667.04, -60.87, 0.00, 0.00, 0.00);
CreateDynamicObject(816, -1888.07, -1688.73, -59.87, 0.00, 0.00, 0.00);
CreateDynamicObject(816, -1896.31, -1701.01, -59.05, 0.00, 0.00, 352.71);
CreateDynamicObject(816, -1892.43, -1690.75, -59.05, 0.00, 0.00, 0.00);
CreateDynamicObject(816, -1896.72, -1682.19, -60.17, 0.00, 0.00, 0.00);
CreateDynamicObject(816, -1888.29, -1682.59, -61.13, 0.00, 0.00, 0.00);
CreateDynamicObject(816, -1888.03, -1700.63, -54.66, -2.00, -84.00, 0.00);
CreateDynamicObject(816, -1889.09, -1697.82, -59.05, -2.00, -84.00, 0.00);
CreateDynamicObject(816, -1886.69, -1695.62, -54.66, -2.00, -84.00, 0.00);
CreateDynamicObject(816, -1898.19, -1698.67, -54.66, -2.00, -84.00, 203.24);
CreateDynamicObject(816, -1897.61, -1686.21, -59.95, 0.00, 0.00, 0.00);
CreateDynamicObject(3585, -1887.68, -1661.06, -60.28, 0.00, 0.00, 89.79);
CreateDynamicObject(3633, -1890.32, -1671.13, -61.70, 0.00, 0.00, 0.00);
CreateDynamicObject(16093, -1897.73, -1651.85, -58.23, 0.00, 0.00, 88.16);
CreateDynamicObject(899, -1895.59, -1696.61, -46.43, 0.00, -180.00, 176.00);
CreateDynamicObject(816, -1892.90, -1684.88, -59.87, 0.00, 0.00, 0.00);
CreateDynamicObject(3383, -1896.49, -1651.83, -58.15, 0.00, 0.00, 89.10);
CreateDynamicObject(816, -1896.64, -1651.73, -56.88, 0.00, 0.00, 248.96);
CreateDynamicObject(3564, -1887.59, -1652.24, -60.28, 0.00, 0.00, 270.39);
CreateDynamicObject(16638, -1896.76, -1651.85, -59.97, 0.00, 0.00, 87.50);
CreateDynamicObject(10841, -1890.88, -1621.25, -49.49, 0.00, 0.00, 0.00);
CreateDynamicObject(10841, -1891.00, -1621.08, -64.96, 0.00, -180.00, 0.00);
CreateDynamicObject(1810, -1897.02, -1649.64, -58.10, 0.00, 0.00, 42.67);
CreateDynamicObject(18652, -1898.90, -1664.33, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1898.99, -1672.54, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1898.87, -1681.15, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1885.13, -1685.22, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1885.16, -1676.79, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1885.19, -1668.04, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1885.24, -1659.87, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1885.25, -1651.61, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1898.96, -1642.41, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(18652, -1885.22, -1642.58, -56.32, 0.00, 0.00, 0.00);
CreateDynamicObject(3852, -1890.81, -1661.45, -62.76, 0.00, 0.00, 358.93);
CreateDynamicObject(7191, -1876.32, -1638.81, -48.79, 0.00, 90.00, 269.26);
CreateDynamicObject(1698, -1898.55, -1638.93, -61.66, 0.00, 46.00, 0.00);
CreateDynamicObject(1698, -1885.72, -1638.77, -49.28, 0.00, 135.00, 180.00);
CreateDynamicObject(1698, -1885.67, -1638.86, -61.66, 0.00, 46.10, 180.02);
CreateDynamicObject(1698, -1898.57, -1638.89, -49.32, 0.00, 135.00, 1.22);
CreateDynamicObject(7191, -1879.87, -1638.95, -62.12, 0.00, 90.00, 269.26);
CreateDynamicObject(7191, -1885.11, -1638.75, -48.49, -90.00, 90.00, 269.50);
CreateDynamicObject(19447, -1900.91, -1641.28, 24.44, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, 24.54, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, 18.32, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, 19.33, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -56.63, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -56.63, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, -47.29, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -47.09, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, -38.24, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -37.97, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -47.18, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -37.74, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, -28.75, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, -19.36, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -28.49, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, -10.18, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, -0.59, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, 8.86, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -19.05, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, 17.88, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -28.28, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -9.63, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, -0.33, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, 8.88, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, 18.28, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -18.95, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -9.49, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, -0.21, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, 8.99, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.77, -1637.20, 18.35, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1639.00, -56.63, -90.02, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, -51.90, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, -42.42, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, -32.83, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, -23.38, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, -14.06, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, -4.57, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, 4.93, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1899.14, -1638.87, 14.35, -90.00, 0.00, 0.00);
CreateDynamicObject(18980, -1899.41, -1640.94, 16.99, 0.00, 0.00, 0.00);
CreateDynamicObject(18980, -1899.38, -1636.80, 16.99, 0.00, 0.00, 0.00);
CreateDynamicObject(18980, -1902.62, -1636.82, 16.99, 0.00, 0.00, 0.00);
CreateDynamicObject(18980, -1902.69, -1640.88, 16.99, 0.00, 0.00, 0.00);
CreateDynamicObject(929, -1900.66, -1638.86, 30.25, 0.00, 0.00, 0.00);
CreateDynamicObject(19447, -1903.77, -1638.98, -61.14, 0.00, 90.00, 90.00);
CreateDynamicObject(18652, -1898.93, -1638.86, 28.08, 0.00, 0.00, 0.00);
CreateDynamicObject(18755, -1900.99, -1639.00, 26.06, 0.00, 0.00, 180.07);
CreateDynamicObject(19447, -1903.09, -1638.86, 24.43, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1902.39, -1638.86, 24.43, -90.00, 0.00, 0.00);
CreateDynamicObject(19447, -1900.73, -1640.55, 24.44, -90.00, 90.00, 0.00);
CreateDynamicObject(19447, -1900.93, -1636.41, 24.54, -90.00, 90.00, 0.00);
CreateDynamicObject(18762, -1900.38, -1638.86, 28.94, -90.00, 0.00, 0.00);
CreateDynamicObject(18762, -1899.43, -1638.83, 28.22, -90.00, 0.00, 0.00);
CreateDynamicObject(18762, -1901.38, -1638.86, 28.94, -90.00, 0.00, 0.00);
CreateDynamicObject(18762, -1902.38, -1638.85, 28.94, -90.00, 0.00, 0.00);
CreateDynamicObject(18762, -1899.43, -1638.83, 28.94, -90.00, 0.00, 0.00);
CreateDynamicObject(10244, -1876.63, -1642.38, 20.52, 0.00, 0.00, 90.71);
CreateDynamicObject(816, -1887.42, -1661.68, -60.89, 0.00, 0.00, 269.41);
CreateDynamicObject(816, -1887.50, -1659.97, -60.89, 0.00, 0.00, 262.12);
CreateDynamicObject(19273, -1898.92, -1637.05, 25.61, 0.00, 0.00, 90.00);
CreateDynamicObject(19273, -1899.11, -1636.99, -60.08, 0.00, 0.00, 90.00);



Вот кому нужно Моя работа шахтера ​
#include <a_samp>
new bool:exitp;
new bool:vputi;
new bool:lift;
new floorlift[3];

new upgate,downgate,picjob;
new bool:playerStartJob[MAX_PLAYERS];
new bool:playerOnJob[MAX_PLAYERS];
new GetPlayerMetall[MAX_PLAYERS];
new GetPlayerMetallEx[MAX_PLAYERS];
new AllPlayerMetall[MAX_PLAYERS];
new AllPlayerMetallEx[MAX_PLAYERS];
new ExtraMetall[MAX_PLAYERS];
new PlayerSavedSkin[MAX_PLAYERS];

#define DIALOG_STARTJOB 49
#define DIALOG_ENDJOB 50

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

public OnFilterScriptInit()
{


floorlift[1] = CreateObject(18755, -1900.99, -1639.00, 26.06, 0.00, 0.00, 180.07);//Лифт
upgate = CreateObject(975, -1899.0999755859, -1633.0, 25.700000762939, 0, 0, 90); //open
downgate = CreateObject(975, -1899.099609375, -1636.599609375, -59.400001525879, 0, 0, 90); //close



Create3DTextLabel("/lift{FFFFFF} - вызов/спуск", 0x00FF00FF,-1898.670,-1636.7733,26.0391,15,0,1);
Create3DTextLabel("/lift{FFFFFF} - вызов/подъём",0x00FF00FF,-1898.500,-1637.5000,-58.974,10,0,1);

picjob = CreatePickup(1275, 23, -1866.6125,-1633.6879,22.0451, 0);
//Create3DTextLabel("Работа шахтёра",0x00FF00FF,-1830.2748,-1639.3976,22.2496,20.0,0);
//---------Шахта---------//
CreateObject(3401, -1892.12, -1634.91, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.09, -1642.81, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.10, -1647.31, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.13, -1630.64, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.09, -1651.61, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.08, -1655.89, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.05, -1659.88, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.05, -1664.09, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.06, -1668.47, -55.46, 90.00, 0.00, 0.00);
CreateObject(5277, -1886.05, -1607.39, -61.38, 0.00, 0.00, 44.81);
CreateObject(3401, -1892.08, -1672.77, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.06, -1676.85, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.05, -1681.19, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.02, -1685.64, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.02, -1689.73, -55.46, 90.00, 0.00, 0.00);
CreateObject(3564, -1887.64, -1642.71, -60.28, 0.00, 0.00, 270.39);
CreateObject(3401, -1892.05, -1693.98, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.13, -1626.05, -55.46, 90.00, 0.00, 0.00);
CreateObject(3401, -1892.13, -1621.83, -55.46, 90.00, 0.00, 0.00);
CreateObject(899, -1891.58, -1688.10, -65.02, 0.00, 0.00, 0.00);
CreateObject(899, -1883.73, -1705.62, -57.23, 0.00, -76.00, 3.00);
CreateObject(899, -1903.28, -1702.20, -57.23, 0.00, -76.00, 175.58);
CreateObject(899, -1897.24, -1710.24, -46.43, 0.00, -180.00, 176.00);
CreateObject(899, -1896.02, -1713.53, -54.51, -287.00, -178.00, 176.00);
CreateObject(899, -1893.57, -1701.17, -65.02, 0.00, 0.00, 0.00);
CreateObject(934, -1890.67, -1667.04, -60.87, 0.00, 0.00, 0.00);
CreateObject(816, -1888.07, -1688.73, -59.87, 0.00, 0.00, 0.00);
CreateObject(816, -1896.31, -1701.01, -59.05, 0.00, 0.00, 352.71);
CreateObject(816, -1892.43, -1690.75, -59.05, 0.00, 0.00, 0.00);
CreateObject(816, -1896.72, -1682.19, -60.17, 0.00, 0.00, 0.00);
CreateObject(816, -1888.29, -1682.59, -61.13, 0.00, 0.00, 0.00);
CreateObject(816, -1888.03, -1700.63, -54.66, -2.00, -84.00, 0.00);
CreateObject(816, -1889.09, -1697.82, -59.05, -2.00, -84.00, 0.00);
CreateObject(816, -1886.69, -1695.62, -54.66, -2.00, -84.00, 0.00);
CreateObject(816, -1898.19, -1698.67, -54.66, -2.00, -84.00, 203.24);
CreateObject(816, -1897.61, -1686.21, -59.95, 0.00, 0.00, 0.00);
CreateObject(3585, -1887.68, -1661.06, -60.28, 0.00, 0.00, 89.79);
CreateObject(3633, -1890.32, -1671.13, -61.70, 0.00, 0.00, 0.00);
CreateObject(16093, -1897.73, -1651.85, -58.23, 0.00, 0.00, 88.16);
CreateObject(899, -1895.59, -1696.61, -46.43, 0.00, -180.00, 176.00);
CreateObject(816, -1892.90, -1684.88, -59.87, 0.00, 0.00, 0.00);
CreateObject(3383, -1896.49, -1651.83, -58.15, 0.00, 0.00, 89.10);
CreateObject(816, -1896.64, -1651.73, -56.88, 0.00, 0.00, 248.96);
CreateObject(16638, -1896.76, -1651.85, -59.97, 0.00, 0.00, 87.50);
CreateObject(10841, -1890.88, -1621.25, -49.49, 0.00, 0.00, 0.00);
CreateObject(10841, -1891.00, -1621.08, -64.96, 0.00, -180.00, 0.00);
CreateObject(1810, -1897.02, -1649.64, -58.10, 0.00, 0.00, 42.67);
CreateObject(18652, -1898.90, -1664.33, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1898.99, -1672.54, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1898.87, -1681.15, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1885.13, -1685.22, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1885.16, -1676.79, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1885.19, -1668.04, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1885.24, -1659.87, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1885.25, -1651.61, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1898.96, -1642.41, -56.32, 0.00, 0.00, 0.00);
CreateObject(18652, -1885.22, -1642.58, -56.32, 0.00, 0.00, 0.00);
CreateObject(3852, -1890.81, -1661.45, -62.76, 0.00, 0.00, 358.93);
CreateObject(7191, -1876.32, -1638.81, -48.79, 0.00, 90.00, 269.26);
CreateObject(1698, -1898.55, -1638.93, -61.66, 0.00, 46.00, 0.00);
CreateObject(1698, -1885.72, -1638.77, -49.28, 0.00, 135.00, 180.00);
CreateObject(1698, -1885.67, -1638.86, -61.66, 0.00, 46.10, 180.02);
CreateObject(1698, -1898.57, -1638.89, -49.32, 0.00, 135.00, 1.22);
CreateObject(7191, -1879.87, -1638.95, -62.12, 0.00, 90.00, 269.26);
CreateObject(7191, -1885.11, -1638.75, -48.49, -90.00, 90.00, 269.50);
CreateObject(19447, -1900.91, -1641.28, 24.44, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, 24.54, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, 18.32, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, 19.33, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -56.63, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -56.63, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, -47.29, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -47.09, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, -38.24, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -37.97, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -47.18, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -37.74, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, -28.75, -90.00, 0.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, -19.36, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -28.49, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, -10.18, -90.00, 0.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, -0.59, -90.00, 0.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, 8.86, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -19.05, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, 17.88, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -28.28, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -9.63, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, -0.33, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, 8.88, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, 18.28, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -18.95, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -9.49, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, -0.21, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, 8.99, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.77, -1637.20, 18.35, -90.00, 90.00, 0.00);
CreateObject(19447, -1902.39, -1639.00, -56.63, -90.02, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, -51.90, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, -42.42, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, -32.83, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, -23.38, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, -14.06, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, -4.57, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, 4.93, -90.00, 0.00, 0.00);
CreateObject(19447, -1899.14, -1638.87, 14.35, -90.00, 0.00, 0.00);
CreateObject(18980, -1899.41, -1640.94, 16.99, 0.00, 0.00, 0.00);
CreateObject(18980, -1899.38, -1636.80, 16.99, 0.00, 0.00, 0.00);
CreateObject(18980, -1902.62, -1636.82, 16.99, 0.00, 0.00, 0.00);
CreateObject(18980, -1902.69, -1640.88, 16.99, 0.00, 0.00, 0.00);
CreateObject(929, -1900.66, -1638.86, 30.25, 0.00, 0.00, 0.00);
CreateObject(19447, -1903.77, -1638.98, -61.14, 0.00, 90.00, 90.00);
CreateObject(18652, -1898.93, -1638.86, 28.08, 0.00, 0.00, 0.00);
CreateObject(19447, -1903.09, -1638.86, 24.43, -90.00, 0.00, 0.00);
CreateObject(19447, -1902.39, -1638.86, 24.43, -90.00, 0.00, 0.00);
CreateObject(19447, -1900.73, -1640.55, 24.44, -90.00, 90.00, 0.00);
CreateObject(19447, -1900.93, -1636.41, 24.54, -90.00, 90.00, 0.00);
CreateObject(18762, -1900.38, -1638.86, 28.94, -90.00, 0.00, 0.00);
CreateObject(18762, -1899.43, -1638.83, 28.22, -90.00, 0.00, 0.00);
CreateObject(18762, -1901.38, -1638.86, 28.94, -90.00, 0.00, 0.00);
CreateObject(18762, -1902.38, -1638.85, 28.94, -90.00, 0.00, 0.00);
CreateObject(18762, -1899.43, -1638.83, 28.94, -90.00, 0.00, 0.00);
CreateObject(10244, -1876.63, -1642.38, 20.52, 0.00, 0.00, 90.71);
CreateObject(816, -1887.42, -1661.68, -60.89, 0.00, 0.00, 269.41);
CreateObject(816, -1887.50, -1659.97, -60.89, 0.00, 0.00, 262.12);
CreateObject(19273, -1898.92, -1637.05, 25.61, 0.00, 0.00, 90.00);
CreateObject(19273, -1899.11, -1636.99, -60.08, 0.00, 0.00, 90.00);
CreateObject(19447, -1899.14, -1638.87, -51.90, -90.00, 0.00, 0.00);
CreateObject(3585, -1887.65, -1651.32, -60.28, 0.00, 0.00, 89.79);
CreateObject(3852, -1890.73, -1651.34, -62.76, 0.00, 0.00, 358.93);
CreateObject(816, -1887.48, -1651.17, -60.89, 0.00, 0.00, 262.12);
//==========================Уголь
CreateObject(807, -1851.49, -1650.59, 23.07, 0.00, 0.00, 0.00);
CreateObject(807, -1856.67, -1649.27, 25.00, 0.00, 0.00, 332.39);
CreateObject(807, -1862.06, -1648.09, 24.28, 0.00, -11.00, 332.00);
CreateObject(807, -1857.65, -1642.82, 22.93, 0.00, -11.00, 332.00);
//---------Шахта---------//

return 1;
}

public OnPlayerConnect(playerid)
{
PlayerOnJob[playerid] = false;
PlayerStartJob[playerid] = false;
GetPlayerMetall[playerid] = 0;
AllPlayerMetall[playerid] = 0;
GetPlayerMetallEx[playerid] = 0;
AllPlayerMetallEx[playerid] = 0;
ExtraMetall[playerid] = 0;
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
PlayerOnJob[playerid] = false;
PlayerStartJob[playerid] = false;
GetPlayerMetall[playerid] = 0;
AllPlayerMetall[playerid] = 0;
GetPlayerMetallEx[playerid] = 0;
AllPlayerMetallEx[playerid] = 0;
ExtraMetall[playerid] = 0;
return 1;
}

public OnPlayerUpdate(playerid)
{
if(PlayerOnJob[playerid] && !PlayerStartJob[playerid] && !IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 1, -1851.4855,-1650.5875,23.9818)//
|| IsPlayerInRangeOfPoint(playerid, 1, -1888.0699,-1688.7300,-59.0500)
|| IsPlayerInRangeOfPoint(playerid, 1, -1862.0557,-1648.0876,24.9959)
|| IsPlayerInRangeOfPoint(playerid, 1, -1857.6531,-1642.8154,23.8449))
{
SendClientMessage(playerid, -1, "Вы начали добывать Уголь.");
SetTimerEx("TimerGiveMiner", 8000, false, "i", playerid);
ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
PlayerStartJob[playerid] = true;
}
if(IsPlayerInRangeOfPoint(playerid, 1, -1888.2900,-1682.5900,-60.2300)
|| IsPlayerInRangeOfPoint(playerid, 1, -1892.4301,-1690.7500,-59.0500))
{
SendClientMessage(playerid, -1, "Вы начали добывать Металл.");
SetTimerEx("TimerGiveMinerEx", 10000, false, "i", playerid);
ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 0, 0, 0, 0);
PlayerStartJob[playerid] = true;
}
return 1;
}
if(PlayerStartJob[playerid])
{
if(IsPlayerApplyAnimation(playerid, "FALL_back")
|| IsPlayerApplyAnimation(playerid, "FALL_collapse")
|| IsPlayerApplyAnimation(playerid, "FALL_fall")
|| IsPlayerApplyAnimation(playerid, "FALL_front")
|| IsPlayerApplyAnimation(playerid, "FALL_glide")
|| IsPlayerApplyAnimation(playerid, "FALL_land")
|| IsPlayerApplyAnimation(playerid, "FALL_skyDive")
|| IsPlayerApplyAnimation(playerid, "JUMP_glide")
|| IsPlayerApplyAnimation(playerid, "JUMP_land")
|| IsPlayerApplyAnimation(playerid, "JUMP_launch")
|| IsPlayerApplyAnimation(playerid, "JUMP_launch_R"))
{
if(!IsPlayerInRangeOfPoint(playerid, 1, -1851.4855,-1650.5875,23.9818)//
&& !IsPlayerInRangeOfPoint(playerid, 1, -1888.0699,-1688.7300,-59.0500)
&& !IsPlayerInRangeOfPoint(playerid, 1, -1862.0557,-1648.0876,24.9959)
&& !IsPlayerInRangeOfPoint(playerid, 1, -1857.6531,-1642.8154,23.8449)
&& !IsPlayerInRangeOfPoint(playerid, 3, -1888.2900,-1682.5900,-60.2300)//
&& !IsPlayerInRangeOfPoint(playerid, 3, -1892.4301,-1690.7500,-59.0500))
{
SendClientMessage(playerid, -1, "Вы уронили .");
DisablePlayerCheckpoint(playerid);
ApplyAnimation(playerid,"PED","IDLE_chat",4.0,0,0,0,1,1);

PlayerStartJob[playerid] = false;
RemovePlayerAttachedObject(playerid, 4);
SetPlayerAttachedObject(playerid,3, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);// дали кирку
GetPlayerMetall[playerid] = 0;
GetPlayerMetallEx[playerid] = 0;
return 1;
}
}
}
return 1;
}

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

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_STARTJOB && response)
{
PlayerStartJob[playerid] = false;
PlayerOnJob[playerid] = true;
PlayerSavedSkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, 16);
SetPlayerAttachedObject(playerid,3, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);// дали кирку
return 1;
}
if(dialogid == DIALOG_ENDJOB && response)
{
new string[128];
new money = AllPlayerMetall[playerid]*2+AllPlayerMetallEx[playerid]*5;
PlayerStartJob[playerid] = false;
PlayerOnJob[playerid] = false;
GetPlayerMetall[playerid] = 0;
AllPlayerMetall[playerid] = 0;
GetPlayerMetallEx[playerid] = 0;
AllPlayerMetallEx[playerid] = 0;
ExtraMetall[playerid] = 0;
SetPlayerSkin(playerid, PlayerSavedSkin[playerid]);
GivePlayerMoney(playerid, money);
format(string, sizeof(string), "Вы закончили работу. Ваш заработок: {00FF00}$%d", money);
SendClientMessage(playerid, -1, string);
RemovePlayerAttachedObject(playerid, 3);
RemovePlayerAttachedObject(playerid, 4);
DisablePlayerCheckpoint(playerid);
return 1;
}
return 0;
}

public TimerGiveMiner(playerid)
{
RemovePlayerAttachedObject(playerid, 3);
ApplyAnimation(playerid,"PED","IDLE_chat",4.0,0,0,0,1,1);
SetPlayerAttachedObject(playerid,4, 1458, 1, -1.034844, 1.116571, -0.065124, 76.480148, 75.781570, 280.952545, 0.575599, 0.604554, 0.624122);// Дали телегу с камнем
SetPlayerAttachedObject(playerid,3, 905, 1, -0.275758, 1.305280, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);// Дали камень
SetPlayerCheckpoint(playerid, -1867.1086, -1613.3776, 20.8791, 3.0);
ExtraMetall[playerid] = 0;
return 1;
}

public TimerGiveMinerEx(playerid)
{
RemovePlayerAttachedObject(playerid, 3);
ApplyAnimation(playerid,"PED","IDLE_chat",4.0,0,0,0,1,1);
SetPlayerAttachedObject(playerid,4, 1458, 1, -1.034844, 1.116571, -0.065124, 76.480148, 75.781570, 280.952545, 0.575599, 0.604554, 0.624122);// Дали телегу с камнем
SetPlayerAttachedObject(playerid,3, 2936, 1, -0.275758, 1.305280, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);// Дали камень
SetPlayerCheckpoint(playerid, -1887.4814, -1651.1720, -60.5829, 3.0);
ExtraMetall[playerid] = 1;
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerStartJob[playerid])
{
new string[256];
DisablePlayerCheckpoint(playerid);
ApplyAnimation(playerid,"PED","IDLE_chat",4.0,0,0,0,1,1);
PlayerStartJob[playerid] = false;
RemovePlayerAttachedObject(playerid, 4);
SetPlayerAttachedObject(playerid,3, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);// дали кирку
if(ExtraMetall[playerid] == 1)
{
GetPlayerMetallEx[playerid] = 20+random(20);
AllPlayerMetallEx[playerid] = AllPlayerMetallEx[playerid] + GetPlayerMetallEx[playerid];
format(string, sizeof(string), "Вы принесли {9ACD32}%d{FFFFFF} кг. металла.", GetPlayerMetallEx[playerid]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "+%d", GetPlayerMetallEx[playerid]);
SetPlayerChatBubble(playerid, string, 0x00FF00FF, 20.0, 3000);
GetPlayerMetallEx[playerid] = 0;
}
else
{
GetPlayerMetall[playerid] = 20+random(40);
AllPlayerMetall[playerid] = AllPlayerMetall[playerid] + GetPlayerMetall[playerid];
format(string, sizeof(string), "Вы принесли {FFA500}%d{FFFFFF} кг.угля.", GetPlayerMetall[playerid]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "+%d", GetPlayerMetall[playerid]);
SetPlayerChatBubble(playerid, string, 0x00FF00FF, 20.0, 3000);
GetPlayerMetall[playerid] = 0;
}
format(string, sizeof(string), "Всего принесено : {FFA500}Угля: {FFFFFF}%d {9ACD32}Металла: {FFFFFF}%d", AllPlayerMetall[playerid], AllPlayerMetallEx[playerid]);
SendClientMessage(playerid, -1, string);
return 1;
}
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/lift", cmdtext, true))
{
if(!PlayerOnJob[playerid]) return SendClientMessage(playerid, -1, "Вы не устроились на работу шахтёра.");
if(exitp) return SendClientMessage(playerid, -1, "Пожалуйста подождите.");
if(!IsPlayerInRangeOfPoint(playerid, 5, -1899.0999755859, -1636.5999755859, 25.700000762939)
&& !IsPlayerInRangeOfPoint(playerid, 5, -1899.0996093750, -1636.5996093750, -59.40000152587)) return SendClientMessage(playerid, -1, "Вы не у лифта.");
if(vputi) return SendClientMessage(playerid, -1, "Лифт уже в пути.");
if(!lift)
{
SetTimer("UpdateDoors", 17500, false);
MoveObject(floorlift[1], -1900.99, -1639.00, -59.1100, 5);
MoveObject(upgate, -1899.0999755859, -1636.5999755859, 25.700000762939, 5);
vputi = true;
lift = true;
}
else
{
SetTimer("UpdateDoors", 17500, false);
MoveObject(floorlift[1], -1900.99, -1639.00, 26.06, 5);
MoveObject(downgate, -1899.099609375, -1636.599609375, -59.400001525879, 5);
vputi = true;
lift = false;
}
return 1;
}
return 0;
}

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

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

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_FIRE && PlayerStartJob[playerid])
{
if(!IsPlayerInRangeOfPoint(playerid, 1, -1851.4855,-1650.5875,23.9818)//
&& !IsPlayerInRangeOfPoint(playerid, 1, -1888.0699,-1688.7300,-59.0500)
&& !IsPlayerInRangeOfPoint(playerid, 1, -1862.0557,-1648.0876,24.9959)
&& !IsPlayerInRangeOfPoint(playerid, 1, -1857.6531,-1642.8154,23.8449)
&& !IsPlayerInRangeOfPoint(playerid, 3, -1888.2900,-1682.5900,-60.2300)//
&& !IsPlayerInRangeOfPoint(playerid, 3, -1892.4301,-1690.7500,-59.0500))
{
SendClientMessage(playerid, -1, "Вы уронили .");
DisablePlayerCheckpoint(playerid);
ApplyAnimation(playerid,"PED","IDLE_chat",4.0,0,0,0,1,1);
PlayerStartJob[playerid] = false;
RemovePlayerAttachedObject(playerid, 4);
SetPlayerAttachedObject(playerid,3, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);// дали кирку
GetPlayerMetall[playerid] = 0;
GetPlayerMetallEx[playerid] = 0;
}
}
return 1;
}

stock IsPlayerApplyAnimation(playerid, animation[])
{
if(!GetPlayerAnimationIndex(playerid)) return 0;
new animlib[32], animname[32];
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
if(strcmp(animname, animation, true) == 0) return 1;
return 0;
}
Все Объекты есть делал через editor(0.3e) c поддержкой удаления объектов !!!!Так что не просите КОд МТА
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу