05.03.2010, 18:02
[color=green]
ScreenShots
/imageshack/img237/453/samp001ky.png
How to Instal
Open your gamemode and on the top type
On public OnGameModeInit() Type
On public OnPlayerCommandText(playerid, cmdtext[]) Type
Las Venturas Admin Area
ScreenShots
/imageshack/img237/453/samp001ky.png
How to Instal
Open your gamemode and on the top type
pawn Код:
new info1;
new elevator1;
new elevator2;
new elevator3;
new gate;
new hqenter;
new hqexit;
pawn Код:
CreateObject(987, 2085.757324, 1823.737183, 9.820313, 0.0000, 0.0000, 62.3434);
CreateObject(987, 2091.336426, 1834.366577, 9.820313, 0.0000, 0.0000, 62.3434);
CreateObject(987, 2096.863281, 1844.902588, 9.820313, 0.0000, 0.0000, 62.3434);
CreateObject(7212, 2108.319580, 1895.887573, 11.380905, 0.0000, 0.0000, 180.0000);
CreateObject(7212, 2108.327637, 1895.894775, 14.455889, 0.0000, 0.0000, 180.0000);
CreateObject(7212, 2108.362061, 1936.796143, 11.425514, 0.0000, 0.0000, 0.0000);
CreateObject(7212, 2108.311279, 1936.856567, 14.423667, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 2023.999634, 2011.686523, 13.543521, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2106.559082, 1978.464844, 10.004429, 0.0000, 0.0000, 90.0000);
CreateObject(987, 2107.080078, 2002.260254, 9.952818, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2107.087158, 2011.372070, 9.941140, 0.0000, 0.0000, 270.0000);
CreateObject(987, 1944.174438, 2011.846069, 9.820313, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1932.234009, 2011.840698, 9.820074, 0.0000, 0.0000, 180.0000);
CreateObject(5005, 1852.504517, 1887.817261, 11.682923, 0.0000, 0.0000, 270.0000);
CreateObject(987, 1853.207275, 1803.931396, 11.742188, 0.0000, 0.0000, 292.5000);
CreateObject(987, 1871.070068, 1789.228516, 11.742188, 0.0000, 0.0000, 165.2350);
CreateObject(987, 1854.261353, 1798.250732, 11.742188, 0.0000, 1.7189, 315.0000);
CreateObject(983, 1871.671509, 1777.404175, 13.532676, 0.0000, 0.0000, 0.0000);
CreateObject(983, 1871.645386, 1783.807373, 13.532676, 0.0000, 0.0000, 0.0000);
CreateObject(982, 1885.862549, 1772.615234, 13.544316, 0.0000, 0.0000, 90.0000);
CreateObject(983, 1900.190918, 1772.657227, 13.532676, 0.0000, 0.0000, 90.0000);
CreateObject(984, 1904.322021, 1764.259766, 13.452233, 0.0000, 0.0000, 0.0000);
CreateObject(984, 1904.426880, 1748.110107, 13.456510, 0.0000, 0.0000, 0.0000);
CreateObject(984, 1904.322021, 1731.762451, 13.453000, 0.0000, 0.0000, 0.0000);
CreateObject(984, 1912.352783, 1723.407837, 13.362823, 0.0000, 0.0000, 270.0000);
CreateObject(984, 1928.736816, 1723.458984, 13.456510, 0.0000, 0.0000, 90.0000);
CreateObject(984, 1945.258545, 1723.482910, 13.455222, 0.0000, 0.0000, 90.0000);
CreateObject(984, 1961.586182, 1723.543091, 13.485801, 0.0000, 0.0000, 90.0000);
CreateObject(984, 1977.959351, 1723.407593, 13.481490, 0.0000, 0.0000, 90.0000);
CreateObject(984, 1994.326050, 1723.472412, 13.485801, 0.0000, 0.0000, 90.0000);
CreateObject(984, 2010.680664, 1723.447632, 13.485801, 0.0000, 0.0000, 90.0000);
CreateObject(987, 2017.597656, 1723.620728, 9.820313, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2024.734131, 1723.656128, 9.795313, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2036.701172, 1723.536499, 9.767902, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2042.101196, 1734.150757, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2047.538086, 1744.751343, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2052.928467, 1755.451538, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2058.388672, 1766.123291, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2063.804688, 1776.816040, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2069.126709, 1787.463623, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2074.448975, 1798.092651, 9.820313, 0.0000, 0.0000, 63.2028);
CreateObject(987, 2080.218018, 1813.138916, 9.820312, 0.0000, 0.0000, 62.3434);
CreateObject(987, 2079.692139, 1808.589111, 9.820313, 0.0000, 0.0000, 69.2189);
CreateObject(982, 1888.593872, 2030.315674, 14.574180, 0.0000, 0.8594, 74.3755);
CreateObject(984, 1907.457886, 2026.873779, 14.526880, 0.0000, 0.0000, 90.0000);
CreateObject(984, 1917.321289, 2020.478516, 14.526880, 0.0000, 0.0000, 0.0000);
CreateObject(983, 1913.840332, 2026.870972, 14.573755, 0.0000, 0.0000, 90.0000);
CreateObject(987, 1929.247314, 2011.797363, 9.827529, 0.0000, 0.0000, 180.0000);
CreateObject(1652, 2075.457520, 1734.147095, 10.347893, 0.0000, 0.0000, 63.2028);
CreateObject(984, 2087.666504, 1757.636719, 10.308555, 0.0000, 0.0000, 334.0623);
CreateObject(983, 2083.066162, 1748.448364, 10.355430, 0.0000, 0.0000, 333.2028);
CreateObject(982, 2105.383301, 1793.608521, 10.487168, 0.0000, 0.0000, 334.9217);
CreateObject(982, 2116.591064, 1816.640625, 10.355430, 0.0000, 0.0000, 333.1255);
CreateObject(982, 2128.166016, 1839.501953, 10.355430, 0.0000, 0.0000, 333.2028);
CreateObject(984, 2136.836914, 1856.704956, 10.308555, 0.0000, 0.0000, 333.2028);
CreateObject(982, 2140.001465, 1876.145630, 10.355430, 0.0000, 0.0000, 0.0000);
CreateObject(982, 2140.012939, 1901.738525, 10.355430, 0.0000, 0.0000, 0.0000);
CreateObject(982, 2140.009521, 1927.362915, 10.355430, 0.0000, 0.0000, 0.0000);
CreateObject(982, 2140.075928, 1952.916870, 10.376569, 0.0000, 0.0000, 0.0000);
CreateObject(982, 2140.101563, 1978.485962, 10.363210, 0.0000, 0.0000, 0.0000);
CreateObject(983, 2140.063232, 1991.203491, 10.363210, 0.0000, 0.0000, 0.0000);
CreateObject(4638, 2106.452148, 1975.098877, 11.325792, 0.0000, 0.0000, 0.8594);
CreateObject(984, 2108.620605, 1963.237427, 10.486349, 90.2409, 0.0000, 0.0000);
CreateObject(984, 2108.619873, 1963.718018, 10.504377, 90.2409, 0.0000, 0.0000);
CreateObject(984, 2108.264893, 1975.567017, 10.256526, 90.2409, 0.0000, 0.0000);
CreateObject(984, 2108.606689, 1974.024902, 10.324884, 90.2409, 0.0000, 183.9195);
CreateObject(971, 2106.271240, 1865.270508, 13.241781, 0.0000, 0.0000, 76.2490);
CreateObject(971, 2104.944824, 1859.769531, 13.266800, 0.0000, 0.0000, 76.2490);
CreateObject(9241, 2026.178955, 1971.867676, 28.244841, 0.0000, 0.0000, 90.0000);
CreateObject(13011, 2049.057861, 1970.168335, 23.113630, 0.0000, 0.0000, 90.0000);
CreateObject(13011, 2057.626221, 1959.365723, 18.844048, 0.0000, 0.0000, 90.0000);
CreateObject(8172, 1886.075806, 1867.968384, 29.078018, 355.7028, 0.0000, 270.0000);
CreateObject(8172, 1909.719604, 1867.857056, 26.581772, 0.0000, 0.0000, 90.0000);
CreateObject(9241, 1963.154053, 1915.873047, 131.996399, 0.0000, 0.0000, 33.7500);
CreateObject(5822, 1969.504028, 1896.081909, 124.940201, 0.0000, 0.0000, 123.7499);
CreateObject(8572, 1996.053345, 1875.429443, 122.240746, 0.0000, 0.0000, 299.4529);
CreateObject(13011, 2033.136719, 1894.518677, 12.766802, 0.0000, 0.0000, 180.9368);
CreateObject(12987, 2033.312866, 1887.122559, 19.630487, 0.0000, 0.0000, 0.0000);
CreateObject(12950, 2029.132813, 1883.479614, 23.261627, 0.0000, 0.0000, 90.0000);
CreateObject(997, 2029.583252, 1882.656494, 22.330667, 0.0000, 0.0000, 0.0000);
CreateObject(997, 2029.524170, 1884.257935, 22.330667, 0.0000, 0.0000, 0.0000);
CreateObject(997, 2032.670776, 1887.417603, 22.330667, 0.0000, 0.0000, 270.0000);
CreateObject(12950, 2063.666260, 1959.351929, 13.879590, 0.0000, 0.0000, 90.0000);
CreateObject(1472, 2064.441650, 1959.418091, 11.895305, 0.0000, 0.0000, 90.0000);
CreateObject(1472, 2065.444824, 1959.464844, 11.040688, 0.0000, 0.0000, 90.0000);
CreateObject(1472, 2066.476563, 1959.483032, 10.461283, 0.0000, 1.7189, 90.8594);
CreateObject(8263, 1887.720947, 1887.493164, 28.272652, 0.0000, 0.0000, 0.0000);
CreateObject(8172, 1908.892212, 1867.929688, 25.535519, 179.6221, 0.0000, 90.0000);
CreateObject(14758, 2004.115479, 1906.415405, -25.702211, 0.0000, 0.0000, 0.0000);
CreateObject(2191, 2018.081543, 1927.952148, -27.579674, 0.0000, 0.0000, 0.0000);
CreateObject(2197, 2012.531738, 1928.082031, -27.585024, 0.0000, 0.0000, 90.0000);
CreateObject(2197, 2012.530640, 1927.392700, -27.585024, 0.0000, 0.0000, 90.0000);
CreateObject(2197, 2012.526489, 1926.709961, -27.585024, 0.0000, 0.0000, 90.0000);
CreateObject(2161, 2016.596069, 1928.375732, -27.582563, 0.0000, 0.0000, 0.0000);
CreateObject(2067, 2011.320068, 1919.025269, -27.586184, 0.0000, 0.0000, 180.0000);
CreateObject(2067, 2011.931152, 1919.031738, -27.586184, 0.0000, 0.0000, 180.0000);
CreateObject(2066, 2018.747314, 1919.109741, -27.586184, 0.0000, 0.0000, 180.0000);
CreateObject(2066, 2018.602173, 1920.427979, -27.586184, 0.0000, 0.0000, 270.0000);
CreateObject(2024, 2016.249146, 1924.548340, -27.578644, 0.0000, 0.0000, 0.0000);
CreateObject(1708, 2018.452637, 1925.413086, -27.577255, 0.0000, 0.0000, 270.0000);
CreateObject(1705, 2017.201660, 1923.346313, -27.579203, 0.0000, 0.0000, 180.0000);
CreateObject(1705, 2016.067871, 1926.607300, -27.579203, 0.0000, 0.0000, 0.0000);
CreateObject(1704, 2014.988647, 1924.602661, -27.580343, 0.0000, 0.0000, 90.0000);
CreateObject(2778, 2011.575684, 1921.243042, -27.584320, 0.0000, 0.0000, 90.0000);
CreateObject(2681, 2011.583008, 1920.462402, -27.584320, 0.0000, 0.0000, 90.0000);
CreateObject(1947, 2011.594360, 1927.466309, -25.549057, 0.0000, 0.0000, 0.0000);
CreateObject(1882, 2018.437988, 1928.058105, -25.402718, 0.0000, 0.0000, 0.0000);
CreateObject(1880, 2011.577026, 1918.881104, -25.814934, 0.0000, 0.0000, 0.0000);
CreateObject(1515, 2013.364258, 1919.182007, -27.587656, 0.0000, 0.0000, 180.0000);
CreateObject(1808, 2015.336182, 1928.229248, -27.582369, 0.0000, 0.0000, 0.0000);
CreateObject(1828, 2017.170166, 1925.476074, -27.579493, 0.0000, 0.0000, 0.0000);
CreateObject(2100, 2015.709229, 1918.705811, -27.578016, 0.0000, 0.0000, 180.0000);
CreateObject(2700, 2011.023438, 1922.185669, -24.468809, 0.0000, 0.0000, 0.0000);
CreateObject(2700, 2015.620972, 1918.571655, -24.363762, 0.0000, 0.0000, 90.0000);
CreateObject(2816, 2016.819092, 1925.053345, -27.044661, 0.0000, 0.0000, 0.0000);
CreateObject(2824, 2017.368774, 1925.460815, -27.045084, 0.0000, 0.0000, 146.2500);
CreateObject(2827, 2016.213257, 1925.339478, -27.030792, 0.0000, 0.0000, 78.7500);
CreateObject(2847, 2010.901611, 1922.922485, -27.580254, 0.0000, 0.0000, 270.0000);
CreateObject(2172, 2018.582031, 1917.809082, -27.585024, 0.0000, 0.0000, 269.9999);
CreateObject(2172, 2018.580200, 1915.942871, -27.585024, 0.0000, 0.0000, 270.0000);
CreateObject(2172, 2018.574219, 1914.060181, -27.585024, 0.0000, 0.0000, 270.0000);
CreateObject(2172, 2018.576416, 1912.191406, -27.585024, 0.0000, 0.0000, 270.0000);
CreateObject(2181, 2018.564209, 1910.220459, -27.579420, 0.0000, 0.0000, 270.0000);
CreateObject(2182, 2018.409424, 1908.263184, -27.579420, 0.0000, 0.0000, 180.0000);
CreateObject(1714, 2017.995483, 1916.964844, -27.578636, 0.0000, 0.0000, 123.7499);
CreateObject(1714, 2018.067749, 1915.142090, -27.578636, 0.0000, 0.0000, 112.5000);
CreateObject(1714, 2018.068115, 1913.553711, -27.578636, 0.0000, 0.0000, 67.5000);
CreateObject(1715, 2017.682129, 1908.132446, -27.535608, 0.0000, 0.0000, 90.0000);
CreateObject(1714, 2017.617188, 1909.681641, -27.578636, 0.0000, 0.0000, 101.2500);
CreateObject(2231, 2011.760498, 1928.473267, -24.716885, 0.0000, 0.0000, 0.0000);
CreateObject(2231, 2019.045166, 1927.691772, -24.717012, 0.0000, 0.0000, 270.0000);
CreateObject(2231, 2018.263184, 1918.571655, -24.725788, 0.0000, 0.0000, 180.0000);
CreateObject(2231, 2011.023438, 1918.625122, -24.727942, 0.0000, 0.0000, 168.7500);
CreateObject(2344, 2016.747437, 1924.554443, -27.034578, 0.0000, 0.0000, 303.7500);
CreateObject(2344, 2015.914429, 1924.813354, -27.034578, 0.0000, 0.0000, 0.0000);
CreateObject(1786, 2014.864258, 1906.423218, -24.956650, 0.0000, 0.0000, 180.0000);
CreateObject(2190, 2018.789063, 1908.145386, -26.769804, 0.0000, 0.0000, 270.0000);
CreateObject(2202, 2012.389282, 1907.022339, -27.584267, 0.0000, 0.0000, 180.0000);
CreateObject(1507, 2002.752441, 1923.172607, -27.575275, 0.0000, 0.0000, 270.0000);
CreateObject(1798, 2002.280518, 1923.408936, -23.076582, 0.0000, 0.0000, 90.0000);
CreateObject(1798, 2002.277344, 1926.915771, -23.076582, 0.0000, 0.0000, 90.0000);
CreateObject(1799, 2002.689575, 1924.899780, -23.006783, 0.0000, 0.0000, 0.0000);
CreateObject(1799, 2007.246826, 1924.947510, -23.006783, 0.0000, 0.0000, 0.0000);
CreateObject(2344, 2002.660767, 1926.431641, -22.365675, 0.0000, 0.0000, 22.5000);
CreateObject(1786, 2010.881104, 1925.811523, -20.266979, 0.0000, 0.0000, 270.0000);
CreateObject(16151, 2014.711914, 1927.308594, -22.677647, 0.0000, 0.0000, 90.0000);
CreateObject(1510, 2012.522217, 1926.296997, -22.035440, 0.0000, 0.0000, 0.0000);
CreateObject(1517, 2013.211304, 1926.247437, -21.872473, 0.0000, 0.0000, 292.5000);
CreateObject(1517, 2011.769653, 1926.316284, -21.872473, 0.0000, 0.0000, 0.0000);
CreateObject(1543, 2014.325806, 1926.178589, -22.076740, 0.0000, 0.0000, 270.0000);
CreateObject(1511, 2011.060425, 1927.110229, -20.949909, 0.0000, 0.0000, 90.0000);
CreateObject(1546, 2011.228149, 1927.020752, -21.963100, 0.0000, 0.0000, 0.0000);
CreateObject(1726, 2018.523071, 1925.105103, -23.076984, 0.0000, 0.0000, 270.0000);
CreateObject(1727, 2016.948853, 1923.502930, -23.076971, 0.0000, 0.0000, 180.0000);
CreateObject(1507, 2014.277832, 1918.749878, -23.057884, 0.0000, 0.0000, 0.0000);
gate = CreateObject(980, 2108.686279, 1968.844116, 12.438099, 0.0000, 0.0000, 90.0000);
elevator1 = CreateObject(1553, 2000.085571, 1874.622803, 27.653271, 0.0000, 0.0000, 213.7500);
elevator2 = CreateObject(1553, 1999.498901, 1875.523438, 26.528265, 89.3814, 0.0000, 33.7500);
elevator3 = CreateObject(1553, 1998.897095, 1876.432983, 27.603275, 0.0000, 0.0000, 213.7500);
info1 = CreatePickup(1239, 23, 2109.6829, 1975.3536, 10.8217);
hqenter = CreatePickup(1318, 23, 2018.5897, 1919.7043, 12.3417);
hqexit = CreatePickup(1318, 23, 2005.1045, 1904.9774, -26.5772);
pawn Код:
//Admin Gate
if (strcmp(cmdtext, "/opengate", true)==0 && IsPlayerAdmin(playerid))
{
MoveObject(gate, 2108.675293, 1955.424316, 12.415715,4);
SendClientMessage(playerid, 0xFFFFFFFF,"Gate Is Opening!");
return 1;
}
if (strcmp(cmdtext, "/closegate", true)==0 && IsPlayerAdmin(playerid))
{
MoveObject(gate, 2108.686279, 1968.844116, 12.438099,4);
SendClientMessage(playerid, 0xFFFFFFFF,"Gate Closing!");
return 1;
}
//Admin Elevator
if (strcmp(cmdtext, "/goup", true)==0 && IsPlayerAdmin(playerid))
{
MoveObject(elevator1, 2000.085571, 1874.622803, 124.478325,4);
MoveObject(elevator2, 1999.498901, 1875.523438, 123.378258,4);
MoveObject(elevator3, 1998.897095, 1876.432983, 124.453461,4);
SendClientMessage(playerid, 0xFFFFFFFF,"The Elevator Is Goes Up!");
return 1;
}
if (strcmp(cmdtext, "/godown", true)==0 && IsPlayerAdmin(playerid))
{
MoveObject(elevator1, 2000.085571, 1874.622803, 27.653271,4);
MoveObject(elevator2, 1999.498901, 1875.523438, 26.528265,4);
MoveObject(elevator3, 1998.897095, 1876.432983, 27.603275,4);
SendClientMessage(playerid, 0xFFFFFFFF,"The Elevator Is Goes Down!");
return 1;
}
//Admin Spawn
if (strcmp(cmdtext, "/aspawn", true)==0 && IsPlayerAdmin(playerid))
{
SetPlayerPos(playerid, 2018.2966, 1916.3411, 12.3418);
return 1;
}[/code]
On [color=blue]public[/color] OnPlayerPickUpPickup(playerid, pickupid) Type
[code]if (pickupid == info1)
{
GameTextForPlayer(playerid, "~w~Las Venturas Admin Area", 5000, 3);//
SendClientMessage(playerid, 0xFFFFFFFF,"Commands");
SendClientMessage(playerid, 0xFFFFFFFF,"GATES");
SendClientMessage(playerid, 0xFFFFFFFF,"/opengate & /closegate To Open & Close Main Gate");
SendClientMessage(playerid, 0xFFFFFFFF,"ELEVATOR");
SendClientMessage(playerid, 0xFFFFFFFF,"/goup & /godown To Make Elevator Move Up Or Down");
SendClientMessage(playerid, 0xFFFFFFFF,"ADMIN AREA SPAWN");
SendClientMessage(playerid, 0xFFFFFFFF,"/aspawn");
}
if (pickupid == hqenter)
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2004.6743, 1907.1796, -26.5772);
}
if (pickupid == hqexit)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2018.2966, 1916.3411, 12.3418);
}