07.07.2012, 10:34
Hey all, this is my first map and i hope you all like this (map location in Idlewood)
*for see all images click this link IMGUR
168 Create Object and 6 Remove Object
*fdgate1 and fdgate2 is moving object
* This is my code and maybe not same with your code
Code download :
Credit to McCurdy
*for see all images click this link IMGUR
168 Create Object and 6 Remove Object
Code:
RemoveBuildingForPlayer(playerid, 4025, 1777.8359, -1773.9063, 12.5234, 0.25); RemoveBuildingForPlayer(playerid, 4215, 1777.5547, -1775.0391, 36.7500, 0.25); RemoveBuildingForPlayer(playerid, 4019, 1777.8359, -1773.9063, 12.5234, 0.25); RemoveBuildingForPlayer(playerid, 1283, 1822.5703, -1763.2578, 15.5859, 0.25); RemoveBuildingForPlayer(playerid, 1283, 1832.8359, -1751.5078, 15.5859, 0.25); RemoveBuildingForPlayer(playerid, 1283, 1820.8359, -1741.1484, 15.5781, 0.25); CreateObject(11008, 1792.03, -1759.35, 19.44, 0.00, 0.00, 0.00); CreateObject(640, 1805.90, -1742.66, 13.13, 0.00, 0.00, 270.00); CreateObject(640, 1805.75, -1776.46, 13.13, 0.00, 0.00, 269.88); CreateObject(640, 1808.66, -1742.67, 13.13, 0.00, 0.00, 270.00); CreateObject(640, 1808.73, -1776.46, 13.13, 0.00, 0.00, 269.88); CreateObject(1215, 1811.51, -1776.46, 13.06, 0.00, 0.00, 0.00); CreateObject(1215, 1811.50, -1742.73, 13.06, 0.00, 0.00, 0.00); CreateObject(983, 1805.28, -1742.24, 13.26, 0.00, 0.00, -90.30); CreateObject(983, 1808.46, -1742.25, 13.26, 0.00, 0.00, -90.30); CreateObject(983, 1808.46, -1776.85, 13.26, 0.00, 0.00, -89.76); CreateObject(983, 1805.25, -1776.04, 13.26, 0.00, 0.00, -90.12); CreateObject(983, 1805.25, -1743.04, 13.26, 0.00, 0.00, -90.30); CreateObject(983, 1808.43, -1743.06, 13.26, 0.00, 0.00, -90.30); CreateObject(983, 1808.46, -1742.25, 13.26, 0.00, 0.00, -90.30); CreateObject(983, 1808.47, -1776.05, 13.26, 0.00, 0.00, -90.06); CreateObject(983, 1805.26, -1776.84, 13.26, 0.00, 0.00, -90.18); CreateObject(640, 1808.69, -1750.68, 13.13, 0.00, 0.00, 269.88); CreateObject(640, 1805.80, -1751.27, 13.13, 0.00, 0.00, 269.88); CreateObject(640, 1805.79, -1750.69, 13.13, 0.00, 0.00, 269.82); CreateObject(983, 1805.28, -1751.69, 13.26, 0.00, 0.00, -90.24); CreateObject(983, 1808.43, -1750.27, 13.26, 0.00, 0.00, -90.18); CreateObject(983, 1805.24, -1750.25, 13.26, 0.00, 0.00, -90.18); CreateObject(983, 1808.45, -1751.70, 13.26, 0.00, 0.00, -90.30); CreateObject(640, 1808.68, -1751.28, 13.13, 0.00, 0.00, 269.88); CreateObject(1215, 1811.52, -1751.33, 13.06, 0.00, 0.00, 0.00); CreateObject(1215, 1811.50, -1750.70, 13.06, 0.00, 0.00, 0.00); CreateObject(983, 1808.44, -1758.89, 13.26, 0.00, 0.00, -90.18); CreateObject(983, 1805.23, -1758.88, 13.26, 0.00, 0.00, -90.18); CreateObject(983, 1805.25, -1760.30, 13.26, 0.00, 0.00, -90.24); CreateObject(640, 1806.04, -1759.26, 13.13, 0.00, 0.00, 269.82); CreateObject(640, 1806.07, -1759.93, 13.13, 0.00, 0.00, 269.88); CreateObject(640, 1808.72, -1759.93, 13.13, 0.00, 0.00, 269.88); CreateObject(640, 1808.72, -1759.26, 13.13, 0.00, 0.00, 269.88); CreateObject(983, 1808.44, -1760.30, 13.26, 0.00, 0.00, -90.30); CreateObject(1215, 1811.53, -1759.95, 13.06, 0.00, 0.00, 0.00); CreateObject(1215, 1811.54, -1759.30, 13.06, 0.00, 0.00, 0.00); CreateObject(640, 1805.89, -1767.93, 13.13, 0.00, 0.00, 269.88); CreateObject(983, 1805.31, -1768.28, 13.26, 0.00, 0.00, -90.12); CreateObject(983, 1805.29, -1767.49, 13.26, 0.00, 0.00, -90.18); CreateObject(983, 1808.50, -1767.50, 13.26, 0.00, 0.00, -90.18); CreateObject(640, 1808.78, -1767.91, 13.13, 0.00, 0.00, 269.88); CreateObject(983, 1808.51, -1768.29, 13.26, 0.00, 0.00, -89.76); CreateObject(1215, 1811.53, -1767.91, 13.06, 0.00, 0.00, 0.00); CreateObject(1364, 1805.23, -1769.04, 13.36, 0.00, 0.00, 0.00); CreateObject(1364, 1809.61, -1769.02, 13.36, 0.00, 0.00, 0.00); CreateObject(1290, 1807.44, -1759.55, 18.47, 0.00, 0.00, 88.03); CreateObject(1290, 1807.62, -1751.06, 18.47, 0.00, 0.00, 88.03); CreateObject(1364, 1805.23, -1775.32, 13.36, 0.00, 0.00, -179.94); CreateObject(1364, 1809.65, -1775.30, 13.36, 0.00, 0.00, -179.94); CreateObject(983, 1808.46, -1742.25, 13.26, 0.00, 0.00, -90.30); CreateObject(18850, 1793.02, -1755.00, 14.35, 0.00, 0.00, 0.00); CreateObject(16096, 1783.37, -1765.01, 28.62, 0.00, 0.00, -180.00); CreateObject(1215, 1775.84, -1742.66, 13.06, 0.00, 0.00, 0.00); CreateObject(983, 1759.95, -1745.53, 13.25, 0.00, 0.00, -179.94); CreateObject(640, 1778.77, -1742.66, 13.25, 0.00, 0.00, 270.31); CreateObject(983, 1778.91, -1751.66, 13.25, 0.00, 0.00, -89.52); CreateObject(640, 1778.63, -1750.68, 13.25, 0.00, 0.00, 270.37); CreateObject(640, 1778.64, -1751.26, 13.25, 0.00, 0.00, 270.37); CreateObject(983, 1778.90, -1750.35, 13.25, 0.00, 0.00, -89.52); CreateObject(1215, 1775.77, -1750.74, 13.06, 0.00, 0.00, 0.00); CreateObject(1215, 1775.78, -1751.29, 13.06, 0.00, 0.00, 0.00); CreateObject(983, 1779.28, -1758.90, 13.25, 0.00, 0.00, -89.52); CreateObject(1215, 1776.11, -1759.37, 13.06, 0.00, 0.00, 0.00); CreateObject(1215, 1776.12, -1759.87, 13.06, 0.00, 0.00, 0.00); CreateObject(640, 1778.94, -1759.30, 13.25, 0.00, 0.00, 270.37); CreateObject(983, 1779.26, -1760.26, 13.25, 0.00, 0.00, -89.52); CreateObject(640, 1778.93, -1759.86, 13.25, 0.00, 0.00, 270.37); CreateObject(983, 1781.16, -1815.59, 13.25, 0.00, 0.00, -180.36); CreateObject(983, 1779.46, -1776.04, 13.25, 0.00, 0.00, -89.52); CreateObject(1215, 1776.36, -1776.47, 13.06, 0.00, 0.00, 0.00); CreateObject(983, 1779.22, -1768.29, 13.25, 0.00, 0.00, -89.52); CreateObject(640, 1778.91, -1767.93, 13.25, 0.00, 0.00, 270.37); CreateObject(1215, 1776.04, -1767.92, 13.06, 0.00, 0.00, 0.00); CreateObject(983, 1779.11, -1767.54, 13.25, 0.00, 0.00, -89.52); fdgate1 = CreateObject(2909, 1811.59, -1791.36, 13.87, 0.00, 0.00, 0.00); fdgate2 = CreateObject(2909, 1811.59, -1799.77, 13.87, 0.00, 0.00, 0.00); CreateObject(3881, 1808.80, -1781.05, 14.27, 0.00, 0.00, 0.00); CreateObject(3361, 1801.69, -1777.95, 14.05, 0.00, 0.00, -180.12); CreateObject(2773, 1778.68, -1773.87, 13.04, 0.00, 0.00, -90.00); CreateObject(2773, 1778.60, -1770.51, 13.04, 0.00, 0.00, -90.00); CreateObject(640, 1760.34, -1750.66, 13.25, 0.00, 0.00, 180.01); CreateObject(983, 1778.99, -1743.02, 13.25, 0.00, 0.00, -89.52); CreateObject(983, 1760.71, -1745.52, 13.25, 0.00, 0.00, -179.94); CreateObject(983, 1760.73, -1751.93, 13.25, 0.00, 0.00, -179.94); CreateObject(983, 1760.75, -1758.33, 13.25, 0.00, 0.00, -179.94); CreateObject(983, 1760.76, -1764.71, 13.25, 0.00, 0.00, -179.94); CreateObject(640, 1760.32, -1745.03, 13.25, 0.00, 0.00, 180.01); CreateObject(983, 1759.95, -1751.95, 13.25, 0.00, 0.00, -179.94); CreateObject(640, 1760.35, -1756.49, 13.25, 0.00, 0.00, 180.01); CreateObject(983, 1759.95, -1758.40, 13.25, 0.00, 0.00, -179.94); CreateObject(640, 1760.36, -1760.89, 13.25, 0.00, 0.00, 180.01); CreateObject(983, 1759.96, -1764.79, 13.25, 0.00, 0.00, -179.94); CreateObject(1215, 1760.32, -1769.98, 13.08, 0.00, 0.00, 0.00); CreateObject(16375, 1793.59, -1822.18, 12.60, 0.00, 0.00, -8.88); CreateObject(3578, 1752.77, -1747.43, 13.33, 0.00, 0.00, -89.76); CreateObject(3578, 1752.78, -1755.31, 13.33, 0.00, 0.00, -89.76); CreateObject(3578, 1752.80, -1762.69, 13.33, 0.00, 0.00, -89.76); CreateObject(19425, 1750.56, -1779.07, 12.52, 0.00, 0.00, 0.00); CreateObject(19425, 1747.26, -1779.09, 12.52, 0.00, 0.00, 0.00); CreateObject(19425, 1755.12, -1779.03, 12.52, 0.00, 0.00, 0.00); CreateObject(19425, 1758.31, -1779.04, 12.52, 0.00, 0.00, 0.00); CreateObject(640, 1779.20, -1776.43, 13.25, 0.00, 0.00, 270.37); CreateObject(2773, 1804.43, -1771.10, 13.15, 0.00, 0.00, -90.18); CreateObject(2773, 1804.29, -1773.20, 13.15, 0.00, 0.00, -90.18); CreateObject(8674, 1811.65, -1809.13, 13.79, 0.00, 0.00, -90.00); CreateObject(8674, 1811.64, -1781.97, 13.79, 0.00, 0.00, -90.00); CreateObject(8674, 1811.64, -1816.81, 13.79, 0.00, 0.00, -90.00); CreateObject(8674, 1745.60, -1747.38, 13.79, 0.00, 0.00, -269.70); CreateObject(8674, 1745.63, -1757.66, 13.79, 0.00, 0.00, -269.88); CreateObject(8674, 1745.63, -1767.94, 13.79, 0.00, 0.00, -270.12); CreateObject(8674, 1745.61, -1778.25, 13.79, 0.00, 0.00, -270.12); CreateObject(8674, 1745.61, -1788.55, 13.79, 0.00, 0.00, -270.12); CreateObject(8674, 1745.60, -1798.84, 13.79, 0.00, 0.00, -270.12); CreateObject(8674, 1745.59, -1803.97, 13.79, 0.00, 0.00, -270.12); CreateObject(8674, 1750.57, -1810.54, 13.79, 0.00, 0.00, -375.30); CreateObject(7922, 1810.53, -1821.36, 13.95, 0.00, 0.00, -179.64); CreateObject(8674, 1760.49, -1813.27, 13.79, 0.00, 0.00, -375.36); CreateObject(8674, 1770.42, -1815.96, 13.79, 0.00, 0.00, -374.88); CreateObject(8674, 1780.36, -1818.61, 13.79, 0.00, 0.00, -374.88); CreateObject(8674, 1790.29, -1821.26, 13.79, 0.00, 0.00, -374.88); CreateObject(8674, 1800.42, -1822.49, 13.79, 0.00, 0.00, -358.74); CreateObject(8674, 1805.54, -1822.39, 13.79, 0.00, 0.00, -358.74); CreateObject(1223, 1775.96, -1767.93, 12.52, 0.00, 0.00, 162.48); CreateObject(8841, 1760.42, -1764.23, 15.50, 0.00, 0.00, 270.13); CreateObject(640, 1760.36, -1767.00, 13.25, 0.00, 0.00, 180.01); CreateObject(640, 1760.35, -1772.88, 13.25, 0.00, 0.00, 180.01); CreateObject(983, 1760.77, -1771.10, 13.25, 0.00, 0.00, -179.94); CreateObject(983, 1759.96, -1771.18, 13.25, 0.00, 0.00, -179.94); CreateObject(1215, 1760.31, -1753.61, 13.04, 0.00, 0.00, 0.00); CreateObject(640, 1760.37, -1775.73, 13.25, 0.00, 0.00, 180.01); CreateObject(983, 1760.79, -1775.88, 13.25, 0.00, 0.00, -179.94); CreateObject(983, 1759.96, -1775.99, 13.25, 0.00, 0.00, -179.94); CreateObject(8674, 1750.74, -1742.27, 13.79, 0.00, 0.00, -360.06); CreateObject(8674, 1761.03, -1742.27, 13.79, 0.00, 0.00, -360.06); CreateObject(8674, 1771.34, -1742.25, 13.79, 0.00, 0.00, -360.06); CreateObject(8674, 1776.48, -1742.27, 13.79, 0.00, 0.00, -360.06); CreateObject(3578, 1752.83, -1770.07, 13.33, 0.00, 0.00, -89.76); CreateObject(3578, 1752.84, -1774.22, 13.33, 0.00, 0.00, -89.76); CreateObject(640, 1794.02, -1780.81, 13.25, 0.00, 0.00, 179.71); CreateObject(640, 1791.00, -1783.16, 13.25, 0.00, 0.00, 90.49); CreateObject(640, 1787.12, -1783.19, 13.25, 0.00, 0.00, 90.49); CreateObject(640, 1784.09, -1783.22, 13.25, 0.00, 0.00, 90.49); CreateObject(983, 1787.62, -1777.60, 13.25, 0.00, 0.00, -89.52); CreateObject(1676, 1789.21, -1777.19, 14.07, 0.00, 0.00, 0.00); CreateObject(1676, 1786.04, -1777.24, 14.07, 0.00, 0.00, 0.00); CreateObject(983, 1790.79, -1774.40, 13.25, 0.00, 0.00, -179.34); CreateObject(983, 1784.40, -1774.44, 13.25, 0.00, 0.00, -179.34); CreateObject(1775, 1795.02, -1777.21, 13.66, 0.00, 0.00, 0.00); CreateObject(1215, 1790.46, -1777.25, 13.14, 0.00, 0.00, 0.00); CreateObject(1215, 1784.81, -1777.28, 13.14, 0.00, 0.00, 0.00); CreateObject(638, 1787.66, -1776.22, 13.23, 0.00, 0.00, 0.00); CreateObject(2690, 1781.66, -1776.86, 14.17, 0.00, 0.00, 0.00); CreateObject(2690, 1792.11, -1776.87, 14.17, 0.00, 0.00, 0.00); CreateObject(640, 1794.03, -1779.29, 13.25, 0.00, 0.00, 179.71); CreateObject(640, 1781.61, -1805.87, 13.25, 0.00, 0.00, 179.71); CreateObject(640, 1781.58, -1811.22, 13.25, 0.00, 0.00, 179.71); CreateObject(640, 1781.54, -1816.12, 13.25, 0.00, 0.00, 179.71); CreateObject(983, 1779.46, -1776.81, 13.25, 0.00, 0.00, -89.52); CreateObject(983, 1781.19, -1809.21, 13.25, 0.00, 0.00, -180.30); CreateObject(983, 1781.20, -1806.02, 13.25, 0.00, 0.00, -180.30); CreateObject(1215, 1781.64, -1803.01, 13.13, 0.00, 0.00, 0.00); CreateObject(983, 1781.93, -1815.77, 13.25, 0.00, 0.00, -180.60); CreateObject(983, 1781.98, -1809.38, 13.25, 0.00, 0.00, -180.60); CreateObject(983, 1782.02, -1805.98, 13.25, 0.00, 0.00, -180.60); CreateObject(16375, 1744.07, -1825.85, 12.60, 0.00, 0.00, -91.32); CreateObject(1294, 1769.12, -1736.39, 16.91, 3.14, 0.00, -91.47); CreateObject(1294, 1826.20, -1736.81, 16.91, 3.14, 0.00, -1.83); CreateObject(1294, 1803.90, -1736.50, 16.91, 3.14, 0.00, -91.47);
Quote:
Coordinate for go to upstair : 1787.2072,-1764.9696,27.6078 |
Code:
new fdgate1; new fdgate2; --------------------------------------- new fdg; new fdg2; --------------------------------------- forward GateClose(); --------------------------------------- public GateClose() { MoveObject(fdgate1,1811.59, -1791.36, 13.87, 2.5); MoveObject(fdgate2,1811.59, -1799.77, 13.87, 2.5); fdg = 0; fdg2 = 0; return 1; } --------------------------------------- //under public OnGameModeInit() fdg = 0; fdg2 = 0; --------------------------------------- //under public OnPlayerCommandText(playerid, cmdtext[]) if (!strcmp(cmdtext, "/fdgate", true)) { if (IsPlayerInRangeOfPoint(playerid, 15,1811.59, -1795.36, 13.87)) { if(fdg == 1 || fdg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; } MoveObject(fdgate1,1811.59, -1782.96, 13.87,5); MoveObject(fdgate2,1811.59, -1808.19, 13.87,5); SetTimer("GateClose7", 10000, 0); SendClientMessage(playerid, COLOR_BLUE,"Fire Department Gate is Open and will Close in 10 seconds."); format(string, sizeof(string), "* %s takes his/her remote and opens a gate.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5); fdg = 1; fdg2 = 1; return 1; } }
Code download :
Quote:
Pastebin : http://pastebin.com/QQxKVdG4 |