Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Moving objects
- new
- TTGate1,
- TTGate2,
- TTLift1,
- TTLift2,
- TTGate1Moved =0,
- TTGate2Moved =0,
- TTLiftMoved =0
- ;
- public OnGameModeInIt()
- {
- TTLift1 = CreateDynamicObject(19313, 278.97, 1821.11, 16.64, 90.00, 0.00, 0.00);
- TTLift2 = CreateDynamicObject(19313, 292.96, 1821.21, 16.64, 90.00, 0.00, 0.00);
- CreateDynamicObject(19313, 145.71, 1948.39, 21.53, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.71, 1962.43, 21.53, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.72, 1976.48, 21.53, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.73, 1990.52, 21.53, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.74, 2004.51, 21.47, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.66, 2018.58, 21.00, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.66, 2032.61, 20.26, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 145.64, 2046.62, 19.62, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 143.25, 2060.20, 19.53, 0.00, 0.00, 110.00);
- CreateDynamicObject(19313, 140.83, 2073.81, 19.53, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 140.83, 2087.86, 19.88, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 140.83, 2101.91, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 147.85, 2108.89, 19.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 160.41, 2113.13, 19.92, 0.00, 0.00, 37.00);
- CreateDynamicObject(19313, 173.07, 2117.36, 19.92, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 187.06, 2117.29, 20.40, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 201.09, 2117.31, 19.71, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 215.07, 2117.30, 19.67, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 229.11, 2117.33, 19.54, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 243.11, 2117.33, 19.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 257.12, 2117.30, 19.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 271.10, 2117.31, 19.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 285.10, 2117.32, 19.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 299.16, 2117.32, 19.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 313.18, 2117.30, 19.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 327.21, 2117.30, 19.81, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 341.27, 2117.31, 19.81, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 355.29, 2117.31, 19.81, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 367.66, 2112.81, 19.95, 0.00, 0.00, 320.00);
- CreateDynamicObject(19313, 378.45, 2103.85, 19.95, 0.00, 0.00, 320.00);
- CreateDynamicObject(3268, 309.44, 2082.62, 16.63, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 389.19, 2094.81, 19.95, 0.00, 0.00, 320.00);
- CreateDynamicObject(19313, 394.58, 2083.31, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.61, 2069.26, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.57, 2055.21, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.52, 2041.21, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.51, 2027.15, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.50, 2013.11, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.51, 1999.08, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.53, 1985.05, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.54, 1971.03, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.55, 1957.01, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.56, 1942.99, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.57, 1928.99, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.57, 1914.93, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 394.59, 1900.89, 19.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 389.60, 1888.86, 19.89, 0.00, 0.00, 45.00);
- CreateDynamicObject(19313, 379.68, 1878.98, 19.94, 0.00, 0.00, 45.00);
- CreateDynamicObject(19313, 369.80, 1869.10, 19.93, 0.00, 0.00, 45.00);
- CreateDynamicObject(19313, 359.87, 1859.16, 20.08, 0.00, 0.00, 45.00);
- CreateDynamicObject(19313, 354.93, 1847.17, 20.42, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 354.94, 1833.17, 19.96, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 354.92, 1819.13, 19.96, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 354.92, 1805.13, 20.63, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 349.13, 1794.13, 20.29, 0.00, 0.00, 35.00);
- CreateDynamicObject(19313, 337.64, 1786.11, 19.92, 0.00, 0.00, 35.00);
- CreateDynamicObject(19313, 324.88, 1782.14, 19.92, 0.00, 0.00, 0.00);
- TTGate1 = CreateDynamicObject(971, 313.46, 1782.26, 20.18, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 301.99, 1782.29, 19.92, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 287.96, 1782.31, 19.92, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 273.94, 1782.34, 19.92, 0.00, 0.00, 0.00);
- CreateDynamicObject(19313, 266.98, 1789.36, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19313, 266.97, 1791.70, 19.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(3268, 276.97, 2082.60, 16.63, 0.00, 0.00, 90.00);
- CreateDynamicObject(3268, 222.69, 2030.48, 16.63, 0.00, 0.00, 180.00);
- CreateDynamicObject(3268, 222.61, 1996.94, 16.63, 0.00, 0.00, 180.00);
- CreateDynamicObject(3268, 222.88, 1963.12, 16.63, 0.00, 0.00, 180.00);
- CreateDynamicObject(3268, 344.51, 2073.48, 16.63, 0.00, 0.00, 45.00);
- CreateDynamicObject(3279, 271.97, 1790.69, 16.82, 0.00, 0.00, 0.00);
- CreateDynamicObject(3279, 329.32, 1790.78, 16.82, 0.00, 0.00, 90.00);
- CreateDynamicObject(3279, 390.04, 1900.82, 16.82, 0.00, 0.00, 180.00);
- CreateDynamicObject(3279, 151.29, 1954.11, 17.98, 0.00, 0.00, 3.14);
- CreateDynamicObject(3279, 148.19, 2104.08, 16.90, 0.00, 0.00, 3.14);
- CreateDynamicObject(3279, 256.95, 2110.85, 16.32, 0.00, 0.00, 270.00);
- CreateDynamicObject(3279, 372.41, 2100.77, 16.36, 0.00, 0.00, 230.00);
- CreateDynamicObject(9241, 190.67, 1963.24, 18.23, 0.00, 0.00, 180.00);
- CreateDynamicObject(9241, 190.39, 1996.76, 18.23, 0.00, 0.00, 180.00);
- CreateDynamicObject(9241, 190.11, 2031.25, 18.19, 0.00, 0.00, 180.00);
- CreateDynamicObject(9241, 241.34, 2076.22, 18.19, 0.00, 0.00, 90.00);
- CreateDynamicObject(16098, 343.81, 1968.33, 21.56, 0.00, 0.00, 0.00);
- CreateDynamicObject(16098, 364.43, 1968.31, 21.58, 0.00, 0.00, 0.00);
- TTGate2 = CreateDynamicObject(988, 96.62, 1920.67, 17.97, 0.00, 0.00, 270.00);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 1411, 347.1953, 1799.2656, 18.7578, 0.25);
- RemoveBuildingForPlayer(playerid, 1411, 342.9375, 1796.2891, 18.7578, 0.25);
- RemoveBuildingForPlayer(playerid, 16670, 330.7891, 1813.2188, 17.8281, 0.25);
- RemoveBuildingForPlayer(playerid, 16671, 193.9531, 2051.7969, 20.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 16668, 357.9375, 2049.4219, 16.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 16669, 380.2578, 1914.9609, 17.4297, 0.25);
- return 1;
- }
- // I hope you're using ZCMD.
- CMD:agate(playerid, o[]) {
- // army permission check here
- if(IsPlayerInRangeOfPoint(playerid, 15, 313.46, 1782.26, 20.18)) {
- if(!TTGate1Moved) MoveDynamicObject(TTGate1, 321.39, 1782.26, 20.18, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #1 is opening."), TTGate1Moved =1;
- else MoveDynamicObject(TTGate1, 313.46, 1782.26, 20.18, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #1 is closing."), TTGate1Moved =0;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 15, 96.62, 1920.67, 17.97)) {
- if(!TTGate2Moved) MoveDynamicObject(TTGate2, 96.62, 1924.85, 17.97, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #2 is opening."), TTGate2Moved =1;
- else MoveDynamicObject(TTGate2, 96.62, 1920.67, 17.97, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #2 is closing."), TTGate2Moved =0;
- }
- else SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}You are not at anywhere near any of the gates.");
- // SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}Only army members can use this command."); << Error message to non-army
- return 1;
- }
- CMD:alift(playerid, o[]) {
- // army permission check here
- if(IsPlayerInRangeOfPoint(playerid, 15, 278.97, 1821.11, 16.64) || IsPlayerInRangeOfPoint(playerid, 15, 292.96, 1821.21, 16.64)) {
- if(!TTLiftMoved) MoveDynamicObject(TTLift1, 278.97, 1821.11, 23.36, 3.0), MoveDynamicObject(TTLift2, 292.96, 1821.21, 23.37, 3.0), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] The lift is now going up."), TTLiftMoved =1;
- else MoveDynamicObject(TTLift1, 278.97, 1821.11, 16.64, 3.0), MoveDynamicObject(TTLift2, 292.96, 1821.21, 16.64, 3.0), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] The lift is now going down."), TTLiftMoved =0;
- }
- else SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}You are not at anywhere near to the lift.");
- // SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}Only army members can use this command."); << Error message to non-army
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment