Khalis_Aiman

CGCNR: LS SWAT base

Aug 15th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 28.50 KB | None | 0 0
  1. /* PLEASE READ THIS PLEASE READ THIS PLEASE READ THIS
  2. PLEASE READ THIS PLEASE READ THIS PLEASE READ THIS
  3. I have made some lines ignored so you can un-ignore them in your script and add the restrictions.
  4. Jail spawn coords (x,y,z,facing angle):
  5. 1: 1348.3336,-1641.1874,17.8859, 271.0785
  6. 2: 1355.3071,-1641.3607,17.8859,93.6285
  7. 3: 1355.2693,-1638.0983,17.8859,90.9330
  8. 4: 1348.3010,-1637.8019,17.8859,270.8531
  9. 5: 1348.5400,-1634.1970,17.8859,269.2240
  10. 6: 1354.6405,-1633.9059,17.8859,95.8495 */
  11.  
  12. #define DIALOG_SWATLSWEAP 1820 // random dialog ID number.
  13.  
  14. new LSsg;
  15. new IsLSsgOpened;
  16. new SWATLSEnterPick, SWATLSExitPick, SWATLSWeapon;
  17. new SWATLSVeh1, SWATLSVeh2, SWATLSVeh3, SWATLSVeh4, SWATLSVeh5, SWATLSVeh6, SWATLSVeh7, SWATLSVeh8;
  18. new SWATLSVeh9, SWATLSVeh10, SWATLSVeh11, SWATLSVeh12, SWATLSVeh13, SWATLSVeh14, SWATLSVeh15, SWATLSVeh16;
  19. new SWATLSVeh17, SWATLSVeh18, SWATLSVeh19, SWATLSVeh20, SWATLSVeh21, SWATLSVeh22, SWATLSVeh23, SWATLSVeh24;
  20. new SWATLSVeh25, SWATLSVeh26, SWATLSVeh27, SWATLSVeh28;
  21. public OnFilterScriptInit() // or OnGamemodeInIt
  22. {
  23.     SWATLSEnterPick = CreatePickup(1318,23,1351.7141,-1663.7690,17.7266,0);
  24.     SWATLSExitPick = CreatePickup(1318,23,1351.8358,-1662.5436,17.8859,0);
  25.     SWATLSWeapon = CreatePickup(1277,23,1354.8234,-1645.4679,17.8859,0);
  26.    
  27.     SWATLSVeh1 = AddStaticVehicleEx(427,1363.80004883,-1658.59997559,13.60000038,270.00000000,0,0,240); //Enforcer
  28.     SWATLSVeh2 = AddStaticVehicleEx(427,1363.80004883,-1651.09997559,13.60000038,270.00000000,0,0,240); //Enforcer
  29.     SWATLSVeh3 = AddStaticVehicleEx(427,1363.80004883,-1643.19995117,13.60000038,270.00000000,0,0,240); //Enforcer
  30.     SWATLSVeh4 = AddStaticVehicleEx(427,1363.80004883,-1635.50000000,13.60000038,270.00000000,0,0,240); //Enforcer
  31.     SWATLSVeh5 = AddStaticVehicleEx(497,1333.40002441,-1632.40002441,23.10000038,270.00000000,0,0,240); //Police Maverick
  32.     SWATLSVeh6 = AddStaticVehicleEx(497,1333.40002441,-1643.80004883,23.10000038,270.00000000,0,0,240); //Police Maverick
  33.     SWATLSVeh7 = AddStaticVehicleEx(563,1335.00000000,-1665.09997559,23.70000076,320.00000000,1,0,240); //Raindance
  34.     SWATLSVeh8 = AddStaticVehicleEx(601,1378.19995117,-1696.59997559,13.50000000,350.00000000,-1,-1,240); //S.W.A.T. Van
  35.     SWATLSVeh9 = AddStaticVehicleEx(601,1383.30004883,-1692.50000000,13.50000000,359.99694824,-1,-1,240); //S.W.A.T. Van
  36.     SWATLSVeh10 = AddStaticVehicleEx(560,1366.30004883,-1680.50000000,13.30000019,0.00000000,0,1,240); //Sultan
  37.     SWATLSVeh11 = AddStaticVehicleEx(560,1366.19995117,-1674.19995117,13.30000019,0.00000000,0,1,240); //Sultan
  38.     SWATLSVeh12 = AddStaticVehicleEx(560,1362.59997559,-1680.50000000,13.30000019,0.00000000,0,1,240); //Sultan
  39.     SWATLSVeh13 = AddStaticVehicleEx(560,1362.50000000,-1674.19995117,13.30000019,0.00000000,0,1,240); //Sultan
  40.     SWATLSVeh14 = AddStaticVehicleEx(602,1356.19995117,-1672.90002441,13.50000000,310.00000000,0,1,240); //Alpha
  41.     SWATLSVeh15 = AddStaticVehicleEx(602,1356.00000000,-1668.09997559,13.50000000,310.00000000,0,1,240); //Alpha
  42.     SWATLSVeh16 = AddStaticVehicleEx(451,1355.40002441,-1629.69995117,13.39999962,268.00000000,0,1,240); //Turismo
  43.     SWATLSVeh17 = AddStaticVehicleEx(451,1355.40002441,-1626.30004883,13.39999962,267.99499512,0,1,240); //Turismo
  44.     SWATLSVeh18 = AddStaticVehicleEx(522,1381.59997559,-1630.69995117,13.19999981,90.00000000,0,1,240); //NRG-500
  45.     SWATLSVeh19 = AddStaticVehicleEx(522,1384.90002441,-1630.69995117,13.19999981,90.00000000,0,1,240); //NRG-500
  46.     SWATLSVeh20 = AddStaticVehicleEx(522,1388.40002441,-1630.69995117,13.19999981,90.00000000,0,1,240); //NRG-500
  47.     SWATLSVeh21 = AddStaticVehicleEx(522,1391.69995117,-1630.69995117,13.19999981,90.00000000,0,1,240); //NRG-500
  48.     SWATLSVeh22 = AddStaticVehicleEx(522,1381.50000000,-1628.19995117,13.19999981,90.00000000,0,1,240); //NRG-500
  49.     SWATLSVeh23 = AddStaticVehicleEx(522,1384.90002441,-1628.19995117,13.19999981,90.00000000,0,1,240); //NRG-500
  50.     SWATLSVeh24 = AddStaticVehicleEx(522,1388.30004883,-1628.30004883,13.19999981,90.00000000,0,1,240); //NRG-500
  51.     SWATLSVeh25 = AddStaticVehicleEx(522,1391.59997559,-1628.30004883,13.19999981,90.00000000,0,1,240); //NRG-500
  52.     SWATLSVeh26 = AddStaticVehicleEx(579,1374.50000000,-1615.19995117,13.60000038,80.00000000,0,-1,240); //Huntley
  53.     SWATLSVeh27 = AddStaticVehicleEx(579,1380.80004883,-1616.30004883,13.60000038,79.99694824,0,-1,240); //Huntley
  54.     SWATLSVeh28 = AddStaticVehicleEx(579,1387.59997559,-1617.59997559,13.60000038,79.99694824,0,-1,240); //Huntley
  55.     CreateDynamicObject(987,1413.00000000,-1661.59997559,12.39999962,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (1)
  56.     CreateDynamicObject(987,1413.00000000,-1661.59997559,17.20000076,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (2)
  57.     LSsg = CreateDynamicObject(971,1413.19995117,-1645.30004883,15.89999962,0.00000000,0.00000000,90.00000000); //object(subwaygate) (1)
  58.     CreateDynamicObject(984, 1413.20, -1643.30, 20.10,   0.00, 0.00, 0.00);
  59.     CreateDynamicObject(984, 1413.20, -1643.30, 21.40,   0.00, 0.00, 0.00);
  60.     CreateDynamicObject(984, 1413.20, -1643.30, 22.70,   0.00, 0.00, 0.00);
  61.     CreateDynamicObject(971, 1413.30, -1640.00, 15.90,   0.00, 0.00, 90.00);
  62.     CreateDynamicObject(972, 1358.00, -1609.80, 7.50,   0.00, 0.00, 86.00);
  63.     CreateDynamicObject(972, 1381.10, -1612.10, 11.80,   0.00, 0.00, 83.99);
  64.     CreateDynamicObject(972, 1341.30, -1608.30, 11.80,   0.00, 0.00, 83.99);
  65.     CreateDynamicObject(972, 1362.20, -1702.40, 7.50,   0.00, 0.00, 270.00);
  66.     CreateDynamicObject(972, 1337.30, -1702.40, 12.30,   0.00, 0.00, 270.00);
  67.     CreateDynamicObject(972, 1384.10, -1697.90, 12.20,   0.00, 0.00, 300.00);
  68.     CreateDynamicObject(972, 1384.10, -1697.90, 15.30,   0.00, 0.00, 300.00);
  69.     CreateDynamicObject(972, 1362.20, -1702.40, 14.70,   0.00, 0.00, 270.00);
  70.     CreateDynamicObject(8615, 1348.40, -1664.10, 15.00,   0.00, 0.00, 0.00);
  71.     CreateDynamicObject(19362, 1356.50, -1661.40, 18.50,   0.00, 0.00, 179.99);
  72.     CreateDynamicObject(19362, 1356.50, -1658.20, 18.50,   0.00, 0.00, 179.99);
  73.     CreateDynamicObject(19362, 1346.90, -1661.40, 18.50,   0.00, 0.00, 179.99);
  74.     CreateDynamicObject(19362, 1346.90, -1658.20, 18.50,   0.00, 0.00, 179.99);
  75.     CreateDynamicObject(19362, 1354.90, -1663.00, 18.50,   0.00, 0.00, 269.99);
  76.     CreateDynamicObject(19362, 1348.50, -1663.00, 18.50,   0.00, 0.00, 269.99);
  77.     CreateDynamicObject(19360, 1354.90, -1661.20, 16.80,   0.00, 90.00, 90.00);
  78.     CreateDynamicObject(19360, 1351.70, -1661.20, 16.80,   0.00, 90.00, 90.00);
  79.     CreateDynamicObject(19360, 1348.50, -1661.20, 16.80,   0.00, 90.00, 90.00);
  80.     CreateDynamicObject(19360, 1348.50, -1657.70, 16.80,   0.00, 90.00, 90.00);
  81.     CreateDynamicObject(19360, 1351.70, -1657.70, 16.80,   0.00, 90.00, 90.00);
  82.     CreateDynamicObject(19360, 1354.90, -1657.70, 16.80,   0.00, 90.00, 90.00);
  83.     CreateDynamicObject(1506, 1350.92, -1663.00, 16.80,   0.00, 0.00, 0.00);
  84.     CreateDynamicObject(19391, 1351.70, -1663.00, 18.50,   0.00, 0.00, 90.00);
  85.     CreateDynamicObject(1726, 1355.30, -1662.40, 16.80,   0.00, 0.00, 180.00);
  86.     CreateDynamicObject(1726, 1350.20, -1662.40, 16.80,   0.00, 0.00, 179.99);
  87.     CreateDynamicObject(1726, 1353.30, -1660.00, 16.80,   0.00, 0.00, 359.99);
  88.     CreateDynamicObject(1726, 1348.20, -1660.00, 16.80,   0.00, 0.00, 359.99);
  89.     CreateDynamicObject(1775, 1355.90, -1658.70, 18.00,   0.00, 0.00, 270.00);
  90.     CreateDynamicObject(19360, 1354.90, -1654.20, 16.80,   0.00, 90.00, 90.00);
  91.     CreateDynamicObject(19360, 1351.70, -1654.20, 16.80,   0.00, 90.00, 90.00);
  92.     CreateDynamicObject(19360, 1348.50, -1654.20, 16.80,   0.00, 90.00, 90.00);
  93.     CreateDynamicObject(19360, 1348.50, -1650.70, 16.80,   0.00, 90.00, 90.00);
  94.     CreateDynamicObject(19360, 1351.70, -1650.70, 16.80,   0.00, 90.00, 90.00);
  95.     CreateDynamicObject(19360, 1354.90, -1650.70, 16.80,   0.00, 90.00, 90.00);
  96.     CreateDynamicObject(19362, 1356.50, -1655.00, 18.50,   0.00, 0.00, 179.99);
  97.     CreateDynamicObject(19362, 1346.90, -1655.00, 18.50,   0.00, 0.00, 179.99);
  98.     CreateDynamicObject(19362, 1356.50, -1651.80, 18.50,   0.00, 0.00, 179.99);
  99.     CreateDynamicObject(19362, 1346.90, -1651.80, 18.50,   0.00, 0.00, 179.99);
  100.     CreateDynamicObject(19362, 1354.80, -1656.40, 16.30,   0.00, 0.00, 269.99);
  101.     CreateDynamicObject(19362, 1351.60, -1656.40, 16.30,   0.00, 0.00, 269.99);
  102.     CreateDynamicObject(19391, 1348.60, -1656.40, 18.50,   0.00, 0.00, 90.00);
  103.     CreateDynamicObject(2165, 1353.90, -1655.90, 16.90,   0.00, 0.00, 179.99);
  104.     CreateDynamicObject(2165, 1351.90, -1655.90, 16.90,   0.00, 0.00, 179.99);
  105.     CreateDynamicObject(19435, 1351.90, -1656.40, 19.50,   90.00, 90.00, 0.00);
  106.     CreateDynamicObject(19435, 1354.70, -1656.40, 19.50,   90.00, 90.00, 0.00);
  107.     CreateDynamicObject(1502, 1347.80, -1656.40, 16.80,   0.00, 0.00, 0.00);
  108.     CreateDynamicObject(2172, 1354.60, -1652.80, 16.90,   0.00, 0.00, 180.00);
  109.     CreateDynamicObject(2172, 1352.70, -1652.80, 16.90,   0.00, 0.00, 179.99);
  110.     CreateDynamicObject(2172, 1350.80, -1652.80, 16.90,   0.00, 0.00, 179.99);
  111.     CreateDynamicObject(2172, 1349.80, -1650.50, 16.90,   0.00, 0.00, 359.99);
  112.     CreateDynamicObject(2172, 1351.70, -1650.50, 16.90,   0.00, 0.00, 359.99);
  113.     CreateDynamicObject(2172, 1353.60, -1650.50, 16.90,   0.00, 0.00, 359.99);
  114.     CreateDynamicObject(19360, 1354.90, -1647.20, 16.80,   0.00, 90.00, 90.00);
  115.     CreateDynamicObject(19360, 1351.70, -1647.20, 16.80,   0.00, 90.00, 90.00);
  116.     CreateDynamicObject(19360, 1348.50, -1647.20, 16.80,   0.00, 90.00, 90.00);
  117.     CreateDynamicObject(1671, 1351.30, -1655.20, 17.30,   0.00, 0.00, 0.00);
  118.     CreateDynamicObject(1671, 1353.30, -1655.20, 17.30,   0.00, 0.00, 0.00);
  119.     CreateDynamicObject(1671, 1355.40, -1655.20, 17.30,   0.00, 0.00, 0.00);
  120.     CreateDynamicObject(1671, 1354.20, -1652.60, 17.30,   0.00, 0.00, 0.00);
  121.     CreateDynamicObject(1671, 1352.30, -1652.60, 17.30,   0.00, 0.00, 0.00);
  122.     CreateDynamicObject(1671, 1350.40, -1652.60, 17.30,   0.00, 0.00, 0.00);
  123.     CreateDynamicObject(1671, 1350.20, -1650.80, 17.30,   0.00, 0.00, 180.00);
  124.     CreateDynamicObject(1671, 1352.10, -1650.80, 17.30,   0.00, 0.00, 179.99);
  125.     CreateDynamicObject(1671, 1354.00, -1650.80, 17.30,   0.00, 0.00, 179.99);
  126.     CreateDynamicObject(2171, 1347.50, -1653.00, 16.90,   0.00, 0.00, 90.00);
  127.     CreateDynamicObject(2171, 1347.50, -1651.60, 16.90,   0.00, 0.00, 90.00);
  128.     CreateDynamicObject(2221, 1347.50, -1653.10, 17.80,   0.00, 0.00, 0.00);
  129.     CreateDynamicObject(2223, 1347.50, -1652.50, 17.80,   0.00, 0.00, 0.00);
  130.     CreateDynamicObject(2425, 1347.10, -1651.52, 17.70,   0.00, 0.00, 90.00);
  131.     CreateDynamicObject(2429, 1346.80, -1653.00, 17.70,   0.00, 0.00, 90.00);
  132.     CreateDynamicObject(2663, 1347.40, -1651.30, 17.90,   0.00, 0.00, 0.00);
  133.     CreateDynamicObject(2663, 1347.40, -1651.10, 17.90,   0.00, 0.00, 0.00);
  134.     CreateDynamicObject(2663, 1347.40, -1650.90, 17.90,   0.00, 0.00, 0.00);
  135.     CreateDynamicObject(2647, 1347.60, -1651.30, 17.80,   0.00, 0.00, 0.00);
  136.     CreateDynamicObject(2647, 1347.60, -1651.10, 17.80,   0.00, 0.00, 0.00);
  137.     CreateDynamicObject(2647, 1347.60, -1650.90, 17.80,   0.00, 0.00, 0.00);
  138.     CreateDynamicObject(19362, 1356.50, -1648.60, 18.50,   0.00, 0.00, 179.99);
  139.     CreateDynamicObject(19362, 1354.90, -1647.40, 18.50,   0.00, 0.00, 269.99);
  140.     CreateDynamicObject(2607, 1355.10, -1647.90, 17.30,   0.00, 0.00, 180.00);
  141.     CreateDynamicObject(19362, 1346.90, -1648.60, 18.50,   0.00, 0.00, 179.99);
  142.     CreateDynamicObject(19362, 1346.90, -1645.40, 18.50,   0.00, 0.00, 179.99);
  143.     CreateDynamicObject(19360, 1348.50, -1645.50, 16.80,   0.00, 90.00, 90.00);
  144.     CreateDynamicObject(19360, 1351.70, -1645.50, 16.80,   0.00, 90.00, 90.00);
  145.     CreateDynamicObject(19360, 1354.90, -1645.50, 16.80,   0.00, 90.00, 90.00);
  146.     CreateDynamicObject(19362, 1356.50, -1645.40, 18.50,   0.00, 0.00, 179.99);
  147.     CreateDynamicObject(19362, 1356.50, -1642.20, 18.50,   0.00, 0.00, 179.99);
  148.     CreateDynamicObject(19362, 1346.90, -1642.20, 18.50,   0.00, 0.00, 179.99);
  149.     CreateDynamicObject(19362, 1354.80, -1643.70, 18.50,   0.00, 0.00, 269.99);
  150.     CreateDynamicObject(19391, 1351.60, -1643.70, 18.50,   0.00, 0.00, 90.00);
  151.     CreateDynamicObject(19362, 1348.40, -1643.70, 18.50,   0.00, 0.00, 269.99);
  152.     CreateDynamicObject(19362, 1351.70, -1647.40, 18.50,   0.00, 0.00, 269.99);
  153.     CreateDynamicObject(2607, 1353.10, -1647.90, 17.30,   0.00, 0.00, 179.99);
  154.     CreateDynamicObject(2607, 1351.10, -1647.90, 17.30,   0.00, 0.00, 179.99);
  155.     CreateDynamicObject(2611, 1351.30, -1647.60, 18.80,   0.00, 0.00, 0.00);
  156.     CreateDynamicObject(2611, 1353.10, -1647.60, 18.80,   0.00, 0.00, 0.00);
  157.     CreateDynamicObject(2611, 1354.90, -1647.60, 18.80,   0.00, 0.00, 0.00);
  158.     CreateDynamicObject(19357, 1354.90, -1642.00, 16.80,   0.00, 90.00, 90.00);
  159.     CreateDynamicObject(19357, 1351.70, -1642.00, 16.80,   0.00, 90.00, 90.00);
  160.     CreateDynamicObject(19357, 1348.50, -1642.00, 16.80,   0.00, 90.00, 90.00);
  161.     CreateDynamicObject(19362, 1356.50, -1639.00, 18.50,   0.00, 0.00, 179.99);
  162.     CreateDynamicObject(19362, 1354.80, -1640.20, 18.50,   0.00, 0.00, 269.99);
  163.     CreateDynamicObject(19357, 1354.90, -1638.50, 16.80,   0.00, 90.00, 90.00);
  164.     CreateDynamicObject(19362, 1354.80, -1636.70, 18.50,   0.00, 0.00, 269.99);
  165.     CreateDynamicObject(19357, 1351.70, -1638.50, 16.80,   0.00, 90.00, 90.00);
  166.     CreateDynamicObject(19362, 1356.50, -1635.90, 18.50,   0.00, 0.00, 179.99);
  167.     CreateDynamicObject(19357, 1354.90, -1635.00, 16.80,   0.00, 90.00, 90.00);
  168.     CreateDynamicObject(19362, 1356.50, -1634.80, 18.50,   0.00, 0.00, 179.99);
  169.     CreateDynamicObject(19362, 1354.90, -1633.20, 18.50,   0.00, 0.00, 269.99);
  170.     CreateDynamicObject(19357, 1351.70, -1635.00, 16.80,   0.00, 90.00, 90.00);
  171.     CreateDynamicObject(19357, 1348.50, -1635.00, 16.80,   0.00, 90.00, 90.00);
  172.     CreateDynamicObject(19357, 1348.50, -1638.50, 16.80,   0.00, 90.00, 90.00);
  173.     CreateDynamicObject(19362, 1346.90, -1639.00, 18.50,   0.00, 0.00, 179.99);
  174.     CreateDynamicObject(19362, 1346.90, -1635.80, 18.50,   0.00, 0.00, 179.99);
  175.     CreateDynamicObject(19362, 1346.90, -1634.80, 18.50,   0.00, 0.00, 179.99);
  176.     CreateDynamicObject(19362, 1348.50, -1633.20, 18.50,   0.00, 0.00, 269.99);
  177.     CreateDynamicObject(19362, 1351.70, -1633.20, 18.50,   0.00, 0.00, 269.99);
  178.     CreateDynamicObject(19362, 1348.60, -1640.20, 18.50,   0.00, 0.00, 269.99);
  179.     CreateDynamicObject(19362, 1348.60, -1636.70, 18.50,   0.00, 0.00, 269.99);
  180.     CreateDynamicObject(19362, 1354.90, -1661.20, 20.30,   0.00, 90.00, 269.99);
  181.     CreateDynamicObject(19362, 1351.70, -1661.20, 20.30,   0.00, 90.00, 269.99);
  182.     CreateDynamicObject(19362, 1348.50, -1661.20, 20.30,   0.00, 90.00, 269.99);
  183.     CreateDynamicObject(19362, 1348.50, -1657.70, 20.30,   0.00, 90.00, 269.99);
  184.     CreateDynamicObject(19362, 1351.70, -1657.70, 20.30,   0.00, 90.00, 269.99);
  185.     CreateDynamicObject(19362, 1354.90, -1657.70, 20.30,   0.00, 90.00, 269.99);
  186.     CreateDynamicObject(19362, 1354.90, -1654.20, 20.30,   0.00, 90.00, 269.99);
  187.     CreateDynamicObject(19362, 1351.70, -1654.20, 20.30,   0.00, 90.00, 269.99);
  188.     CreateDynamicObject(19362, 1348.50, -1654.20, 20.30,   0.00, 90.00, 269.99);
  189.     CreateDynamicObject(19362, 1354.90, -1650.70, 20.30,   0.00, 90.00, 269.99);
  190.     CreateDynamicObject(19362, 1351.70, -1650.70, 20.30,   0.00, 90.00, 269.99);
  191.     CreateDynamicObject(19362, 1348.50, -1650.70, 20.30,   0.00, 90.00, 269.99);
  192.     CreateDynamicObject(19362, 1348.50, -1647.20, 20.30,   0.00, 90.00, 269.99);
  193.     CreateDynamicObject(19362, 1348.50, -1643.70, 20.30,   0.00, 90.00, 269.99);
  194.     CreateDynamicObject(19362, 1348.50, -1640.20, 20.30,   0.00, 90.00, 269.99);
  195.     CreateDynamicObject(19362, 1348.50, -1636.70, 20.30,   0.00, 90.00, 269.99);
  196.     CreateDynamicObject(19362, 1348.50, -1634.80, 20.30,   0.00, 90.00, 269.99);
  197.     CreateDynamicObject(19362, 1351.70, -1634.80, 20.30,   0.00, 90.00, 269.99);
  198.     CreateDynamicObject(19362, 1354.90, -1634.80, 20.30,   0.00, 90.00, 269.99);
  199.     CreateDynamicObject(19362, 1354.90, -1647.20, 20.30,   0.00, 90.00, 269.99);
  200.     CreateDynamicObject(19362, 1354.90, -1643.70, 20.30,   0.00, 90.00, 269.99);
  201.     CreateDynamicObject(19362, 1354.90, -1640.20, 20.30,   0.00, 90.00, 269.99);
  202.     CreateDynamicObject(19362, 1354.90, -1636.70, 20.30,   0.00, 90.00, 269.99);
  203.     CreateDynamicObject(19362, 1351.70, -1636.70, 20.30,   0.00, 90.00, 269.99);
  204.     CreateDynamicObject(19362, 1351.70, -1640.20, 20.30,   0.00, 90.00, 269.99);
  205.     CreateDynamicObject(19362, 1351.70, -1643.70, 20.30,   0.00, 90.00, 269.99);
  206.     CreateDynamicObject(19362, 1351.70, -1647.20, 20.30,   0.00, 90.00, 269.99);
  207.     CreateDynamicObject(972, 1358.00, -1609.80, 14.70,   0.00, 0.00, 86.00);
  208.     CreateDynamicObject(972, 1381.10, -1612.10, 14.80,   0.00, 0.00, 83.99);
  209.     CreateDynamicObject(972, 1337.30, -1702.40, 14.70,   0.00, 0.00, 270.00);
  210.     CreateDynamicObject(19303, 1350.10, -1641.10, 18.10,   0.00, 0.00, 90.00);
  211.     CreateDynamicObject(19303, 1350.10, -1642.80, 18.10,   0.00, 0.00, 270.00);
  212.     CreateDynamicObject(19303, 1350.10, -1639.30, 18.10,   0.00, 0.00, 270.00);
  213.     CreateDynamicObject(19303, 1350.10, -1635.80, 18.10,   0.00, 0.00, 270.00);
  214.     CreateDynamicObject(19303, 1353.30, -1642.80, 18.10,   0.00, 0.00, 270.00);
  215.     CreateDynamicObject(19303, 1353.30, -1639.30, 18.10,   0.00, 0.00, 270.00);
  216.     CreateDynamicObject(19303, 1353.30, -1635.80, 18.10,   0.00, 0.00, 270.00);
  217.     CreateDynamicObject(19303, 1353.30, -1634.10, 18.10,   0.00, 0.00, 90.00);
  218.     CreateDynamicObject(19303, 1353.30, -1637.60, 18.10,   0.00, 0.00, 90.00);
  219.     CreateDynamicObject(19303, 1353.30, -1641.10, 18.10,   0.00, 0.00, 90.00);
  220.     CreateDynamicObject(19303, 1350.10, -1637.60, 18.10,   0.00, 0.00, 90.00);
  221.     CreateDynamicObject(19303, 1350.10, -1634.10, 18.10,   0.00, 0.00, 90.00);
  222.     CreateDynamicObject(1800, 1350.50, -1643.10, 16.70,   0.00, 0.00, 90.00);
  223.     CreateDynamicObject(1800, 1350.50, -1639.60, 16.70,   0.00, 0.00, 90.00);
  224.     CreateDynamicObject(1800, 1350.50, -1636.10, 16.70,   0.00, 0.00, 90.00);
  225.     CreateDynamicObject(1800, 1357.50, -1643.10, 16.70,   0.00, 0.00, 90.00);
  226.     CreateDynamicObject(1800, 1357.50, -1639.60, 16.70,   0.00, 0.00, 90.00);
  227.     CreateDynamicObject(1800, 1357.50, -1636.10, 16.70,   0.00, 0.00, 90.00);
  228.     CreateDynamicObject(1744, 1353.50, -1643.60, 18.50,   0.00, 0.00, 0.00);
  229.     CreateDynamicObject(1744, 1353.50, -1643.60, 17.70,   0.00, 0.00, 0.00);
  230.     CreateDynamicObject(1744, 1354.70, -1647.50, 17.70,   0.00, 0.00, 180.00);
  231.     CreateDynamicObject(1744, 1354.70, -1647.50, 18.50,   0.00, 0.00, 180.00);
  232.     CreateDynamicObject(2000, 1352.80, -1644.30, 16.90,   0.00, 0.00, 0.00);
  233.     CreateDynamicObject(2000, 1352.90, -1646.80, 16.90,   0.00, 0.00, 180.00);
  234.     CreateDynamicObject(2000, 1352.40, -1646.80, 16.90,   0.00, 0.00, 179.99);
  235.     CreateDynamicObject(2000, 1351.90, -1646.80, 16.90,   0.00, 0.00, 179.99);
  236.     CreateDynamicObject(964, 1355.80, -1644.60, 16.90,   0.00, 0.00, 270.00);
  237.     CreateDynamicObject(964, 1355.80, -1644.60, 17.80,   0.00, 0.00, 270.00);
  238.     CreateDynamicObject(964, 1355.80, -1644.60, 18.70,   0.00, 0.00, 270.00);
  239.     CreateDynamicObject(2358, 1355.80, -1645.70, 17.00,   0.00, 0.00, 270.00);
  240.     CreateDynamicObject(2358, 1355.80, -1645.70, 17.20,   0.00, 0.00, 270.00);
  241.     CreateDynamicObject(2358, 1355.80, -1645.70, 17.40,   0.00, 0.00, 270.00);
  242.     CreateDynamicObject(2358, 1355.80, -1645.70, 17.60,   0.00, 0.00, 270.00);
  243.     CreateDynamicObject(2358, 1355.80, -1645.70, 17.80,   0.00, 0.00, 270.00);
  244.     CreateDynamicObject(2358, 1355.80, -1645.70, 18.00,   0.00, 0.00, 270.00);
  245.     CreateDynamicObject(2358, 1355.80, -1645.70, 18.20,   0.00, 0.00, 270.00);
  246.     CreateDynamicObject(2358, 1355.80, -1646.40, 17.00,   0.00, 0.00, 270.00);
  247.     CreateDynamicObject(2358, 1355.80, -1646.40, 17.20,   0.00, 0.00, 270.00);
  248.     CreateDynamicObject(2358, 1355.80, -1646.40, 17.40,   0.00, 0.00, 270.00);
  249.     CreateDynamicObject(2358, 1355.80, -1646.40, 17.60,   0.00, 0.00, 270.00);
  250.     CreateDynamicObject(2358, 1355.80, -1646.40, 17.80,   0.00, 0.00, 270.00);
  251.     CreateDynamicObject(2358, 1355.80, -1646.40, 18.00,   0.00, 0.00, 270.00);
  252.     CreateDynamicObject(2358, 1355.80, -1646.40, 18.20,   0.00, 0.00, 270.00);
  253.     CreateDynamicObject(2035, 1355.40, -1645.80, 17.30,   0.00, 295.00, 0.00);
  254.     CreateDynamicObject(2035, 1355.40, -1646.10, 17.30,   0.00, 295.00, 0.00);
  255.     CreateDynamicObject(2035, 1355.40, -1646.40, 17.30,   0.00, 295.00, 0.00);
  256.     CreateDynamicObject(2035, 1355.40, -1645.50, 17.30,   0.00, 295.00, 0.00);
  257.     CreateDynamicObject(2035, 1355.40, -1646.70, 17.30,   0.00, 295.00, 0.00);
  258.     CreateDynamicObject(2036, 1355.60, -1647.11, 16.77,   0.00, 0.00, 0.00);
  259.     CreateDynamicObject(2036, 1354.70, -1647.10, 17.40,   0.00, 295.00, 270.00);
  260.     CreateDynamicObject(2036, 1354.30, -1647.10, 17.40,   0.00, 295.00, 270.00);
  261.     CreateDynamicObject(2036, 1353.90, -1647.10, 17.40,   0.00, 295.00, 270.00);
  262.     CreateDynamicObject(2036, 1353.50, -1647.10, 17.40,   0.00, 295.00, 270.00);
  263.     CreateDynamicObject(2044, 1353.20, -1644.00, 18.10,   0.00, 0.00, 0.00);
  264.     CreateDynamicObject(2044, 1353.60, -1644.00, 18.10,   0.00, 0.00, 0.00);
  265.     CreateDynamicObject(2044, 1354.00, -1644.00, 18.10,   0.00, 0.00, 0.00);
  266.     CreateDynamicObject(2044, 1354.40, -1644.00, 18.10,   0.00, 0.00, 0.00);
  267.     CreateDynamicObject(2044, 1354.90, -1647.10, 18.10,   0.00, 0.00, 0.00);
  268.     CreateDynamicObject(2044, 1354.50, -1647.10, 18.10,   0.00, 0.00, 0.00);
  269.     CreateDynamicObject(2044, 1354.10, -1647.10, 18.10,   0.00, 0.00, 0.00);
  270.     CreateDynamicObject(2044, 1353.70, -1647.10, 18.10,   0.00, 0.00, 0.00);
  271.     CreateDynamicObject(1242, 1353.50, -1647.10, 19.00,   0.00, 0.00, 0.00);
  272.     CreateDynamicObject(1242, 1353.80, -1647.10, 19.00,   0.00, 0.00, 0.00);
  273.     CreateDynamicObject(1242, 1354.10, -1647.10, 19.00,   0.00, 0.00, 0.00);
  274.     CreateDynamicObject(1242, 1354.40, -1647.10, 19.00,   0.00, 0.00, 0.00);
  275.     CreateDynamicObject(1242, 1354.70, -1647.10, 19.00,   0.00, 0.00, 0.00);
  276.     CreateDynamicObject(1242, 1355.00, -1647.10, 19.00,   0.00, 0.00, 0.00);
  277.     CreateDynamicObject(1242, 1354.80, -1644.00, 19.00,   0.00, 0.00, 180.00);
  278.     CreateDynamicObject(1242, 1354.50, -1644.00, 19.00,   0.00, 0.00, 179.99);
  279.     CreateDynamicObject(1242, 1354.20, -1644.00, 19.00,   0.00, 0.00, 179.99);
  280.     CreateDynamicObject(1242, 1353.90, -1644.00, 19.00,   0.00, 0.00, 179.99);
  281.     CreateDynamicObject(1242, 1353.60, -1644.00, 19.00,   0.00, 0.00, 179.99);
  282.     CreateDynamicObject(1242, 1353.30, -1644.00, 19.00,   0.00, 0.00, 179.99);
  283.     CreateDynamicObject(6976, 1344.10, -1646.30, 13.00,   0.00, 0.00, 270.00);
  284.     CreateDynamicObject(973, 1359.80, -1683.90, 13.40,   0.00, 0.00, 0.00);
  285.     CreateDynamicObject(973, 1358.20, -1683.90, 13.40,   0.00, 0.00, 0.00);
  286.     CreateDynamicObject(973, 1358.10, -1619.00, 13.50,   0.00, 0.00, 180.00);
  287.     CreateDynamicObject(973, 1359.90, -1619.00, 13.50,   0.00, 0.00, 179.99);
  288.     return 1;
  289. }
  290.  
  291. public OnFilterScriptExit()
  292. {
  293.     return 1;
  294. }
  295.  
  296. #endif
  297.  
  298. CMD:sgls(playerid, o[])
  299. {
  300.     #pragma unused o
  301.    
  302.     // if(gTeam{playerid} == TEAM_SWAT)
  303.     // {
  304.             if(IsLSsgOpened == 0)
  305.             {
  306.                 MoveDynamicObject(LSsg,1413.30004883,-1640.00000000,15.89999962, 4.0);
  307.                 SendClientMessage(playerid, 0xFFFFFFFF, "The gate of SWAT base in Los Santos is now {00FF00}opening{FFFFFF}.");
  308.                 IsLSsgOpened =1;
  309.             }
  310.             else
  311.             {
  312.                 MoveDynamicObject(LSsg,1413.19995117,-1645.30004883,15.89999962, 4.0);
  313.                 SendClientMessage(playerid, 0xFFFFFFFF, "The gate of SWAT base in Los Santos is now {FF0000}closing{FFFFFF}.");
  314.                 IsLSsgOpened =0;
  315.             }
  316.     // }
  317.     // else return SendClientMessage(playerid, 0xFF0000FF, "You are not authorized to use this command.");
  318.     return 1;
  319. }
  320.  
  321. public OnPlayerStateChange(playerid, newstate, oldstate)
  322. {
  323.     /*new GetPVehID = GetPlayerVehicleID(playerid);
  324.    
  325.     if(newstate == PLAYER_STATE_DRIVER)
  326.     {
  327.         if(GetPVehID == SWATLSVeh1 || GetPVehID == SWATLSVeh2 || GetPVehID == SWATLSVeh3 || GetPVehID == SWATLSVeh4 || GetPVehID == SWATLSVeh5 || GetPVehID == SWATLSVeh6 || GetPVehID == SWATLSVeh7 || GetPVehID == SWATLSVeh8 ||
  328.         GetPVehID == SWATLSVeh9 || GetPVehID == SWATLSVeh10 || GetPVehID == SWATLSVeh11 || GetPVehID == SWATLSVeh12 || GetPVehID == SWATLSVeh13 || GetPVehID == SWATLSVeh14 || GetPVehID == SWATLSVeh15 || GetPVehID == SWATLSVeh16 ||
  329.         GetPVehID == SWATLSVeh17 || GetPVehID == SWATLSVeh18 || GetPVehID == SWATLSVeh19 || GetPVehID == SWATLSVeh20 || GetPVehID == SWATLSVeh21 || SWATLSVeh22 || SWATLSVeh23 || SWATLSVeh24 ||
  330.         GetPVehID == SWATLSVeh25 || GetPVehID == SWATLSVeh26 || GetPVehID == SWATLSVeh27 || GetPVehID == SWATLSVeh28)
  331.         {
  332.             if(gTeam{playerid} != TEAM_SWAT)
  333.             {
  334.                 RemovePlayerFromVehicle(playerid);
  335.                 SendClientMessage(playerid, 0xFF0000FF, "You cannot use this vehicle.");
  336.             }
  337.         }
  338.     }*/
  339.     return 1;
  340. }
  341.  
  342. public OnPlayerPickUpPickup(playerid, pickupid)
  343. {
  344.     if(pickupid == SWATLSEnterPick)
  345.     {
  346.         // if(gTeam{playerid} == TEAM_SWAT)
  347.         // {
  348.                 SetPlayerPos(playerid, 1351.8336,-1660.2690,17.8859);
  349.                 SetPlayerFacingAngle(playerid, 0.0563);
  350.         // }
  351.         // else return SendClientMessage(playerid, 0xFF0000FF, "You are not allowed to use this pickup.");
  352.     }
  353.     if(pickupid == SWATLSExitPick)
  354.     {
  355.         // if(gTeam{playerid} == TEAM_SWAT)
  356.         // {
  357.                 SetPlayerPos(playerid, 1347.7839,-1663.9242,15.8775);
  358.                 SetPlayerFacingAngle(playerid, 91.6258);
  359.         // }
  360.         // else return SendClientMessage(playerid, 0xFF0000FF, "You are not allowed to use this pickup.");
  361.     }
  362.     if(pickupid == SWATLSWeapon)
  363.     {
  364.         // if(gTeam{playerid} == TEAM_SWAT)
  365.         // {
  366.                 ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  367.         // }
  368.         // else return SendClientMessage(playerid, 0xFF0000FF, "You are not allowed to use this pickup.");
  369.     }
  370.     return 1;
  371. }
  372.  
  373. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  374. {
  375.     if(dialogid == DIALOG_SWATLSWEAP)
  376.     {
  377.         // if(gTeam{playerid} == TEAM_SWAT)
  378.         // {
  379.                 if(response)
  380.                 {
  381.                     switch (listitem)
  382.                     {
  383.                         case 0:
  384.                         {
  385.                             GivePlayerWeapon(playerid, 24, 500);
  386.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  387.                         }
  388.                         case 1:
  389.                         {
  390.                             GivePlayerWeapon(playerid, 25, 200);
  391.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  392.                         }
  393.                         case 2:
  394.                         {
  395.                             GivePlayerWeapon(playerid, 27, 500);
  396.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  397.                         }
  398.                         case 3:
  399.                         {
  400.                             GivePlayerWeapon(playerid, 28, 500);
  401.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  402.                         }
  403.                         case 4:
  404.                         {
  405.                             GivePlayerWeapon(playerid, 29, 500);
  406.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  407.                         }
  408.                         case 5:
  409.                         {
  410.                             GivePlayerWeapon(playerid, 31, 500);
  411.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  412.                         }
  413.                         case 6:
  414.                         {
  415.                             GivePlayerWeapon(playerid, 34, 100);
  416.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  417.                         }
  418.                         case 7:
  419.                         {
  420.                             SetPlayerHealth(playerid, 100);
  421.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  422.                         }
  423.                         case 8:
  424.                         {
  425.                             SetPlayerArmour(playerid, 100);
  426.                             ShowPlayerDialog(playerid, DIALOG_SWATLSWEAP, DIALOG_STYLE_LIST, "{00FFFF}S.W.A.T. Equipment Selection","{FFFFFF}Desert Eagle \nShotgun \nCombat Shotgun \nMicro Uzi \nMP5 \nM4 Assault Rifle \nSniper Rifle \nHealth \nArmour","Select","Close");
  427.                         }
  428.                     }
  429.                 }
  430.                 else return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You have closed the dialog.");
  431.         // }
  432.     }
  433.     return 1;
  434. }
Advertisement
Add Comment
Please, Sign In to add comment