Valik_Timoshenko | Дата: Пятница, 13.07.2012, 09:36 | Сообщение # 1 |
Уверенный в себе
Группа:
Продвинутые
Сообщений: 159
Награды: 5
Город: Одесса
Репутация: 238
Замечания: 60%
Статус:
| Автор: Неизвестный
В public OnPlayerConnect
Code RemoveBuildingForPlayer(playerid, 4900, 1335.3203, -1882.3125, 17.0859, 0.25); RemoveBuildingForPlayer(playerid, 4889, 1335.3203, -1882.3125, 17.0859, 0.25);
Объекты:
Code CreateObject(5738, 1310.30, -1872.79, 21.00, 0.00, 0.00, 0.00); CreateObject(5738, 1332.34, -1882.82, -2.06, 0.00, 0.00, 90.00); CreateObject(5738, 1344.90, -1890.33, -2.05, 0.00, 0.00, 69.00); CreateObject(5738, 1362.74, -1899.30, -2.06, 0.00, 0.00, 69.00); CreateObject(10423, 1343.97, -1889.31, 19.90, 0.00, 0.00, 70.00); CreateObject(17037, 1325.55, -1889.44, 14.24, 0.00, 90.00, 90.00); CreateObject(11327, 1360.79, -1902.38, 14.80, 0.00, 0.00, 90.00); CreateObject(1294, 1361.43, -1877.79, 17.03, 3.00, 0.00, 251.00); CreateObject(1294, 1335.38, -1864.17, 17.03, 3.00, 0.00, 242.00); CreateObject(1232, 1366.29, -1901.49, 15.13, 0.00, 0.00, 0.00); CreateObject(1232, 1357.79, -1901.08, 15.13, 0.00, 0.00, 0.00); CreateObject(1372, 1379.31, -1890.39, 12.66, 3.00, 0.00, 270.00); CreateObject(1265, 1379.43, -1891.71, 12.76, 0.00, 0.00, 11.00); CreateObject(1265, 1379.53, -1889.35, 12.76, 0.00, 0.00, 11.00); CreateObject(1265, 1379.32, -1888.88, 12.76, 0.00, 0.00, 11.00); CreateObject(5738, 1356.51, -1909.42, -2.07, 0.00, 0.00, 64.00); CreateObject(5738, 1341.90, -1900.03, -2.07, 0.00, 0.00, 57.00); CreateObject(5738, 1310.30, -1872.79, 21.00, 0.00, 0.00, 0.00); CreateObject(5738, 1332.34, -1882.82, -2.06, 0.00, 0.00, 90.00); CreateObject(5738, 1344.90, -1890.33, -2.10, 0.00, 0.00, 69.00); CreateObject(5738, 1362.74, -1899.30, -2.06, 0.00, 0.00, 69.00); CreateObject(10423, 1343.97, -1889.31, 19.90, 0.00, 0.00, 70.00); CreateObject(17037, 1325.55, -1889.44, 14.24, 0.00, 90.00, 90.00); CreateObject(1294, 1361.43, -1877.79, 17.03, 3.00, 0.00, 251.00); CreateObject(1294, 1335.38, -1864.17, 17.03, 3.00, 0.00, 242.00); CreateObject(1232, 1366.29, -1901.49, 15.13, 0.00, 0.00, 0.00); CreateObject(1232, 1357.79, -1901.08, 15.13, 0.00, 0.00, 0.00); CreateObject(1372, 1379.31, -1890.39, 12.66, 3.00, 0.00, 270.00); CreateObject(1265, 1379.43, -1891.71, 12.76, 0.00, 0.00, 11.00); CreateObject(1265, 1379.53, -1889.35, 12.76, 0.00, 0.00, 11.00); CreateObject(1265, 1379.32, -1888.88, 12.76, 0.00, 0.00, 11.00); CreateObject(5738, 1356.51, -1909.42, -2.07, 0.00, 0.00, 64.00); CreateObject(5738, 1341.90, -1900.03, -2.07, 0.00, 0.00, 57.00); CreateObject(8678, 1336.88, -1937.46, 13.10, 0.00, 0.00, 270.00); CreateObject(7191, 1366.01, -1924.45, 14.40, 0.00, 0.00, 0.00); CreateObject(7191, 1358.68, -1917.08, -5.70, 90.00, 0.00, 113.00); CreateObject(7191, 1362.31, -1915.53, -5.70, 90.00, 0.00, 113.00); CreateObject(7191, 1365.91, -1914.02, -5.70, 90.00, 0.00, 113.00); CreateObject(7191, 1357.06, -1939.87, 14.40, 0.00, 0.00, 0.00); CreateObject(7191, 1357.07, -1956.44, 14.40, 0.00, 0.00, 0.00); CreateObject(7191, 1335.15, -1977.74, 14.40, 0.00, 0.00, 270.00); CreateObject(7191, 1316.79, -1955.36, 14.40, 0.00, 0.00, 0.00); CreateObject(7191, 1316.76, -1911.11, 14.40, 0.00, 0.00, 0.00); CreateObject(7191, 1327.09, -1897.28, 14.40, 0.00, 0.00, 90.00); CreateObject(7191, 1318.81, -1958.95, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1322.76, -1958.90, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1324.66, -1959.01, 16.41, 0.00, 90.00, 0.00); CreateObject(7191, 1328.64, -1977.74, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1332.58, -1977.73, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1336.54, -1977.28, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1342.23, -1955.87, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1346.16, -1955.86, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1349.95, -1955.85, 16.41, 0.00, 90.00, 0.00); CreateObject(7191, 1353.82, -1955.86, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1357.69, -1955.89, 16.41, 0.00, 90.00, 0.00); CreateObject(7191, 1318.83, -1914.71, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1322.61, -1914.74, 16.41, 0.00, 90.00, 180.00); CreateObject(7191, 1326.54, -1914.71, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1330.53, -1915.90, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1334.75, -1917.52, 16.41, 0.00, 90.00, 180.00); CreateObject(7191, 1338.35, -1917.56, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1342.27, -1911.60, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1346.21, -1911.73, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1349.94, -1911.65, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1353.88, -1911.61, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1357.76, -1924.72, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1361.52, -1924.74, 16.40, 0.00, 90.00, 0.00); CreateObject(7191, 1365.40, -1924.68, 16.40, 0.00, 90.00, 0.00); CreateObject(18009, 1330.23, -1944.08, 16.10, 0.00, 0.00, 90.00); CreateObject(18102, 1337.20, -1949.15, 16.85, 0.00, 0.00, 0.00); CreateObject(18013, 1326.85, -1946.18, 14.85, 0.00, 0.00, 90.00); CreateObject(18016, 1327.50, -1942.83, 14.55, 0.00, 0.00, 90.00); CreateObject(1825, 1325.42, -1953.16, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1322.40, -1952.99, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1322.18, -1950.03, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1322.61, -1943.96, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1325.02, -1941.37, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1322.09, -1940.50, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1337.87, -1935.03, 13.20, 0.00, 0.00, 0.00); CreateObject(1825, 1334.33, -1934.45, 13.20, 0.00, 0.00, 0.00); CreateObject(18011, 1322.84, -1946.71, 13.82, 0.00, 0.00, 90.00); CreateObject(18012, 1330.01, -1949.11, 13.85, 0.00, 0.00, 90.00); CreateObject(18014, 1323.65, -1937.67, 13.25, 0.00, 0.00, 90.00); CreateObject(18015, 1323.28, -1946.34, 15.15, 0.00, 0.00, 90.00); CreateObject(18017, 1333.80, -1944.60, 13.60, 0.00, 0.00, 90.00); CreateObject(1825, 1331.35, -1945.55, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1329.23, -1954.08, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1331.33, -1949.77, 12.85, 0.00, 0.00, 0.00); CreateObject(1825, 1338.01, -1953.59, 13.22, 0.00, 0.00, 0.00); CreateObject(1825, 1334.72, -1950.61, 13.22, 0.00, 0.00, 0.00); CreateObject(1825, 1338.32, -1942.11, 13.22, 0.00, 0.00, 0.00); CreateObject(1825, 1334.65, -1946.04, 13.22, 0.00, 0.00, 0.00); CreateObject(7191, 1328.40, -1915.90, 16.41, 0.00, 90.00, 180.00); CreateObject(7191, 1334.40, -1915.34, 16.40, 0.00, 90.00, 180.00); CreateObject(7191, 1339.43, -1977.31, 16.41, 0.00, 90.00, 0.00); CreateObject(9339, 1339.06, -1932.48, 0.18, 90.00, 0.00, 90.00); CreateObject(1535, 1326.36, -1937.89, 16.40, 90.00, 0.00, 0.00); CreateObject(9339, 1337.66, -1932.49, 0.18, 90.00, 0.00, 90.00); CreateObject(9339, 1336.27, -1932.50, 0.18, 90.00, 0.00, 90.00); CreateObject(9339, 1334.87, -1932.51, 0.18, 90.00, 0.00, 90.00); CreateObject(9339, 1333.47, -1932.51, 0.18, 90.00, 0.00, 90.00); CreateObject(9339, 1332.47, -1932.51, 0.18, 90.00, 0.00, 90.00); CreateObject(9339, 1332.91, -1937.59, 0.28, 90.00, 0.00, 0.00); CreateObject(19127, 1340.50, -1939.82, 13.00, 0.00, 0.00, 0.00); CreateObject(19127, 1339.93, -1937.18, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1343.83, -1920.11, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1355.11, -1918.09, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1344.38, -1900.30, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1329.93, -1900.81, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1321.39, -1904.19, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1327.07, -1928.64, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1340.45, -1928.10, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1340.38, -1962.30, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1326.45, -1971.69, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1347.50, -1971.56, 13.00, 0.00, 0.00, 0.00); CreateObject(19122, 1327.24, -1962.43, 13.00, 0.00, 0.00, 0.00); CreateObject(3660, 1330.45, -1955.58, 14.58, 0.00, 0.00, 0.00); CreateObject(861, 1340.13, -1955.19, 13.19, 0.00, 0.00, 0.00); CreateObject(8132, 1323.35, -1934.83, 145759.00, 0.00, 0.00, 62.00); CreateObject(1419, 1337.75, -1932.41, 13.78, 0.00, 0.00, 0.00); CreateObject(1419, 1333.83, -1932.43, 13.78, 0.00, 0.00, 0.00); CreateObject(2395, 1328.34, -1955.65, 13.08, 0.00, 0.00, 0.00); CreateObject(2395, 1328.31, -1955.64, 14.70, 0.00, 0.00, 0.00); CreateObject(2395, 1329.64, -1955.71, 13.08, 0.00, 0.00, 0.00); CreateObject(2395, 1329.58, -1955.64, 14.70, 0.00, 0.00, 0.00); CreateObject(2395, 1333.20, -1955.62, 14.50, 0.00, 0.00, 7.08); CreateObject(2395, 1333.20, -1955.62, 12.00, 0.00, 0.00, 7.08); CreateObject(2395, 1336.73, -1955.19, 13.08, 0.00, 0.00, 0.00); CreateObject(2395, 1336.73, -1955.19, 14.00, 0.00, 0.00, 0.00); CreateObject(2395, 1332.55, -1938.02, 12.78, 0.00, 0.00, 180.00); CreateObject(2395, 1329.60, -1938.02, 12.78, 0.00, 0.00, 180.00); CreateObject(2395, 1329.60, -1938.00, 15.00, 0.00, 0.00, 180.00); CreateObject(2395, 1332.55, -1938.04, 14.00, 0.00, 0.00, 180.00); CreateObject(7191, 1320.31, -1938.90, -5.70, 90.00, 0.00, 0.00); CreateObject(7191, 1322.19, -1937.02, -5.70, 90.00, 0.00, 90.00); CreateObject(7191, 1324.40, -1937.04, -5.70, 90.00, 0.00, 90.00); CreateObject(2395, 1326.47, -1940.14, 12.20, 0.00, 0.00, 90.00); CreateObject(2395, 1326.45, -1940.14, 14.00, 0.00, 0.00, 90.00); CreateObject(7191, 1320.31, -1942.86, -5.70, 90.00, 0.00, 0.00); CreateObject(7191, 1320.31, -1946.82, -5.70, 90.00, 0.00, 0.00); CreateObject(7191, 1320.32, -1950.78, -5.70, 90.00, 0.00, 0.00); CreateObject(7191, 1320.32, -1953.73, -5.70, 90.00, 0.00, 0.00); CreateObject(7191, 1322.21, -1955.63, -5.70, 90.00, 0.00, 90.00); CreateObject(7191, 1325.80, -1955.63, -5.70, 90.00, 0.00, 90.00); CreateObject(7191, 1331.78, -1934.32, -5.70, 90.00, 0.00, 180.00); CreateObject(7191, 1331.77, -1936.27, -5.70, 90.00, 0.00, 180.00); CreateObject(7191, 1339.71, -1935.44, -7.96, 90.00, 0.00, 180.00); CreateObject(7191, 1339.72, -1934.32, -7.96, 90.00, 0.00, 180.00); CreateObject(7191, 1337.84, -1937.30, -7.96, 90.00, 0.00, 270.00); CreateObject(1649, 1338.33, -1939.95, 14.16, 0.00, 90.00, 0.00); CreateObject(1649, 1339.90, -1942.12, 14.67, 0.00, 0.00, 90.00); CreateObject(1649, 1339.93, -1946.44, 14.67, 0.00, 0.00, 90.00); CreateObject(1649, 1339.90, -1948.90, 14.67, 0.00, 0.00, 90.00); CreateObject(1649, 1339.91, -1952.88, 14.67, 0.00, 0.00, 90.00); CreateObject(1649, 1326.91, -1941.72, 14.67, 0.00, 0.00, 90.00); CreateObject(1649, 1326.91, -1941.72, 14.66, 0.00, 0.00, 270.00); CreateObject(1649, 1326.94, -1952.79, 14.67, 0.00, 0.00, 90.00); CreateObject(1649, 1326.94, -1952.79, 14.66, 0.00, 0.00, 270.00);
Команда для открытие ворот:
Ко всем new
Найдите строчку CreateObject(11327, 1360.7900390625 и замените её на
Code adminGate = CreateObject(11327, 1360.7900390625, -1902.3800048828, 14.800000190735, 0, 0, 90);
Code if ((strcmp(cmd, "/openadmin", true)==0) || (strcmp(cmd, "/oga", true)==0)) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(15.0,playerid, 1360.7900390625, -1902.3800048828, 14.800000190735)) // Автошкола { if(PlayerInfo[playerid][pAdmin] >= 7) { MoveObject(adminGate,1349, -1902.3800048828, 14.800000190735, 3); SetTimer("adminGateClose", 5000, 0); } else{SendClientMessage(playerid, COLOR_GREY, "Ошибка");} } } }
В самый конец мода:
Code forward adminGateClose(); public adminGateClose() { MoveObject(adminGate, 1360.7900390625, -1902.3800048828, 14.800000190735,2.00); return 0; }
http://axesas-project.ru/ Неважно, сколько вас. Важно верить и важно иметь четкий план. Победа - это упорство.
|
|
|
|