Khalis_Aiman

TT Army base [LV]

Jan 20th, 2013 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.32 KB | None | 0 0
  1. // Moving objects
  2. new
  3.     TTGate1,
  4.     TTGate2,
  5.     TTLift1,
  6.     TTLift2,
  7.     TTGate1Moved =0,
  8.     TTGate2Moved =0,
  9.     TTLiftMoved =0
  10. ;
  11.  
  12. public OnGameModeInIt()
  13. {
  14.     TTLift1 = CreateDynamicObject(19313, 278.97, 1821.11, 16.64,   90.00, 0.00, 0.00);
  15.     TTLift2 = CreateDynamicObject(19313, 292.96, 1821.21, 16.64,   90.00, 0.00, 0.00);
  16.    
  17.     CreateDynamicObject(19313, 145.71, 1948.39, 21.53,   0.00, 0.00, 90.00);
  18.     CreateDynamicObject(19313, 145.71, 1962.43, 21.53,   0.00, 0.00, 90.00);
  19.     CreateDynamicObject(19313, 145.72, 1976.48, 21.53,   0.00, 0.00, 90.00);
  20.     CreateDynamicObject(19313, 145.73, 1990.52, 21.53,   0.00, 0.00, 90.00);
  21.     CreateDynamicObject(19313, 145.74, 2004.51, 21.47,   0.00, 0.00, 90.00);
  22.     CreateDynamicObject(19313, 145.66, 2018.58, 21.00,   0.00, 0.00, 90.00);
  23.     CreateDynamicObject(19313, 145.66, 2032.61, 20.26,   0.00, 0.00, 90.00);
  24.     CreateDynamicObject(19313, 145.64, 2046.62, 19.62,   0.00, 0.00, 90.00);
  25.     CreateDynamicObject(19313, 143.25, 2060.20, 19.53,   0.00, 0.00, 110.00);
  26.     CreateDynamicObject(19313, 140.83, 2073.81, 19.53,   0.00, 0.00, 90.00);
  27.     CreateDynamicObject(19313, 140.83, 2087.86, 19.88,   0.00, 0.00, 90.00);
  28.     CreateDynamicObject(19313, 140.83, 2101.91, 19.92,   0.00, 0.00, 90.00);
  29.     CreateDynamicObject(19313, 147.85, 2108.89, 19.99,   0.00, 0.00, 0.00);
  30.     CreateDynamicObject(19313, 160.41, 2113.13, 19.92,   0.00, 0.00, 37.00);
  31.     CreateDynamicObject(19313, 173.07, 2117.36, 19.92,   0.00, 0.00, 0.00);
  32.     CreateDynamicObject(19313, 187.06, 2117.29, 20.40,   0.00, 0.00, 0.00);
  33.     CreateDynamicObject(19313, 201.09, 2117.31, 19.71,   0.00, 0.00, 0.00);
  34.     CreateDynamicObject(19313, 215.07, 2117.30, 19.67,   0.00, 0.00, 0.00);
  35.     CreateDynamicObject(19313, 229.11, 2117.33, 19.54,   0.00, 0.00, 0.00);
  36.     CreateDynamicObject(19313, 243.11, 2117.33, 19.52,   0.00, 0.00, 0.00);
  37.     CreateDynamicObject(19313, 257.12, 2117.30, 19.52,   0.00, 0.00, 0.00);
  38.     CreateDynamicObject(19313, 271.10, 2117.31, 19.52,   0.00, 0.00, 0.00);
  39.     CreateDynamicObject(19313, 285.10, 2117.32, 19.52,   0.00, 0.00, 0.00);
  40.     CreateDynamicObject(19313, 299.16, 2117.32, 19.52,   0.00, 0.00, 0.00);
  41.     CreateDynamicObject(19313, 313.18, 2117.30, 19.52,   0.00, 0.00, 0.00);
  42.     CreateDynamicObject(19313, 327.21, 2117.30, 19.81,   0.00, 0.00, 0.00);
  43.     CreateDynamicObject(19313, 341.27, 2117.31, 19.81,   0.00, 0.00, 0.00);
  44.     CreateDynamicObject(19313, 355.29, 2117.31, 19.81,   0.00, 0.00, 0.00);
  45.     CreateDynamicObject(19313, 367.66, 2112.81, 19.95,   0.00, 0.00, 320.00);
  46.     CreateDynamicObject(19313, 378.45, 2103.85, 19.95,   0.00, 0.00, 320.00);
  47.     CreateDynamicObject(3268, 309.44, 2082.62, 16.63,   0.00, 0.00, 90.00);
  48.     CreateDynamicObject(19313, 389.19, 2094.81, 19.95,   0.00, 0.00, 320.00);
  49.     CreateDynamicObject(19313, 394.58, 2083.31, 19.89,   0.00, 0.00, 90.00);
  50.     CreateDynamicObject(19313, 394.61, 2069.26, 19.89,   0.00, 0.00, 90.00);
  51.     CreateDynamicObject(19313, 394.57, 2055.21, 19.89,   0.00, 0.00, 90.00);
  52.     CreateDynamicObject(19313, 394.52, 2041.21, 19.89,   0.00, 0.00, 90.00);
  53.     CreateDynamicObject(19313, 394.51, 2027.15, 19.89,   0.00, 0.00, 90.00);
  54.     CreateDynamicObject(19313, 394.50, 2013.11, 19.89,   0.00, 0.00, 90.00);
  55.     CreateDynamicObject(19313, 394.51, 1999.08, 19.89,   0.00, 0.00, 90.00);
  56.     CreateDynamicObject(19313, 394.53, 1985.05, 19.89,   0.00, 0.00, 90.00);
  57.     CreateDynamicObject(19313, 394.54, 1971.03, 19.89,   0.00, 0.00, 90.00);
  58.     CreateDynamicObject(19313, 394.55, 1957.01, 19.89,   0.00, 0.00, 90.00);
  59.     CreateDynamicObject(19313, 394.56, 1942.99, 19.89,   0.00, 0.00, 90.00);
  60.     CreateDynamicObject(19313, 394.57, 1928.99, 19.89,   0.00, 0.00, 90.00);
  61.     CreateDynamicObject(19313, 394.57, 1914.93, 19.89,   0.00, 0.00, 90.00);
  62.     CreateDynamicObject(19313, 394.59, 1900.89, 19.89,   0.00, 0.00, 90.00);
  63.     CreateDynamicObject(19313, 389.60, 1888.86, 19.89,   0.00, 0.00, 45.00);
  64.     CreateDynamicObject(19313, 379.68, 1878.98, 19.94,   0.00, 0.00, 45.00);
  65.     CreateDynamicObject(19313, 369.80, 1869.10, 19.93,   0.00, 0.00, 45.00);
  66.     CreateDynamicObject(19313, 359.87, 1859.16, 20.08,   0.00, 0.00, 45.00);
  67.     CreateDynamicObject(19313, 354.93, 1847.17, 20.42,   0.00, 0.00, 90.00);
  68.     CreateDynamicObject(19313, 354.94, 1833.17, 19.96,   0.00, 0.00, 90.00);
  69.     CreateDynamicObject(19313, 354.92, 1819.13, 19.96,   0.00, 0.00, 90.00);
  70.     CreateDynamicObject(19313, 354.92, 1805.13, 20.63,   0.00, 0.00, 90.00);
  71.     CreateDynamicObject(19313, 349.13, 1794.13, 20.29,   0.00, 0.00, 35.00);
  72.     CreateDynamicObject(19313, 337.64, 1786.11, 19.92,   0.00, 0.00, 35.00);
  73.     CreateDynamicObject(19313, 324.88, 1782.14, 19.92,   0.00, 0.00, 0.00);
  74.     TTGate1 = CreateDynamicObject(971, 313.46, 1782.26, 20.18,   0.00, 0.00, 0.00);
  75.     CreateDynamicObject(19313, 301.99, 1782.29, 19.92,   0.00, 0.00, 0.00);
  76.     CreateDynamicObject(19313, 287.96, 1782.31, 19.92,   0.00, 0.00, 0.00);
  77.     CreateDynamicObject(19313, 273.94, 1782.34, 19.92,   0.00, 0.00, 0.00);
  78.     CreateDynamicObject(19313, 266.98, 1789.36, 19.92,   0.00, 0.00, 90.00);
  79.     CreateDynamicObject(19313, 266.97, 1791.70, 19.92,   0.00, 0.00, 90.00);
  80.     CreateDynamicObject(3268, 276.97, 2082.60, 16.63,   0.00, 0.00, 90.00);
  81.     CreateDynamicObject(3268, 222.69, 2030.48, 16.63,   0.00, 0.00, 180.00);
  82.     CreateDynamicObject(3268, 222.61, 1996.94, 16.63,   0.00, 0.00, 180.00);
  83.     CreateDynamicObject(3268, 222.88, 1963.12, 16.63,   0.00, 0.00, 180.00);
  84.     CreateDynamicObject(3268, 344.51, 2073.48, 16.63,   0.00, 0.00, 45.00);
  85.     CreateDynamicObject(3279, 271.97, 1790.69, 16.82,   0.00, 0.00, 0.00);
  86.     CreateDynamicObject(3279, 329.32, 1790.78, 16.82,   0.00, 0.00, 90.00);
  87.     CreateDynamicObject(3279, 390.04, 1900.82, 16.82,   0.00, 0.00, 180.00);
  88.     CreateDynamicObject(3279, 151.29, 1954.11, 17.98,   0.00, 0.00, 3.14);
  89.     CreateDynamicObject(3279, 148.19, 2104.08, 16.90,   0.00, 0.00, 3.14);
  90.     CreateDynamicObject(3279, 256.95, 2110.85, 16.32,   0.00, 0.00, 270.00);
  91.     CreateDynamicObject(3279, 372.41, 2100.77, 16.36,   0.00, 0.00, 230.00);
  92.     CreateDynamicObject(9241, 190.67, 1963.24, 18.23,   0.00, 0.00, 180.00);
  93.     CreateDynamicObject(9241, 190.39, 1996.76, 18.23,   0.00, 0.00, 180.00);
  94.     CreateDynamicObject(9241, 190.11, 2031.25, 18.19,   0.00, 0.00, 180.00);
  95.     CreateDynamicObject(9241, 241.34, 2076.22, 18.19,   0.00, 0.00, 90.00);
  96.     CreateDynamicObject(16098, 343.81, 1968.33, 21.56,   0.00, 0.00, 0.00);
  97.     CreateDynamicObject(16098, 364.43, 1968.31, 21.58,   0.00, 0.00, 0.00);
  98.     TTGate2 = CreateDynamicObject(988, 96.62, 1920.67, 17.97,   0.00, 0.00, 270.00);
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerConnect(playerid)
  103. {
  104.     RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
  105.     RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
  106.     RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1955.7656, 16.6328, 0.25);
  107.     RemoveBuildingForPlayer(playerid, 1411, 347.1953, 1799.2656, 18.7578, 0.25);
  108.     RemoveBuildingForPlayer(playerid, 1411, 342.9375, 1796.2891, 18.7578, 0.25);
  109.     RemoveBuildingForPlayer(playerid, 16670, 330.7891, 1813.2188, 17.8281, 0.25);
  110.     RemoveBuildingForPlayer(playerid, 16671, 193.9531, 2051.7969, 20.1797, 0.25);
  111.     RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
  112.     RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);
  113.     RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1955.7656, 16.6328, 0.25);
  114.     RemoveBuildingForPlayer(playerid, 16668, 357.9375, 2049.4219, 16.8438, 0.25);
  115.     RemoveBuildingForPlayer(playerid, 16669, 380.2578, 1914.9609, 17.4297, 0.25);
  116.     return 1;
  117. }
  118.  
  119. // I hope you're using ZCMD.
  120.  
  121. CMD:agate(playerid, o[]) {
  122.     // army permission check here
  123.     if(IsPlayerInRangeOfPoint(playerid, 15, 313.46, 1782.26, 20.18)) {
  124.         if(!TTGate1Moved) MoveDynamicObject(TTGate1, 321.39, 1782.26, 20.18, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #1 is opening."), TTGate1Moved =1;
  125.         else MoveDynamicObject(TTGate1, 313.46, 1782.26, 20.18, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #1 is closing."), TTGate1Moved =0;
  126.     }
  127.     else if(IsPlayerInRangeOfPoint(playerid, 15, 96.62, 1920.67, 17.97)) {
  128.         if(!TTGate2Moved) MoveDynamicObject(TTGate2, 96.62, 1924.85, 17.97, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #2 is opening."), TTGate2Moved =1;
  129.         else MoveDynamicObject(TTGate2, 96.62, 1920.67, 17.97, 4.5), SendClientMessage(playerid, 0x00B2EEFF, "[SUCCESS] Gate #2 is closing."), TTGate2Moved =0;
  130.     }
  131.     else SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}You are not at anywhere near any of the gates.");
  132.     // SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}Only army members can use this command."); << Error message to non-army
  133.     return 1;
  134. }
  135.  
  136. CMD:alift(playerid, o[]) {
  137.     // army permission check here
  138.     if(IsPlayerInRangeOfPoint(playerid, 15, 278.97, 1821.11, 16.64) || IsPlayerInRangeOfPoint(playerid, 15, 292.96, 1821.21, 16.64)) {
  139.         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;
  140.         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;
  141.     }
  142.     else SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}You are not at anywhere near to the lift.");
  143.     // SendClientMessage(playerid, 0xFF0000FF, "[ERROR] {FFFFFF}Only army members can use this command."); << Error message to non-army
  144.     return 1;
  145. }
Advertisement
Add Comment
Please, Sign In to add comment