Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- new door1; // Door at the left when you enter
- new door2; // Door at the left when you enter
- new door3; // Door at the right when you enter
- new door4; // Door at the right when you enter
- new door5; // Celldoors downstairs
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Los Santos Police Department Interior");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Los Santos Police Department Interior");
- print(" By Kristian 'Wennicke' Bennedsen ");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- CreateObject(14847, 1560.6787109375, -1684.51171875, 1725.4956054688, 0, 0, 90);
- CreateObject(14848, 1563.0815429688, -1682.9155273438, 1723.4973144531, 0, 0, 90);
- CreateObject(14852, 1549.5620117188, -1684.634765625, 1727.5771484375, 0, 0, 90);
- CreateObject(14892, 1571.1171875, -1688.1083984375, 1728.3790283203, 0, 0, 90);
- CreateObject(14851, 1561.0231933594, -1684.5346679688, 1726.2297363281, 0, 0, 90);
- CreateObject(1569, 1549.7109375, -1686.181640625, 1722.0989990234, 0, 0, 88.494873046875);
- CreateObject(1569, 1549.7155761719, -1683.173828125, 1722.0989990234, 0, 0, 271.24487304688);
- door1 = CreateObject(1495, 1558.970703125, -1677.9114990234, 1722.1081542969, 0, 0, 0); // CLOSED DOORS 1
- door2 = CreateObject(1495, 1561.9755859375, -1677.8798828125, 1722.1081542969, 0, 0, 179.99450683594); // CLOSED DOORS 2
- CreateObject(1495, 1559.6491699219, -1677.8977050781, 1722.1081542969, 0, 0, 180); // DOORS NOT FOR USE
- CreateObject(1495, 1561.2772216797, -1677.9395751953, 1722.1081542969, 0, 0, 0); // DOORS NOT FOR USE
- CreateObject(1495, 1552.7789306641, -1691.4653320313, 1722.1081542969, 0, 0, 0); //LEFT DOOR NOT USED
- CreateObject(1495, 1551.1292724609, -1691.4696044922, 1722.1081542969, 0, 0, 179.99450683594); // RIGHT DOOR NOT USED
- door3 = CreateObject(1495, 1550.4266357422, -1691.5009765625, 1722.1081542969, 0, 0, 0); // RIGHT DOOR CLOSED
- door4 = CreateObject(1495, 1553.4294433594, -1691.4515380859, 1722.1081542969, 0, 0, 180); //LEFT DOOR CLOSED
- CreateObject(3859, 1555.9072265625, -1678.0869140625, 1722.7607421875, 0, 0, 287.24853515625);
- CreateObject(3859, 1559.609375, -1691.3029785156, 1722.7607421875, 0, 0, 287.24853515625);
- CreateObject(1811, 1554.6014404297, -1690.6214599609, 1722.7313232422, 0, 0, 272);
- CreateObject(1811, 1555.3798828125, -1690.6083984375, 1722.7313232422, 0, 0, 271.99951171875);
- CreateObject(1811, 1558.58203125, -1690.5570068359, 1722.7313232422, 0, 0, 271.99951171875);
- CreateObject(1811, 1557.8283691406, -1690.5720214844, 1722.7313232422, 0, 0, 271.99951171875);
- CreateObject(2635, 1556.5208740234, -1690.4576416016, 1722.509765625, 0, 0, 0);
- CreateObject(1811, 1553.9925537109, -1678.7869873047, 1722.7313232422, 0, 359.75, 88.99951171875);
- CreateObject(1811, 1553.1871337891, -1678.8201904297, 1722.7313232422, 0, 359.74731445313, 88.994750976563);
- CreateObject(1811, 1550.6711425781, -1678.9018554688, 1722.7313232422, 0, 359.74731445313, 90.994750976563);
- CreateObject(2635, 1551.8782958984, -1678.8499755859, 1722.509765625, 0, 0, 0);
- CreateObject(3858, 1562.2353515625, -1684.427734375, 1725.9052734375, 0, 0, 135);
- CreateObject(2208, 1565.3688964844, -1688.9642333984, 1722.1049804688, 0, 0, 89.25);
- CreateObject(2208, 1565.4560546875, -1683.5958251953, 1722.1049804688, 0, 0, 89.247436523438);
- CreateObject(2204, 1563.8812255859, -1678.1228027344, 1722.1049804688, 0, 0, 0.25);
- CreateObject(2894, 1565.4929199219, -1683.2951660156, 1722.9702148438, 0, 0, 120);
- CreateObject(1892, 1550.4637451172, -1683.3897705078, 1722.1049804688, 0, 0, 270);
- CreateObject(1892, 1550.4547119141, -1684.9942626953, 1722.1049804688, 0, 0, 270);
- CreateObject(2163, 1565.6490478516, -1691.2481689453, 1723.4522705078, 0, 359.25, 179.75);
- CreateObject(2164, 1551.2637939453, -1677.6009521484, 1722.0950927734, 0, 0, 180);
- CreateObject(2163, 1553.0098876953, -1677.6041259766, 1722.0930175781, 0, 0, 180);
- CreateObject(2197, 1563.9239501953, -1671.6114501953, 1722.1049804688, 0, 0, 0);
- CreateObject(2197, 1563.2835693359, -1671.6102294922, 1722.1049804688, 0, 0, 0);
- CreateObject(2197, 1564.5617675781, -1671.609375, 1722.1049804688, 0, 0, 0);
- CreateObject(2197, 1565.2025146484, -1671.6070556641, 1722.1049804688, 0, 0, 0);
- CreateObject(2197, 1565.2021484375, -1671.6064453125, 1722.634765625, 0, 0, 0);
- CreateObject(2197, 1564.5610351563, -1671.6043701172, 1722.634765625, 0, 0, 0);
- CreateObject(2197, 1563.9217529297, -1671.6044921875, 1722.634765625, 0, 0, 0);
- CreateObject(2197, 1563.2833251953, -1671.6064453125, 1722.634765625, 0, 0, 0);
- CreateObject(2200, 1550.1123046875, -1672.3017578125, 1722.1119384766, 0, 0, 89.49462890625);
- CreateObject(2165, 1558.0212402344, -1674.03515625, 1722.1049804688, 0, 0, 180);
- CreateObject(2166, 1555.0703125, -1675.107421875, 1722.1049804688, 0, 0, 0);
- CreateObject(2165, 1555.1351318359, -1672.0085449219, 1722.1059570313, 0, 0, 90);
- CreateObject(2165, 1552.8685302734, -1674.3509521484, 1722.1059570313, 0, 0, 180);
- CreateObject(1671, 1552.4464111328, -1673.1085205078, 1722.5721435547, 0, 0, 0);
- CreateObject(1671, 1557.5301513672, -1672.9681396484, 1722.5721435547, 0, 0, 0);
- CreateObject(1671, 1556.1381835938, -1671.4710693359, 1722.5721435547, 0, 0, 268.5);
- CreateObject(2616, 1558.6160888672, -1672.3182373047, 1724.0888671875, 0, 0, 270);
- CreateObject(2165, 1555.0947265625, -1668.4851074219, 1722.1059570313, 0, 0, 268.75);
- CreateObject(2165, 1558.154296875, -1668.4970703125, 1722.1059570313, 0, 0, 268.49487304688);
- CreateObject(2166, 1557.2095947266, -1667.0318603516, 1722.1049804688, 0, 0, 269.5);
- CreateObject(2165, 1552.2785644531, -1668.4486083984, 1722.1059570313, 0, 0, 268.74755859375);
- CreateObject(2165, 1555.1401367188, -1665.0535888672, 1722.1059570313, 0, 0, 268.74755859375);
- CreateObject(2165, 1552.283203125, -1665.0849609375, 1722.1059570313, 0, 0, 268.74755859375);
- CreateObject(2164, 1550.5020751953, -1662.5579833984, 1722.0950927734, 0, 0, 359.49450683594);
- CreateObject(2164, 1552.2470703125, -1662.5673828125, 1722.0950927734, 0, 0, 359.48913574219);
- CreateObject(2202, 1555.8001708984, -1662.9997558594, 1722.1119384766, 0, 0, 0);
- CreateObject(1671, 1550.9736328125, -1668.9665527344, 1722.5721435547, 0, 0, 88);
- CreateObject(1671, 1554.0920410156, -1668.9753417969, 1722.5721435547, 0, 0, 87.994995117188);
- CreateObject(1671, 1557.091796875, -1668.9833984375, 1722.5721435547, 0, 0, 87.994995117188);
- CreateObject(1671, 1554.0986328125, -1665.5952148438, 1722.5721435547, 0, 0, 87.994995117188);
- CreateObject(1671, 1551.09765625, -1665.6396484375, 1722.5721435547, 0, 0, 87.994995117188);
- CreateObject(2616, 1554.2237548828, -1670.0511474609, 1724.0888671875, 0, 0, 180);
- CreateObject(2165, 1556.9682617188, -1661.6063232422, 1722.1059570313, 0, 0, 179.24755859375);
- CreateObject(2165, 1553.5913085938, -1661.626953125, 1722.1059570313, 0, 0, 178.99743652344);
- CreateObject(2165, 1554.6396484375, -1657.5390625, 1722.1059570313, 0, 0, 178.74206542969);
- CreateObject(2166, 1555.0888671875, -1660.6533203125, 1722.1049804688, 0, 0, 179.48913574219);
- CreateObject(2165, 1558.0698242188, -1657.4354248047, 1722.1059570313, 0, 0, 179.74450683594);
- CreateObject(2165, 1551.4645996094, -1657.6751708984, 1722.1059570313, 0, 0, 178.74206542969);
- CreateObject(2165, 1554.6165771484, -1654.0340576172, 1722.1059570313, 0, 0, 178.74206542969);
- CreateObject(2165, 1557.9499511719, -1654.0950927734, 1722.1059570313, 0, 0, 179.74182128906);
- CreateObject(2202, 1550.4482421875, -1652.5078125, 1722.1049804688, 0, 0, 0);
- CreateObject(1671, 1552.931640625, -1660.576171875, 1722.5721435547, 0, 0, 359.99450683594);
- CreateObject(1671, 1556.2386474609, -1660.6827392578, 1722.5721435547, 0, 0, 9.7445068359375);
- CreateObject(1671, 1557.4249267578, -1656.2249755859, 1722.5721435547, 0, 0, 3.9893798828125);
- CreateObject(1671, 1557.2801513672, -1652.8701171875, 1722.5721435547, 0, 0, 1.738037109375);
- CreateObject(1671, 1554.0567626953, -1652.8929443359, 1722.5721435547, 0, 0, 1.73583984375);
- CreateObject(1671, 1554.0797119141, -1656.4822998047, 1722.5721435547, 0, 0, 1.73583984375);
- CreateObject(1671, 1550.8920898438, -1656.5832519531, 1722.5721435547, 0, 0, 1.73583984375);
- CreateObject(2612, 1558.6097412109, -1657.3355712891, 1724.083984375, 0, 0, 270);
- CreateObject(2616, 1558.6217041016, -1654.3928222656, 1723.9018554688, 0, 0, 270);
- door5 = CreateObject(10252, 1560.1090087891, -1653.4477539063, 1719.5637207031, 0, 0, 270.25); // CELL DOOR CLOSED
- CreateObject(2165, 1566.8505859375, -1662.0568847656, 1717.9025878906, 0, 0, 180.74743652344);
- CreateObject(2165, 1563.5756835938, -1662.0688476563, 1717.9025878906, 0, 0, 180.7470703125);
- CreateObject(2166, 1565.037109375, -1661.0903320313, 1717.900390625, 0, 0, 179.48913574219);
- CreateObject(1671, 1562.9711914063, -1661.1099853516, 1718.3341064453, 0, 0, 359.99450683594);
- CreateObject(1671, 1566.3414306641, -1661.0170898438, 1718.3341064453, 0, 0, 359.99450683594);
- CreateObject(1671, 1565.2408447266, -1663.1514892578, 1718.3341064453, 0, 0, 152.99450683594);
- CreateObject(2400, 1568.1694335938, -1673.7720947266, 1722.1014404297, 0, 0, 180);
- CreateObject(2164, 1560.8505859375, -1665.8892822266, 1717.8881835938, 0, 0, 179.98913574219);
- CreateObject(2164, 1562.5926513672, -1665.8927001953, 1717.8881835938, 0, 0, 179.98901367188);
- CreateObject(2200, 1567.1829833984, -1665.7159423828, 1717.8619384766, 0, 0, 178.74462890625);
- CreateObject(2612, 1558.609375, -1657.3349609375, 1724.083984375, 0, 0, 270);
- CreateObject(2612, 1567.6097412109, -1661.83984375, 1720.2657470703, 0, 0, 270);
- CreateObject(1502, 1562.3896484375, -1661.9794921875, 1729.1049804688, 0, 0, 90);
- CreateObject(2637, 1568.8544921875, -1661.0280761719, 1729.509765625, 0, 0, 0);
- CreateObject(2637, 1566.826171875, -1661.029296875, 1729.509765625, 0, 0, 0);
- CreateObject(2637, 1564.796875, -1661.03125, 1729.509765625, 0, 0, 0);
- CreateObject(1811, 1564.59765625, -1660.1904296875, 1729.7243652344, 0, 0, 91.99951171875);
- CreateObject(1811, 1565.822265625, -1660.2436523438, 1729.7243652344, 0, 0, 91.99951171875);
- CreateObject(1811, 1566.9383544922, -1660.2598876953, 1729.7243652344, 0, 0, 91.99951171875);
- CreateObject(1811, 1568.0690917969, -1660.2336425781, 1729.7243652344, 0, 0, 87.99951171875);
- CreateObject(1811, 1569.3212890625, -1660.1873779297, 1729.7243652344, 0, 0, 89.244995117188);
- CreateObject(1811, 1569.3409423828, -1661.8400878906, 1729.7243652344, 0, 0, 270.49194335938);
- CreateObject(1811, 1568.0673828125, -1661.8515625, 1729.7243652344, 0, 0, 270.48889160156);
- CreateObject(1811, 1566.9477539063, -1661.8598632813, 1729.7243652344, 0, 0, 270.48889160156);
- CreateObject(1811, 1565.763671875, -1661.853515625, 1729.7243652344, 0, 0, 270.48889160156);
- CreateObject(1811, 1564.5675048828, -1661.8399658203, 1729.7243652344, 0, 0, 270.48889160156);
- CreateObject(1714, 1570.697265625, -1661.1162109375, 1729.1049804688, 0, 0, 270);
- CreateObject(2165, 1555.1872558594, -1657.5249023438, 1729.0892333984, 0, 0, 269.49206542969);
- CreateObject(1671, 1550.9450683594, -1657.0825195313, 1729.5350341797, 0, 0, 359.99450683594);
- CreateObject(2165, 1555.1787109375, -1660.2744140625, 1729.0892333984, 0, 0, 269.48364257813);
- CreateObject(2165, 1551.5428466797, -1664.7469482422, 1729.0892333984, 0, 0, 178.73913574219);
- CreateObject(2165, 1551.5100097656, -1661.4954833984, 1729.0892333984, 0, 0, 178.73657226563);
- CreateObject(2165, 1551.556640625, -1658.2442626953, 1729.0892333984, 0, 0, 178.73657226563);
- CreateObject(1671, 1550.9600830078, -1660.3966064453, 1729.5350341797, 0, 0, 359.99450683594);
- CreateObject(1671, 1550.9423828125, -1663.421875, 1729.5350341797, 0, 0, 359.98901367188);
- CreateObject(1671, 1553.9912109375, -1660.98046875, 1729.5350341797, 0, 0, 89.994506835938);
- CreateObject(1671, 1554.0485839844, -1658.0402832031, 1729.5350341797, 0, 0, 89.994506835938);
- CreateObject(2164, 1555.0341796875, -1666.2138671875, 1729.0975341797, 0, 0, 230.48767089844);
- CreateObject(2202, 1555.1953125, -1663.5390625, 1729.1049804688, 0, 0, 269.24743652344);
- CreateObject(2166, 1564.0991210938, -1667.9174804688, 1729.1029052734, 0, 0, 89.999969482422);
- CreateObject(2165, 1563.0932617188, -1665.9896240234, 1729.1027832031, 0, 0, 90.741577148438);
- CreateObject(2166, 1570.8127441406, -1667.0698242188, 1729.1029052734, 0, 0, 179.99450683594);
- CreateObject(2165, 1568.8333740234, -1668.0599365234, 1729.1027832031, 0, 0, 179.73608398438);
- CreateObject(2202, 1564.5129394531, -1670.4855957031, 1729.1049804688, 0, 0, 179.99737548828);
- CreateObject(1714, 1564.1982421875, -1665.5805664063, 1729.1049804688, 0, 0, 270);
- CreateObject(1714, 1568.4188232422, -1666.9476318359, 1729.1049804688, 0, 0, 352.75);
- CreateObject(2197, 1570.2697753906, -1665.2131347656, 1729.1049804688, 0, 0, 270);
- CreateObject(2204, 1555.8548583984, -1671.8468017578, 1729.1049804688, 0, 0, 270);
- CreateObject(1713, 1568.6257324219, -1663.8311767578, 1729.1049804688, 0, 0, 359);
- CreateObject(3858, 1569.6866455078, -1671.1461181641, 1730.5749511719, 0, 0, 224.99993896484);
- CreateObject(1811, 1570.9351806641, -1670.2180175781, 1729.7243652344, 0, 0, 0.48886108398438);
- CreateObject(1811, 1567.5667724609, -1669.0914306641, 1729.7243652344, 0, 0, 254.4833984375);
- CreateObject(2010, 1563.3186035156, -1663.9576416016, 1729.0783691406, 0, 0, 0);
- CreateObject(2010, 1567.7115478516, -1663.9509277344, 1729.0783691406, 0, 0, 0);
- CreateObject(2010, 1570.7874755859, -1666.1130371094, 1729.0783691406, 0, 0, 0);
- CreateObject(2166, 1550.4735107422, -1674.7574462891, 1729.1029052734, 0, 0, 359.24450683594);
- CreateObject(2165, 1552.4696044922, -1673.7794189453, 1729.1027832031, 0, 0, 359.48083496094);
- CreateObject(1671, 1553.1348876953, -1675.0592041016, 1729.5350341797, 0, 0, 181.23902893066);
- CreateObject(2010, 1550.3454589844, -1671.8184814453, 1729.0783691406, 0, 0, 0);
- CreateObject(2010, 1555.3608398438, -1677.0268554688, 1729.0783691406, 0, 0, 0);
- CreateObject(2164, 1552.9368896484, -1677.5269775391, 1729.0975341797, 0, 0, 179.98767089844);
- CreateObject(1811, 1553.6968994141, -1672.6910400391, 1729.7243652344, 0, 0, 70.481811523438);
- CreateObject(2197, 1550.9265136719, -1676.4006347656, 1729.1049804688, 0, 0, 89.25);
- CreateObject(2165, 1563.9758300781, -1677.9991455078, 1729.1027832031, 0, 0, 268.73608398438);
- CreateObject(2166, 1564.8358154297, -1676.1884765625, 1729.1029052734, 0, 0, 268.99194335938);
- CreateObject(2165, 1563.9899902344, -1680.2158203125, 1729.1027832031, 0, 0, 268.73107910156);
- CreateObject(2165, 1564.0935058594, -1686.0129394531, 1729.1027832031, 0, 0, 268.73107910156);
- CreateObject(2165, 1564.1141357422, -1688.2531738281, 1729.1027832031, 0, 0, 268.73107910156);
- CreateObject(2166, 1565.7049560547, -1682.07421875, 1729.1029052734, 0, 0, 178.9892578125);
- CreateObject(2166, 1566.0612792969, -1690.0357666016, 1729.1029052734, 0, 0, 178.9892578125);
- CreateObject(2166, 1564.6635742188, -1684.2177734375, 1729.1029052734, 0, 0, 268.9892578125);
- CreateObject(1671, 1562.9649658203, -1678.5107421875, 1729.5350341797, 0, 0, 89.994506835938);
- CreateObject(1671, 1562.9923095703, -1680.6713867188, 1729.5350341797, 0, 0, 89.994506835938);
- CreateObject(1671, 1563.0739746094, -1686.5653076172, 1729.5350341797, 0, 0, 89.994506835938);
- CreateObject(1671, 1563.0981445313, -1688.8854980469, 1729.5350341797, 0, 0, 89.994506835938);
- CreateObject(2202, 1570.8410644531, -1680.0516357422, 1729.1049804688, 0, 0, 269.24450683594);
- CreateObject(2637, 1570.2834472656, -1686.4146728516, 1729.509765625, 0, 0, 0);
- CreateObject(1811, 1570.8620605469, -1685.1634521484, 1729.7243652344, 0, 0, 91.99951171875);
- CreateObject(1811, 1569.861328125, -1685.1728515625, 1729.7243652344, 0, 0, 91.99951171875);
- CreateObject(1811, 1569.8857421875, -1687.7446289063, 1729.7243652344, 0, 0, 268.24954223633);
- CreateObject(1811, 1570.8331298828, -1687.7547607422, 1729.7243652344, 0, 0, 268.24768066406);
- CreateObject(1502, 1555.5554199219, -1703.46484375, 1727.6875, 0, 0, 180);
- CreateObject(1502, 1560.5125732422, -1699.001953125, 1727.6875, 0, 0, 270.24450683594);
- CreateObject(1502, 1560.5512695313, -1696.8273925781, 1727.6875, 0, 0, 269.49169921875);
- CreateObject(2165, 1559.9223632813, -1701.7701416016, 1727.7056884766, 0, 0, 268.73107910156);
- CreateObject(2165, 1557.2222900391, -1699.4235839844, 1727.7056884766, 0, 0, 359.73107910156);
- CreateObject(2010, 1556.4606933594, -1699.552734375, 1727.6955566406, 0, 0, 0);
- CreateObject(1671, 1558.9417724609, -1702.3826904297, 1728.1032714844, 0, 0, 88.494506835938);
- CreateObject(1671, 1557.7303466797, -1700.5159912109, 1728.1032714844, 0, 0, 178.48937988281);
- CreateObject(2165, 1556.5736083984, -1696.3637695313, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1556.5556640625, -1693.1066894531, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(1671, 1556.9515380859, -1697.5183105469, 1728.1032714844, 0, 0, 177.98937988281);
- CreateObject(1671, 1557.0155029297, -1694.2286376953, 1728.1032714844, 0, 0, 177.98400878906);
- CreateObject(2164, 1560.3641357422, -1693.9622802734, 1727.69921875, 0, 0, 269.98773193359);
- CreateObject(2010, 1560.1291503906, -1692.2045898438, 1727.6955566406, 0, 0, 28);
- CreateObject(1811, 1550.4191894531, -1697.6453857422, 1728.2985839844, 0, 0, 89.488891601563);
- CreateObject(1811, 1551.3605957031, -1697.6298828125, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1552.3485107422, -1697.6209716797, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1553.2763671875, -1697.5944824219, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1553.3436279297, -1699.3397216797, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1552.4538574219, -1699.3140869141, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1551.4167480469, -1699.3479003906, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1550.4156494141, -1699.3068847656, 1728.2985839844, 0, 0, 89.483642578125);
- CreateObject(1811, 1555.2335205078, -1697.9666748047, 1728.2985839844, 0, 0, 358.98364257813);
- CreateObject(1811, 1555.224609375, -1699.0031738281, 1728.2985839844, 0, 0, 358.97827148438);
- CreateObject(1811, 1555.2377929688, -1699.9914550781, 1728.2985839844, 0, 0, 358.97827148438);
- CreateObject(2165, 1556.3403320313, -1708.9675292969, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1556.369140625, -1712.1574707031, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1556.3212890625, -1715.2407226563, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1553.9617919922, -1715.1932373047, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1553.9102783203, -1712.1763916016, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1553.9462890625, -1709.0625, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1550.5040283203, -1709.0592041016, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1550.5354003906, -1712.2188720703, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(2165, 1550.5209960938, -1715.1944580078, 1727.7056884766, 0, 0, 359.73083496094);
- CreateObject(1671, 1554.5499267578, -1710.1170654297, 1728.1032714844, 0, 0, 180.73937988281);
- CreateObject(1671, 1554.4759521484, -1713.1951904297, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1554.5845947266, -1716.1575927734, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1550.9645996094, -1716.2276611328, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1551.0290527344, -1713.2036132813, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1551.0323486328, -1710.0871582031, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1556.9754638672, -1709.9176025391, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1556.9692382813, -1713.2188720703, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(1671, 1556.9124755859, -1716.2072753906, 1728.1032714844, 0, 0, 180.73608398438);
- CreateObject(2164, 1560.3686523438, -1709.06640625, 1727.69921875, 0, 0, 269.98352050781);
- CreateObject(2200, 1560.2320556641, -1713.5151367188, 1727.69921875, 0, 0, 269.49462890625);
- CreateObject(2010, 1560.0037841797, -1711.3508300781, 1727.6955566406, 0, 0, 27.998657226563);
- CreateObject(2010, 1555.2453613281, -1707.1857910156, 1727.6955566406, 0, 0, 27.998657226563);
- CreateObject(2010, 1550.4656982422, -1707.0255126953, 1727.6955566406, 0, 0, 27.998657226563);
- CreateObject(2202, 1550.3616943359, -1705.7396240234, 1727.7054443359, 0, 0, 90.494506835938);
- CreateObject(2165, 1554.7550048828, -1715.5963134766, 1723.5070800781, 0, 0, 180.7308807373);
- CreateObject(2165, 1554.7612304688, -1713.0939941406, 1723.5070800781, 0, 0, 180.73059082031);
- CreateObject(2165, 1551.5487060547, -1710.1943359375, 1723.5070800781, 0, 0, 180.73083496094);
- CreateObject(2165, 1551.7028808594, -1713.0958251953, 1723.5070800781, 0, 0, 180.73059082031);
- CreateObject(2165, 1551.7336425781, -1715.5969238281, 1723.5070800781, 0, 0, 180.73059082031);
- CreateObject(1671, 1550.9909667969, -1709.0815429688, 1723.9549560547, 0, 0, 0.736083984375);
- CreateObject(1671, 1551.1468505859, -1712.1588134766, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(1671, 1551.2099609375, -1714.5087890625, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(1671, 1554.1484375, -1714.8011474609, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(1671, 1554.2429199219, -1712.0563964844, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(2165, 1551.5954589844, -1705.8657226563, 1723.5070800781, 0, 0, 180.73059082031);
- CreateObject(2165, 1551.5607910156, -1703.2443847656, 1723.5070800781, 0, 0, 180.73059082031);
- CreateObject(2165, 1551.5288085938, -1700.7309570313, 1723.5070800781, 0, 0, 180.73059082031);
- CreateObject(1671, 1550.8858642578, -1704.7960205078, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(1671, 1550.8951416016, -1702.1226806641, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(1671, 1550.8908691406, -1699.6276855469, 1723.9549560547, 0, 0, 0.7305908203125);
- CreateObject(2164, 1555.2377929688, -1700.3732910156, 1723.4754638672, 0, 0, 269.98352050781);
- CreateObject(2010, 1554.791015625, -1705.7084960938, 1723.4622802734, 0, 0, 27.998657226563);
- CreateObject(2165, 1559.5126953125, -1695.1513671875, 1722.1027832031, 0, 0, 0.72509765625);
- CreateObject(2165, 1564.220703125, -1695.0986328125, 1722.0823974609, 0, 0, 0.7196044921875);
- CreateObject(1671, 1559.8891601563, -1696.42578125, 1722.5925292969, 0, 0, 182.7306060791);
- CreateObject(1671, 1564.9569091797, -1696.3143310547, 1722.5925292969, 0, 0, 182.73010253906);
- CreateObject(2010, 1559.3121337891, -1698.0067138672, 1722.1081542969, 0, 0, 27.998657226563);
- CreateObject(2010, 1565.5454101563, -1697.9234619141, 1722.1081542969, 0, 0, 27.998657226563);
- CreateObject(2164, 1562.6605224609, -1698.42578125, 1722.0843505859, 0, 0, 179.73352050781);
- CreateObject(1811, 1555.1475830078, -1698.0731201172, 1722.7313232422, 0, 0, 357.99951171875);
- CreateObject(1811, 1555.1492919922, -1697.2067871094, 1722.7313232422, 0, 0, 357.99499511719);
- CreateObject(1811, 1555.1143798828, -1696.4207763672, 1722.7313232422, 0, 0, 357.99499511719);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerPos(playerid,1550.9105,-1683.8849,1723.1050);
- SetPlayerSkin(playerid, 280);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/dooropen", cmdtext, true, 10) == 0)
- {
- if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
- {
- MoveObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50);
- MoveObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50);
- }
- else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
- {
- MoveObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50);
- MoveObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50);
- }
- else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
- {
- MoveObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50);
- }
- return 1;
- }
- if (strcmp("/doorclose",cmdtext, true, 10) == 0)
- {
- if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
- {
- MoveObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50);
- MoveObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50);
- }
- else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
- {
- MoveObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50);
- MoveObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50);
- }
- else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
- {
- MoveObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50);
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment