Guest User

LSPD Interior

a guest
Oct 25th, 2011
3,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 28.38 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  8.  
  9. new door1; // Door at the left when you enter
  10. new door2; // Door at the left when you enter
  11. new door3; // Door at the right when you enter
  12. new door4; // Door at the right when you enter
  13. new door5; // Celldoors downstairs
  14.  
  15. #if defined FILTERSCRIPT
  16.  
  17. public OnFilterScriptInit()
  18. {
  19.     print("\n--------------------------------------");
  20.     print(" Los Santos Police Department Interior");
  21.     print("--------------------------------------\n");
  22.     return 1;
  23. }
  24.  
  25. public OnFilterScriptExit()
  26. {
  27.     return 1;
  28. }
  29.  
  30. #else
  31.  
  32. main()
  33. {
  34.     print("\n----------------------------------");
  35.     print(" Los Santos Police Department Interior");
  36.     print("   By Kristian 'Wennicke' Bennedsen   ");
  37.     print("----------------------------------\n");
  38. }
  39.  
  40. #endif
  41.  
  42. public OnGameModeInit()
  43. {
  44.     // Don't use these lines if it's a filterscript
  45.     SetGameModeText("Blank Script");
  46.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  47.     CreateObject(14847, 1560.6787109375, -1684.51171875, 1725.4956054688, 0, 0, 90);
  48.     CreateObject(14848, 1563.0815429688, -1682.9155273438, 1723.4973144531, 0, 0, 90);
  49.     CreateObject(14852, 1549.5620117188, -1684.634765625, 1727.5771484375, 0, 0, 90);
  50.     CreateObject(14892, 1571.1171875, -1688.1083984375, 1728.3790283203, 0, 0, 90);
  51.     CreateObject(14851, 1561.0231933594, -1684.5346679688, 1726.2297363281, 0, 0, 90);
  52.     CreateObject(1569, 1549.7109375, -1686.181640625, 1722.0989990234, 0, 0, 88.494873046875);
  53.     CreateObject(1569, 1549.7155761719, -1683.173828125, 1722.0989990234, 0, 0, 271.24487304688);
  54.     door1 = CreateObject(1495, 1558.970703125, -1677.9114990234, 1722.1081542969, 0, 0, 0); // CLOSED DOORS 1
  55.     door2 = CreateObject(1495, 1561.9755859375, -1677.8798828125, 1722.1081542969, 0, 0, 179.99450683594); // CLOSED DOORS 2
  56.     CreateObject(1495, 1559.6491699219, -1677.8977050781, 1722.1081542969, 0, 0, 180); // DOORS NOT FOR USE
  57.     CreateObject(1495, 1561.2772216797, -1677.9395751953, 1722.1081542969, 0, 0, 0); // DOORS NOT FOR USE
  58.     CreateObject(1495, 1552.7789306641, -1691.4653320313, 1722.1081542969, 0, 0, 0); //LEFT DOOR NOT USED
  59.     CreateObject(1495, 1551.1292724609, -1691.4696044922, 1722.1081542969, 0, 0, 179.99450683594); // RIGHT DOOR NOT USED
  60.     door3 = CreateObject(1495, 1550.4266357422, -1691.5009765625, 1722.1081542969, 0, 0, 0); // RIGHT DOOR CLOSED
  61.     door4 = CreateObject(1495, 1553.4294433594, -1691.4515380859, 1722.1081542969, 0, 0, 180); //LEFT DOOR CLOSED
  62.     CreateObject(3859, 1555.9072265625, -1678.0869140625, 1722.7607421875, 0, 0, 287.24853515625);
  63.     CreateObject(3859, 1559.609375, -1691.3029785156, 1722.7607421875, 0, 0, 287.24853515625);
  64.     CreateObject(1811, 1554.6014404297, -1690.6214599609, 1722.7313232422, 0, 0, 272);
  65.     CreateObject(1811, 1555.3798828125, -1690.6083984375, 1722.7313232422, 0, 0, 271.99951171875);
  66.     CreateObject(1811, 1558.58203125, -1690.5570068359, 1722.7313232422, 0, 0, 271.99951171875);
  67.     CreateObject(1811, 1557.8283691406, -1690.5720214844, 1722.7313232422, 0, 0, 271.99951171875);
  68.     CreateObject(2635, 1556.5208740234, -1690.4576416016, 1722.509765625, 0, 0, 0);
  69.     CreateObject(1811, 1553.9925537109, -1678.7869873047, 1722.7313232422, 0, 359.75, 88.99951171875);
  70.     CreateObject(1811, 1553.1871337891, -1678.8201904297, 1722.7313232422, 0, 359.74731445313, 88.994750976563);
  71.     CreateObject(1811, 1550.6711425781, -1678.9018554688, 1722.7313232422, 0, 359.74731445313, 90.994750976563);
  72.     CreateObject(2635, 1551.8782958984, -1678.8499755859, 1722.509765625, 0, 0, 0);
  73.     CreateObject(3858, 1562.2353515625, -1684.427734375, 1725.9052734375, 0, 0, 135);
  74.     CreateObject(2208, 1565.3688964844, -1688.9642333984, 1722.1049804688, 0, 0, 89.25);
  75.     CreateObject(2208, 1565.4560546875, -1683.5958251953, 1722.1049804688, 0, 0, 89.247436523438);
  76.     CreateObject(2204, 1563.8812255859, -1678.1228027344, 1722.1049804688, 0, 0, 0.25);
  77.     CreateObject(2894, 1565.4929199219, -1683.2951660156, 1722.9702148438, 0, 0, 120);
  78.     CreateObject(1892, 1550.4637451172, -1683.3897705078, 1722.1049804688, 0, 0, 270);
  79.     CreateObject(1892, 1550.4547119141, -1684.9942626953, 1722.1049804688, 0, 0, 270);
  80.     CreateObject(2163, 1565.6490478516, -1691.2481689453, 1723.4522705078, 0, 359.25, 179.75);
  81.     CreateObject(2164, 1551.2637939453, -1677.6009521484, 1722.0950927734, 0, 0, 180);
  82.     CreateObject(2163, 1553.0098876953, -1677.6041259766, 1722.0930175781, 0, 0, 180);
  83.     CreateObject(2197, 1563.9239501953, -1671.6114501953, 1722.1049804688, 0, 0, 0);
  84.     CreateObject(2197, 1563.2835693359, -1671.6102294922, 1722.1049804688, 0, 0, 0);
  85.     CreateObject(2197, 1564.5617675781, -1671.609375, 1722.1049804688, 0, 0, 0);
  86.     CreateObject(2197, 1565.2025146484, -1671.6070556641, 1722.1049804688, 0, 0, 0);
  87.     CreateObject(2197, 1565.2021484375, -1671.6064453125, 1722.634765625, 0, 0, 0);
  88.     CreateObject(2197, 1564.5610351563, -1671.6043701172, 1722.634765625, 0, 0, 0);
  89.     CreateObject(2197, 1563.9217529297, -1671.6044921875, 1722.634765625, 0, 0, 0);
  90.     CreateObject(2197, 1563.2833251953, -1671.6064453125, 1722.634765625, 0, 0, 0);
  91.     CreateObject(2200, 1550.1123046875, -1672.3017578125, 1722.1119384766, 0, 0, 89.49462890625);
  92.     CreateObject(2165, 1558.0212402344, -1674.03515625, 1722.1049804688, 0, 0, 180);
  93.     CreateObject(2166, 1555.0703125, -1675.107421875, 1722.1049804688, 0, 0, 0);
  94.     CreateObject(2165, 1555.1351318359, -1672.0085449219, 1722.1059570313, 0, 0, 90);
  95.     CreateObject(2165, 1552.8685302734, -1674.3509521484, 1722.1059570313, 0, 0, 180);
  96.     CreateObject(1671, 1552.4464111328, -1673.1085205078, 1722.5721435547, 0, 0, 0);
  97.     CreateObject(1671, 1557.5301513672, -1672.9681396484, 1722.5721435547, 0, 0, 0);
  98.     CreateObject(1671, 1556.1381835938, -1671.4710693359, 1722.5721435547, 0, 0, 268.5);
  99.     CreateObject(2616, 1558.6160888672, -1672.3182373047, 1724.0888671875, 0, 0, 270);
  100.     CreateObject(2165, 1555.0947265625, -1668.4851074219, 1722.1059570313, 0, 0, 268.75);
  101.     CreateObject(2165, 1558.154296875, -1668.4970703125, 1722.1059570313, 0, 0, 268.49487304688);
  102.     CreateObject(2166, 1557.2095947266, -1667.0318603516, 1722.1049804688, 0, 0, 269.5);
  103.     CreateObject(2165, 1552.2785644531, -1668.4486083984, 1722.1059570313, 0, 0, 268.74755859375);
  104.     CreateObject(2165, 1555.1401367188, -1665.0535888672, 1722.1059570313, 0, 0, 268.74755859375);
  105.     CreateObject(2165, 1552.283203125, -1665.0849609375, 1722.1059570313, 0, 0, 268.74755859375);
  106.     CreateObject(2164, 1550.5020751953, -1662.5579833984, 1722.0950927734, 0, 0, 359.49450683594);
  107.     CreateObject(2164, 1552.2470703125, -1662.5673828125, 1722.0950927734, 0, 0, 359.48913574219);
  108.     CreateObject(2202, 1555.8001708984, -1662.9997558594, 1722.1119384766, 0, 0, 0);
  109.     CreateObject(1671, 1550.9736328125, -1668.9665527344, 1722.5721435547, 0, 0, 88);
  110.     CreateObject(1671, 1554.0920410156, -1668.9753417969, 1722.5721435547, 0, 0, 87.994995117188);
  111.     CreateObject(1671, 1557.091796875, -1668.9833984375, 1722.5721435547, 0, 0, 87.994995117188);
  112.     CreateObject(1671, 1554.0986328125, -1665.5952148438, 1722.5721435547, 0, 0, 87.994995117188);
  113.     CreateObject(1671, 1551.09765625, -1665.6396484375, 1722.5721435547, 0, 0, 87.994995117188);
  114.     CreateObject(2616, 1554.2237548828, -1670.0511474609, 1724.0888671875, 0, 0, 180);
  115.     CreateObject(2165, 1556.9682617188, -1661.6063232422, 1722.1059570313, 0, 0, 179.24755859375);
  116.     CreateObject(2165, 1553.5913085938, -1661.626953125, 1722.1059570313, 0, 0, 178.99743652344);
  117.     CreateObject(2165, 1554.6396484375, -1657.5390625, 1722.1059570313, 0, 0, 178.74206542969);
  118.     CreateObject(2166, 1555.0888671875, -1660.6533203125, 1722.1049804688, 0, 0, 179.48913574219);
  119.     CreateObject(2165, 1558.0698242188, -1657.4354248047, 1722.1059570313, 0, 0, 179.74450683594);
  120.     CreateObject(2165, 1551.4645996094, -1657.6751708984, 1722.1059570313, 0, 0, 178.74206542969);
  121.     CreateObject(2165, 1554.6165771484, -1654.0340576172, 1722.1059570313, 0, 0, 178.74206542969);
  122.     CreateObject(2165, 1557.9499511719, -1654.0950927734, 1722.1059570313, 0, 0, 179.74182128906);
  123.     CreateObject(2202, 1550.4482421875, -1652.5078125, 1722.1049804688, 0, 0, 0);
  124.     CreateObject(1671, 1552.931640625, -1660.576171875, 1722.5721435547, 0, 0, 359.99450683594);
  125.     CreateObject(1671, 1556.2386474609, -1660.6827392578, 1722.5721435547, 0, 0, 9.7445068359375);
  126.     CreateObject(1671, 1557.4249267578, -1656.2249755859, 1722.5721435547, 0, 0, 3.9893798828125);
  127.     CreateObject(1671, 1557.2801513672, -1652.8701171875, 1722.5721435547, 0, 0, 1.738037109375);
  128.     CreateObject(1671, 1554.0567626953, -1652.8929443359, 1722.5721435547, 0, 0, 1.73583984375);
  129.     CreateObject(1671, 1554.0797119141, -1656.4822998047, 1722.5721435547, 0, 0, 1.73583984375);
  130.     CreateObject(1671, 1550.8920898438, -1656.5832519531, 1722.5721435547, 0, 0, 1.73583984375);
  131.     CreateObject(2612, 1558.6097412109, -1657.3355712891, 1724.083984375, 0, 0, 270);
  132.     CreateObject(2616, 1558.6217041016, -1654.3928222656, 1723.9018554688, 0, 0, 270);
  133.     door5 = CreateObject(10252, 1560.1090087891, -1653.4477539063, 1719.5637207031, 0, 0, 270.25); // CELL DOOR CLOSED
  134.     CreateObject(2165, 1566.8505859375, -1662.0568847656, 1717.9025878906, 0, 0, 180.74743652344);
  135.     CreateObject(2165, 1563.5756835938, -1662.0688476563, 1717.9025878906, 0, 0, 180.7470703125);
  136.     CreateObject(2166, 1565.037109375, -1661.0903320313, 1717.900390625, 0, 0, 179.48913574219);
  137.     CreateObject(1671, 1562.9711914063, -1661.1099853516, 1718.3341064453, 0, 0, 359.99450683594);
  138.     CreateObject(1671, 1566.3414306641, -1661.0170898438, 1718.3341064453, 0, 0, 359.99450683594);
  139.     CreateObject(1671, 1565.2408447266, -1663.1514892578, 1718.3341064453, 0, 0, 152.99450683594);
  140.     CreateObject(2400, 1568.1694335938, -1673.7720947266, 1722.1014404297, 0, 0, 180);
  141.     CreateObject(2164, 1560.8505859375, -1665.8892822266, 1717.8881835938, 0, 0, 179.98913574219);
  142.     CreateObject(2164, 1562.5926513672, -1665.8927001953, 1717.8881835938, 0, 0, 179.98901367188);
  143.     CreateObject(2200, 1567.1829833984, -1665.7159423828, 1717.8619384766, 0, 0, 178.74462890625);
  144.     CreateObject(2612, 1558.609375, -1657.3349609375, 1724.083984375, 0, 0, 270);
  145.     CreateObject(2612, 1567.6097412109, -1661.83984375, 1720.2657470703, 0, 0, 270);
  146.     CreateObject(1502, 1562.3896484375, -1661.9794921875, 1729.1049804688, 0, 0, 90);
  147.     CreateObject(2637, 1568.8544921875, -1661.0280761719, 1729.509765625, 0, 0, 0);
  148.     CreateObject(2637, 1566.826171875, -1661.029296875, 1729.509765625, 0, 0, 0);
  149.     CreateObject(2637, 1564.796875, -1661.03125, 1729.509765625, 0, 0, 0);
  150.     CreateObject(1811, 1564.59765625, -1660.1904296875, 1729.7243652344, 0, 0, 91.99951171875);
  151.     CreateObject(1811, 1565.822265625, -1660.2436523438, 1729.7243652344, 0, 0, 91.99951171875);
  152.     CreateObject(1811, 1566.9383544922, -1660.2598876953, 1729.7243652344, 0, 0, 91.99951171875);
  153.     CreateObject(1811, 1568.0690917969, -1660.2336425781, 1729.7243652344, 0, 0, 87.99951171875);
  154.     CreateObject(1811, 1569.3212890625, -1660.1873779297, 1729.7243652344, 0, 0, 89.244995117188);
  155.     CreateObject(1811, 1569.3409423828, -1661.8400878906, 1729.7243652344, 0, 0, 270.49194335938);
  156.     CreateObject(1811, 1568.0673828125, -1661.8515625, 1729.7243652344, 0, 0, 270.48889160156);
  157.     CreateObject(1811, 1566.9477539063, -1661.8598632813, 1729.7243652344, 0, 0, 270.48889160156);
  158.     CreateObject(1811, 1565.763671875, -1661.853515625, 1729.7243652344, 0, 0, 270.48889160156);
  159.     CreateObject(1811, 1564.5675048828, -1661.8399658203, 1729.7243652344, 0, 0, 270.48889160156);
  160.     CreateObject(1714, 1570.697265625, -1661.1162109375, 1729.1049804688, 0, 0, 270);
  161.     CreateObject(2165, 1555.1872558594, -1657.5249023438, 1729.0892333984, 0, 0, 269.49206542969);
  162.     CreateObject(1671, 1550.9450683594, -1657.0825195313, 1729.5350341797, 0, 0, 359.99450683594);
  163.     CreateObject(2165, 1555.1787109375, -1660.2744140625, 1729.0892333984, 0, 0, 269.48364257813);
  164.     CreateObject(2165, 1551.5428466797, -1664.7469482422, 1729.0892333984, 0, 0, 178.73913574219);
  165.     CreateObject(2165, 1551.5100097656, -1661.4954833984, 1729.0892333984, 0, 0, 178.73657226563);
  166.     CreateObject(2165, 1551.556640625, -1658.2442626953, 1729.0892333984, 0, 0, 178.73657226563);
  167.     CreateObject(1671, 1550.9600830078, -1660.3966064453, 1729.5350341797, 0, 0, 359.99450683594);
  168.     CreateObject(1671, 1550.9423828125, -1663.421875, 1729.5350341797, 0, 0, 359.98901367188);
  169.     CreateObject(1671, 1553.9912109375, -1660.98046875, 1729.5350341797, 0, 0, 89.994506835938);
  170.     CreateObject(1671, 1554.0485839844, -1658.0402832031, 1729.5350341797, 0, 0, 89.994506835938);
  171.     CreateObject(2164, 1555.0341796875, -1666.2138671875, 1729.0975341797, 0, 0, 230.48767089844);
  172.     CreateObject(2202, 1555.1953125, -1663.5390625, 1729.1049804688, 0, 0, 269.24743652344);
  173.     CreateObject(2166, 1564.0991210938, -1667.9174804688, 1729.1029052734, 0, 0, 89.999969482422);
  174.     CreateObject(2165, 1563.0932617188, -1665.9896240234, 1729.1027832031, 0, 0, 90.741577148438);
  175.     CreateObject(2166, 1570.8127441406, -1667.0698242188, 1729.1029052734, 0, 0, 179.99450683594);
  176.     CreateObject(2165, 1568.8333740234, -1668.0599365234, 1729.1027832031, 0, 0, 179.73608398438);
  177.     CreateObject(2202, 1564.5129394531, -1670.4855957031, 1729.1049804688, 0, 0, 179.99737548828);
  178.     CreateObject(1714, 1564.1982421875, -1665.5805664063, 1729.1049804688, 0, 0, 270);
  179.     CreateObject(1714, 1568.4188232422, -1666.9476318359, 1729.1049804688, 0, 0, 352.75);
  180.     CreateObject(2197, 1570.2697753906, -1665.2131347656, 1729.1049804688, 0, 0, 270);
  181.     CreateObject(2204, 1555.8548583984, -1671.8468017578, 1729.1049804688, 0, 0, 270);
  182.     CreateObject(1713, 1568.6257324219, -1663.8311767578, 1729.1049804688, 0, 0, 359);
  183.     CreateObject(3858, 1569.6866455078, -1671.1461181641, 1730.5749511719, 0, 0, 224.99993896484);
  184.     CreateObject(1811, 1570.9351806641, -1670.2180175781, 1729.7243652344, 0, 0, 0.48886108398438);
  185.     CreateObject(1811, 1567.5667724609, -1669.0914306641, 1729.7243652344, 0, 0, 254.4833984375);
  186.     CreateObject(2010, 1563.3186035156, -1663.9576416016, 1729.0783691406, 0, 0, 0);
  187.     CreateObject(2010, 1567.7115478516, -1663.9509277344, 1729.0783691406, 0, 0, 0);
  188.     CreateObject(2010, 1570.7874755859, -1666.1130371094, 1729.0783691406, 0, 0, 0);
  189.     CreateObject(2166, 1550.4735107422, -1674.7574462891, 1729.1029052734, 0, 0, 359.24450683594);
  190.     CreateObject(2165, 1552.4696044922, -1673.7794189453, 1729.1027832031, 0, 0, 359.48083496094);
  191.     CreateObject(1671, 1553.1348876953, -1675.0592041016, 1729.5350341797, 0, 0, 181.23902893066);
  192.     CreateObject(2010, 1550.3454589844, -1671.8184814453, 1729.0783691406, 0, 0, 0);
  193.     CreateObject(2010, 1555.3608398438, -1677.0268554688, 1729.0783691406, 0, 0, 0);
  194.     CreateObject(2164, 1552.9368896484, -1677.5269775391, 1729.0975341797, 0, 0, 179.98767089844);
  195.     CreateObject(1811, 1553.6968994141, -1672.6910400391, 1729.7243652344, 0, 0, 70.481811523438);
  196.     CreateObject(2197, 1550.9265136719, -1676.4006347656, 1729.1049804688, 0, 0, 89.25);
  197.     CreateObject(2165, 1563.9758300781, -1677.9991455078, 1729.1027832031, 0, 0, 268.73608398438);
  198.     CreateObject(2166, 1564.8358154297, -1676.1884765625, 1729.1029052734, 0, 0, 268.99194335938);
  199.     CreateObject(2165, 1563.9899902344, -1680.2158203125, 1729.1027832031, 0, 0, 268.73107910156);
  200.     CreateObject(2165, 1564.0935058594, -1686.0129394531, 1729.1027832031, 0, 0, 268.73107910156);
  201.     CreateObject(2165, 1564.1141357422, -1688.2531738281, 1729.1027832031, 0, 0, 268.73107910156);
  202.     CreateObject(2166, 1565.7049560547, -1682.07421875, 1729.1029052734, 0, 0, 178.9892578125);
  203.     CreateObject(2166, 1566.0612792969, -1690.0357666016, 1729.1029052734, 0, 0, 178.9892578125);
  204.     CreateObject(2166, 1564.6635742188, -1684.2177734375, 1729.1029052734, 0, 0, 268.9892578125);
  205.     CreateObject(1671, 1562.9649658203, -1678.5107421875, 1729.5350341797, 0, 0, 89.994506835938);
  206.     CreateObject(1671, 1562.9923095703, -1680.6713867188, 1729.5350341797, 0, 0, 89.994506835938);
  207.     CreateObject(1671, 1563.0739746094, -1686.5653076172, 1729.5350341797, 0, 0, 89.994506835938);
  208.     CreateObject(1671, 1563.0981445313, -1688.8854980469, 1729.5350341797, 0, 0, 89.994506835938);
  209.     CreateObject(2202, 1570.8410644531, -1680.0516357422, 1729.1049804688, 0, 0, 269.24450683594);
  210.     CreateObject(2637, 1570.2834472656, -1686.4146728516, 1729.509765625, 0, 0, 0);
  211.     CreateObject(1811, 1570.8620605469, -1685.1634521484, 1729.7243652344, 0, 0, 91.99951171875);
  212.     CreateObject(1811, 1569.861328125, -1685.1728515625, 1729.7243652344, 0, 0, 91.99951171875);
  213.     CreateObject(1811, 1569.8857421875, -1687.7446289063, 1729.7243652344, 0, 0, 268.24954223633);
  214.     CreateObject(1811, 1570.8331298828, -1687.7547607422, 1729.7243652344, 0, 0, 268.24768066406);
  215.     CreateObject(1502, 1555.5554199219, -1703.46484375, 1727.6875, 0, 0, 180);
  216.     CreateObject(1502, 1560.5125732422, -1699.001953125, 1727.6875, 0, 0, 270.24450683594);
  217.     CreateObject(1502, 1560.5512695313, -1696.8273925781, 1727.6875, 0, 0, 269.49169921875);
  218.     CreateObject(2165, 1559.9223632813, -1701.7701416016, 1727.7056884766, 0, 0, 268.73107910156);
  219.     CreateObject(2165, 1557.2222900391, -1699.4235839844, 1727.7056884766, 0, 0, 359.73107910156);
  220.     CreateObject(2010, 1556.4606933594, -1699.552734375, 1727.6955566406, 0, 0, 0);
  221.     CreateObject(1671, 1558.9417724609, -1702.3826904297, 1728.1032714844, 0, 0, 88.494506835938);
  222.     CreateObject(1671, 1557.7303466797, -1700.5159912109, 1728.1032714844, 0, 0, 178.48937988281);
  223.     CreateObject(2165, 1556.5736083984, -1696.3637695313, 1727.7056884766, 0, 0, 359.73083496094);
  224.     CreateObject(2165, 1556.5556640625, -1693.1066894531, 1727.7056884766, 0, 0, 359.73083496094);
  225.     CreateObject(1671, 1556.9515380859, -1697.5183105469, 1728.1032714844, 0, 0, 177.98937988281);
  226.     CreateObject(1671, 1557.0155029297, -1694.2286376953, 1728.1032714844, 0, 0, 177.98400878906);
  227.     CreateObject(2164, 1560.3641357422, -1693.9622802734, 1727.69921875, 0, 0, 269.98773193359);
  228.     CreateObject(2010, 1560.1291503906, -1692.2045898438, 1727.6955566406, 0, 0, 28);
  229.     CreateObject(1811, 1550.4191894531, -1697.6453857422, 1728.2985839844, 0, 0, 89.488891601563);
  230.     CreateObject(1811, 1551.3605957031, -1697.6298828125, 1728.2985839844, 0, 0, 89.483642578125);
  231.     CreateObject(1811, 1552.3485107422, -1697.6209716797, 1728.2985839844, 0, 0, 89.483642578125);
  232.     CreateObject(1811, 1553.2763671875, -1697.5944824219, 1728.2985839844, 0, 0, 89.483642578125);
  233.     CreateObject(1811, 1553.3436279297, -1699.3397216797, 1728.2985839844, 0, 0, 89.483642578125);
  234.     CreateObject(1811, 1552.4538574219, -1699.3140869141, 1728.2985839844, 0, 0, 89.483642578125);
  235.     CreateObject(1811, 1551.4167480469, -1699.3479003906, 1728.2985839844, 0, 0, 89.483642578125);
  236.     CreateObject(1811, 1550.4156494141, -1699.3068847656, 1728.2985839844, 0, 0, 89.483642578125);
  237.     CreateObject(1811, 1555.2335205078, -1697.9666748047, 1728.2985839844, 0, 0, 358.98364257813);
  238.     CreateObject(1811, 1555.224609375, -1699.0031738281, 1728.2985839844, 0, 0, 358.97827148438);
  239.     CreateObject(1811, 1555.2377929688, -1699.9914550781, 1728.2985839844, 0, 0, 358.97827148438);
  240.     CreateObject(2165, 1556.3403320313, -1708.9675292969, 1727.7056884766, 0, 0, 359.73083496094);
  241.     CreateObject(2165, 1556.369140625, -1712.1574707031, 1727.7056884766, 0, 0, 359.73083496094);
  242.     CreateObject(2165, 1556.3212890625, -1715.2407226563, 1727.7056884766, 0, 0, 359.73083496094);
  243.     CreateObject(2165, 1553.9617919922, -1715.1932373047, 1727.7056884766, 0, 0, 359.73083496094);
  244.     CreateObject(2165, 1553.9102783203, -1712.1763916016, 1727.7056884766, 0, 0, 359.73083496094);
  245.     CreateObject(2165, 1553.9462890625, -1709.0625, 1727.7056884766, 0, 0, 359.73083496094);
  246.     CreateObject(2165, 1550.5040283203, -1709.0592041016, 1727.7056884766, 0, 0, 359.73083496094);
  247.     CreateObject(2165, 1550.5354003906, -1712.2188720703, 1727.7056884766, 0, 0, 359.73083496094);
  248.     CreateObject(2165, 1550.5209960938, -1715.1944580078, 1727.7056884766, 0, 0, 359.73083496094);
  249.     CreateObject(1671, 1554.5499267578, -1710.1170654297, 1728.1032714844, 0, 0, 180.73937988281);
  250.     CreateObject(1671, 1554.4759521484, -1713.1951904297, 1728.1032714844, 0, 0, 180.73608398438);
  251.     CreateObject(1671, 1554.5845947266, -1716.1575927734, 1728.1032714844, 0, 0, 180.73608398438);
  252.     CreateObject(1671, 1550.9645996094, -1716.2276611328, 1728.1032714844, 0, 0, 180.73608398438);
  253.     CreateObject(1671, 1551.0290527344, -1713.2036132813, 1728.1032714844, 0, 0, 180.73608398438);
  254.     CreateObject(1671, 1551.0323486328, -1710.0871582031, 1728.1032714844, 0, 0, 180.73608398438);
  255.     CreateObject(1671, 1556.9754638672, -1709.9176025391, 1728.1032714844, 0, 0, 180.73608398438);
  256.     CreateObject(1671, 1556.9692382813, -1713.2188720703, 1728.1032714844, 0, 0, 180.73608398438);
  257.     CreateObject(1671, 1556.9124755859, -1716.2072753906, 1728.1032714844, 0, 0, 180.73608398438);
  258.     CreateObject(2164, 1560.3686523438, -1709.06640625, 1727.69921875, 0, 0, 269.98352050781);
  259.     CreateObject(2200, 1560.2320556641, -1713.5151367188, 1727.69921875, 0, 0, 269.49462890625);
  260.     CreateObject(2010, 1560.0037841797, -1711.3508300781, 1727.6955566406, 0, 0, 27.998657226563);
  261.     CreateObject(2010, 1555.2453613281, -1707.1857910156, 1727.6955566406, 0, 0, 27.998657226563);
  262.     CreateObject(2010, 1550.4656982422, -1707.0255126953, 1727.6955566406, 0, 0, 27.998657226563);
  263.     CreateObject(2202, 1550.3616943359, -1705.7396240234, 1727.7054443359, 0, 0, 90.494506835938);
  264.     CreateObject(2165, 1554.7550048828, -1715.5963134766, 1723.5070800781, 0, 0, 180.7308807373);
  265.     CreateObject(2165, 1554.7612304688, -1713.0939941406, 1723.5070800781, 0, 0, 180.73059082031);
  266.     CreateObject(2165, 1551.5487060547, -1710.1943359375, 1723.5070800781, 0, 0, 180.73083496094);
  267.     CreateObject(2165, 1551.7028808594, -1713.0958251953, 1723.5070800781, 0, 0, 180.73059082031);
  268.     CreateObject(2165, 1551.7336425781, -1715.5969238281, 1723.5070800781, 0, 0, 180.73059082031);
  269.     CreateObject(1671, 1550.9909667969, -1709.0815429688, 1723.9549560547, 0, 0, 0.736083984375);
  270.     CreateObject(1671, 1551.1468505859, -1712.1588134766, 1723.9549560547, 0, 0, 0.7305908203125);
  271.     CreateObject(1671, 1551.2099609375, -1714.5087890625, 1723.9549560547, 0, 0, 0.7305908203125);
  272.     CreateObject(1671, 1554.1484375, -1714.8011474609, 1723.9549560547, 0, 0, 0.7305908203125);
  273.     CreateObject(1671, 1554.2429199219, -1712.0563964844, 1723.9549560547, 0, 0, 0.7305908203125);
  274.     CreateObject(2165, 1551.5954589844, -1705.8657226563, 1723.5070800781, 0, 0, 180.73059082031);
  275.     CreateObject(2165, 1551.5607910156, -1703.2443847656, 1723.5070800781, 0, 0, 180.73059082031);
  276.     CreateObject(2165, 1551.5288085938, -1700.7309570313, 1723.5070800781, 0, 0, 180.73059082031);
  277.     CreateObject(1671, 1550.8858642578, -1704.7960205078, 1723.9549560547, 0, 0, 0.7305908203125);
  278.     CreateObject(1671, 1550.8951416016, -1702.1226806641, 1723.9549560547, 0, 0, 0.7305908203125);
  279.     CreateObject(1671, 1550.8908691406, -1699.6276855469, 1723.9549560547, 0, 0, 0.7305908203125);
  280.     CreateObject(2164, 1555.2377929688, -1700.3732910156, 1723.4754638672, 0, 0, 269.98352050781);
  281.     CreateObject(2010, 1554.791015625, -1705.7084960938, 1723.4622802734, 0, 0, 27.998657226563);
  282.     CreateObject(2165, 1559.5126953125, -1695.1513671875, 1722.1027832031, 0, 0, 0.72509765625);
  283.     CreateObject(2165, 1564.220703125, -1695.0986328125, 1722.0823974609, 0, 0, 0.7196044921875);
  284.     CreateObject(1671, 1559.8891601563, -1696.42578125, 1722.5925292969, 0, 0, 182.7306060791);
  285.     CreateObject(1671, 1564.9569091797, -1696.3143310547, 1722.5925292969, 0, 0, 182.73010253906);
  286.     CreateObject(2010, 1559.3121337891, -1698.0067138672, 1722.1081542969, 0, 0, 27.998657226563);
  287.     CreateObject(2010, 1565.5454101563, -1697.9234619141, 1722.1081542969, 0, 0, 27.998657226563);
  288.     CreateObject(2164, 1562.6605224609, -1698.42578125, 1722.0843505859, 0, 0, 179.73352050781);
  289.     CreateObject(1811, 1555.1475830078, -1698.0731201172, 1722.7313232422, 0, 0, 357.99951171875);
  290.     CreateObject(1811, 1555.1492919922, -1697.2067871094, 1722.7313232422, 0, 0, 357.99499511719);
  291.     CreateObject(1811, 1555.1143798828, -1696.4207763672, 1722.7313232422, 0, 0, 357.99499511719);
  292.     return 1;
  293. }
  294.  
  295. public OnGameModeExit()
  296. {
  297.     return 1;
  298. }
  299.  
  300. public OnPlayerRequestClass(playerid, classid)
  301. {
  302.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  303.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  304.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  305.     return 1;
  306. }
  307.  
  308. public OnPlayerConnect(playerid)
  309. {
  310.     return 1;
  311. }
  312.  
  313. public OnPlayerDisconnect(playerid, reason)
  314. {
  315.     return 1;
  316. }
  317.  
  318. public OnPlayerSpawn(playerid)
  319. {
  320.     SetPlayerPos(playerid,1550.9105,-1683.8849,1723.1050);
  321.     SetPlayerSkin(playerid, 280);
  322.     return 1;
  323. }
  324.  
  325. public OnPlayerDeath(playerid, killerid, reason)
  326. {
  327.     return 1;
  328. }
  329.  
  330. public OnVehicleSpawn(vehicleid)
  331. {
  332.     return 1;
  333. }
  334.  
  335. public OnVehicleDeath(vehicleid, killerid)
  336. {
  337.     return 1;
  338. }
  339.  
  340. public OnPlayerText(playerid, text[])
  341. {
  342.     return 1;
  343. }
  344.  
  345. public OnPlayerCommandText(playerid, cmdtext[])
  346. {
  347.     if (strcmp("/dooropen", cmdtext, true, 10) == 0)
  348.     {
  349.         if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
  350.         {
  351.             MoveObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50);
  352.             MoveObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50);
  353.         }
  354.         else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
  355.         {
  356.             MoveObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50);
  357.             MoveObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50);
  358.         }
  359.         else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
  360.         {
  361.             MoveObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50);
  362.         }
  363.         return 1;
  364.     }
  365.     if (strcmp("/doorclose",cmdtext, true, 10) == 0)
  366.     {
  367.         if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
  368.         {
  369.             MoveObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50);
  370.             MoveObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50);
  371.         }
  372.         else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
  373.         {
  374.             MoveObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50);
  375.             MoveObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50);
  376.         }
  377.         else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
  378.         {
  379.             MoveObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50);
  380.         }
  381.         return 1;
  382.     }
  383.     return 0;
  384. }
  385.  
  386. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  387. {
  388.     return 1;
  389. }
  390.  
  391. public OnPlayerExitVehicle(playerid, vehicleid)
  392. {
  393.     return 1;
  394. }
  395.  
  396. public OnPlayerStateChange(playerid, newstate, oldstate)
  397. {
  398.     return 1;
  399. }
  400.  
  401. public OnPlayerEnterCheckpoint(playerid)
  402. {
  403.     return 1;
  404. }
  405.  
  406. public OnPlayerLeaveCheckpoint(playerid)
  407. {
  408.     return 1;
  409. }
  410.  
  411. public OnPlayerEnterRaceCheckpoint(playerid)
  412. {
  413.     return 1;
  414. }
  415.  
  416. public OnPlayerLeaveRaceCheckpoint(playerid)
  417. {
  418.     return 1;
  419. }
  420.  
  421. public OnRconCommand(cmd[])
  422. {
  423.     return 1;
  424. }
  425.  
  426. public OnPlayerRequestSpawn(playerid)
  427. {
  428.     return 1;
  429. }
  430.  
  431. public OnObjectMoved(objectid)
  432. {
  433.     return 1;
  434. }
  435.  
  436. public OnPlayerObjectMoved(playerid, objectid)
  437. {
  438.     return 1;
  439. }
  440.  
  441. public OnPlayerPickUpPickup(playerid, pickupid)
  442. {
  443.     return 1;
  444. }
  445.  
  446. public OnVehicleMod(playerid, vehicleid, componentid)
  447. {
  448.     return 1;
  449. }
  450.  
  451. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  452. {
  453.     return 1;
  454. }
  455.  
  456. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  457. {
  458.     return 1;
  459. }
  460.  
  461. public OnPlayerSelectedMenuRow(playerid, row)
  462. {
  463.     return 1;
  464. }
  465.  
  466. public OnPlayerExitedMenu(playerid)
  467. {
  468.     return 1;
  469. }
  470.  
  471. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  472. {
  473.     return 1;
  474. }
  475.  
  476. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  477. {
  478.     return 1;
  479. }
  480.  
  481. public OnRconLoginAttempt(ip[], password[], success)
  482. {
  483.     return 1;
  484. }
  485.  
  486. public OnPlayerUpdate(playerid)
  487. {
  488.     return 1;
  489. }
  490.  
  491. public OnPlayerStreamIn(playerid, forplayerid)
  492. {
  493.     return 1;
  494. }
  495.  
  496. public OnPlayerStreamOut(playerid, forplayerid)
  497. {
  498.     return 1;
  499. }
  500.  
  501. public OnVehicleStreamIn(vehicleid, forplayerid)
  502. {
  503.     return 1;
  504. }
  505.  
  506. public OnVehicleStreamOut(vehicleid, forplayerid)
  507. {
  508.     return 1;
  509. }
  510.  
  511. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  512. {
  513.     return 1;
  514. }
  515.  
  516. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  517. {
  518.     return 1;
  519. }
  520. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  521. {
  522.     if(IsPlayerConnected(playerid))
  523.     {
  524.         new Float:oldposx, Float:oldposy, Float:oldposz;
  525.         new Float:tempposx, Float:tempposy, Float:tempposz;
  526.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  527.         tempposx = (oldposx -x);
  528.         tempposy = (oldposy -y);
  529.         tempposz = (oldposz -z);
  530.         //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  531.         if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  532.         {
  533.             return 1;
  534.         }
  535.     }
  536.     return 0;
  537. }
  538.  
Advertisement
Add Comment
Please, Sign In to add comment