Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- main()
- {
- print("\n----------------------------------");
- print(" Los Santos");
- print(" Police");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("LSPD Test");
- // Spawn
- AddPlayerClass(283,1535.1841,-1659.9615,13.5469,124.2492,0,0,0,0,0,0);
- // Police
- CreateObject(1411, 1546.965454, -1617.941772, 17.533722, 0.0000, 0.0000, 179.6223);
- CreateObject(1411, 1542.258911, -1617.937988, 17.533722, 0.0000, 0.0000, 179.6223);
- CreateObject(1411, 1539.402832, -1615.080933, 17.532625, 0.0000, 0.0000, 90.2408);
- CreateObject(1411, 1539.403442, -1609.918091, 17.532625, 0.0000, 0.0000, 90.2408);
- CreateObject(1411, 1539.407104, -1605.046997, 17.172276, 0.0000, 0.0000, 90.2408);
- CreateObject(1411, 1542.224121, -1602.198364, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1547.416504, -1602.195801, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1552.614136, -1602.194092, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1557.843018, -1602.217285, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1563.075562, -1602.223511, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1568.292358, -1602.233521, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1573.543457, -1602.202393, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1578.786743, -1602.205933, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1583.987305, -1602.202881, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1589.226318, -1602.209351, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1594.469849, -1602.240234, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1599.715576, -1602.268677, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1604.963623, -1602.285278, 17.520538, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1605.316162, -1602.335938, 17.531136, 0.0000, 0.0000, 359.9999);
- CreateObject(1411, 1608.134521, -1605.133545, 17.531136, 0.0000, 0.0000, 270.6186);
- CreateObject(1411, 1608.204468, -1610.341064, 17.531136, 0.0000, 0.0000, 270.6186);
- CreateObject(1411, 1608.207764, -1615.554688, 17.531136, 0.0000, 0.0000, 270.6186);
- CreateObject(1411, 1608.163452, -1620.865356, 17.531136, 0.0000, 0.0000, 268.8997);
- CreateObject(1411, 1608.078003, -1626.109131, 17.531136, 0.0000, 0.0000, 268.8997);
- CreateObject(1411, 1607.970581, -1631.348145, 17.531136, 0.0000, 0.0000, 268.8997);
- CreateObject(1411, 1607.968384, -1635.417114, 17.531136, 0.0000, 0.0000, 268.8997);
- CreateObject(1411, 1605.263306, -1638.109985, 17.524218, 0.0000, 0.0000, 179.6223);
- CreateObject(994, 1544.860107, -1624.140381, 12.483130, 0.0000, 0.0000, 90.2409);
- CreateObject(994, 1544.988525, -1638.943970, 12.329521, 0.0000, 0.0000, 90.2409);
- CreateObject(1374, 1544.664673, -1630.428101, 13.963647, 142.6667, 0.0000, 0.0000);
- CreateObject(987, 1550.146362, -1633.752563, 12.555380, 0.0000, 0.0000, 271.4780);
- CreateObject(974, 1549.556885, -1619.472656, 15.099618, 0.0000, 0.0000, 90.2409);
- CreateObject(974, 1549.940674, -1636.234375, 15.333383, 0.0000, 0.0000, 90.2409);
- CreateObject(18452, 1545.390137, -1610.168823, 15.331543, 0.0000, 0.0000, 0.0000);
- CreateObject(1676, 1546.914063, -1607.359375, 14.162410, 0.0000, 0.0000, 0.0000);
- CreateObject(1676, 1543.795166, -1607.368286, 14.162410, 0.0000, 0.0000, 0.0000);
- CreateObject(1676, 1545.395142, -1607.362061, 14.162410, 0.0000, 0.0000, 0.0000);
- CreateObject(1676, 1547.027100, -1612.962769, 14.162410, 0.0000, 0.0000, 0.0000);
- CreateObject(1676, 1545.586426, -1612.956299, 14.162410, 0.0000, 0.0000, 0.0000);
- CreateObject(1676, 1544.155762, -1612.963257, 14.162410, 0.0000, 0.0000, 0.0000);
- CreateObject(12912, 1573.651367, -1646.796143, 38.898529, 0.0000, 0.0000, 180.0000);
- CreateObject(978, 1592.301392, -1634.930176, 13.340281, 0.0000, 0.0000, 102.0321);
- CreateObject(978, 1588.858765, -1628.941895, 13.223033, 0.0000, 0.0000, 135.7821);
- CreateObject(978, 1582.635254, -1626.948486, 13.223033, 0.0000, 0.0000, 181.3325);
- CreateObject(979, 1582.512329, -1625.936401, 13.223033, 0.0000, 0.0000, 16.3293);
- CreateObject(970, 1551.787598, -1622.767944, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 1555.896484, -1622.797363, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 1559.991455, -1622.805542, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 1564.164917, -1622.803833, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 1568.295166, -1622.806030, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 1572.445679, -1622.785889, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 1574.899170, -1622.784912, 13.098356, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.590942, -1684.781860, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.573486, -1691.137085, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.623901, -1697.555176, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.611816, -1703.933594, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.622803, -1710.329468, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.625122, -1660.595337, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.609863, -1654.154175, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.621216, -1647.758789, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1534.643799, -1641.364136, 13.230430, 0.0000, 0.0000, 0.0000);
- CreateObject(3399, 1570.471924, -1636.776245, 14.626546, 0.0000, 0.0000, 0.0000);
- CreateObject(3399, 1578.401001, -1646.111084, 21.473213, 0.0000, 0.0000, 270.0000);
- CreateObject(3399, 1578.447266, -1656.075684, 25.123219, 0.0000, 0.0000, 270.0000);
- CreateObject(974, 1549.556641, -1615.839111, 15.049620, 0.0000, 0.0000, 90.2409);
- CreateObject(974, 1580.959229, -1638.011597, 15.056435, 0.0000, 0.0000, 0.2409);
- CreateObject(983, 1553.518188, -1654.025635, 28.079163, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.500977, -1660.350098, 28.079163, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.506592, -1666.745239, 28.079163, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.485474, -1669.583496, 28.079163, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1554.401245, -1675.690308, 28.079006, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.549438, -1681.566895, 28.079144, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.551392, -1687.954956, 28.079144, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.557617, -1694.314087, 28.079144, 0.0000, 0.0000, 0.0000);
- CreateObject(983, 1553.547363, -1697.103394, 28.079144, 0.0000, 0.0000, 0.0000);
- CreateObject(632, 1554.670166, -1678.554443, 27.842621, 0.0000, 0.0000, 0.0000);
- CreateObject(632, 1554.833130, -1672.582886, 27.842640, 0.0000, 0.0000, 0.0000);
- CreateObject(14467, 1565.045654, -1675.590454, 62.821110, 0.0000, 0.0000, 309.2932);
- CreateObject(3471, 1547.128906, -1679.718140, 13.835627, 0.0000, 0.0000, 180.0000);
- CreateObject(3471, 1547.577148, -1671.769897, 13.842566, 0.0000, 0.0000, 180.0000);
- // Cop Cars
- AddStaticVehicle(497,1549.7950,-1642.6304,28.5808,88.1836,0,1); // Copheli 1
- AddStaticVehicle(497,1549.4019,-1708.2208,28.5706,88.8487,0,1); // Copheli 2
- AddStaticVehicle(596,1584.9268,-1671.9048,5.6148,270.1233,0,1); // Copcar 1
- AddStaticVehicle(596,1585.0457,-1667.6448,5.6136,270.0458,0,1); // Copcar 2
- AddStaticVehicle(596,1601.3380,-1683.8732,5.6118,89.9167,0,1); // Copcar 3
- AddStaticVehicle(596,1601.1550,-1688.1687,5.6120,90.3515,0,1); // Copcar 4
- AddStaticVehicle(596,1601.2911,-1692.0027,5.6112,91.6256,0,1); // Copcar 5
- AddStaticVehicle(596,1601.2628,-1695.8484,5.6111,89.8441,0,1); // Copcar 6
- AddStaticVehicle(596,1601.3406,-1700.1377,5.6118,88.6769,0,1); // Copcar 7
- AddStaticVehicle(596,1601.4816,-1704.2681,5.6115,89.7715,0,1); // Copcar 8
- AddStaticVehicle(596,1595.5527,-1710.2303,5.6138,1.8645,0,1); // Copcar 9
- AddStaticVehicle(601,1591.3116,-1710.8987,5.6492,1.2247,1,1); // Copcar 10
- AddStaticVehicle(601,1587.1545,-1711.0354,5.6494,359.3104,1,1); // Copcar 11
- AddStaticVehicle(599,1583.5120,-1710.4966,6.0794,358.5814,0,1); // Copcar 12
- AddStaticVehicle(599,1578.7108,-1710.5161,6.0802,2.2155,0,1); // Copcar 13
- AddStaticVehicle(596,1574.5002,-1710.4318,5.6122,0.3688,0,1); // Copcar 14
- AddStaticVehicle(490,1566.5409,-1710.5112,6.0178,357.8192,0,0); // Copcar 15
- AddStaticVehicle(490,1563.3645,-1710.3816,6.0175,357.3836,0,0); // Copcar 16
- AddStaticVehicle(427,1527.0212,-1644.8854,6.0225,180.1303,0,1); // CopEnforcer 1
- AddStaticVehicle(427,1530.7346,-1644.7993,6.0225,178.1441,0,1); // CopEnforcer 2
- AddStaticVehicle(427,1534.6318,-1645.0045,6.0223,179.6916,0,1); // CopEnforcer 3
- AddStaticVehicle(427,1538.7922,-1645.0890,6.0226,179.3058,0,1); // CopEnforcer 4
- AddStaticVehicle(596,1545.7338,-1650.9908,5.6117,89.7984,0,1); // Copcar 17
- AddStaticVehicle(596,1545.5020,-1654.9030,5.6111,88.3039,0,1); // Copcar 18
- AddStaticVehicle(596,1545.5504,-1659.2001,5.6115,89.4240,0,1); // Copcar 19
- AddStaticVehicle(596,1545.4333,-1663.5536,5.6117,89.7536,0,1); // Copcar 20
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1535.1841, -1659.9615, 13.5469);
- SetPlayerCameraPos(playerid, 1512.5128, -1670.9298, 14.0469);
- SetPlayerCameraLookAt(playerid, 1535.1841, -1659.9615, 13.5469);
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- 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("/kill", cmdtext, true, 10) == 0)
- {
- SetPlayerHealth(playerid, 0);
- 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 OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement