Advertisement
Guest User

DominikK

a guest
Oct 20th, 2009
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.73 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. main()
  4. {
  5. print("\n----------------------------------");
  6. print(" Los Santos");
  7. print(" Police");
  8. print("----------------------------------\n");
  9. }
  10.  
  11. public OnGameModeInit()
  12. {
  13. SetGameModeText("LSPD Test");
  14.  
  15. // Spawn
  16. AddPlayerClass(283,1535.1841,-1659.9615,13.5469,124.2492,0,0,0,0,0,0);
  17.  
  18. // Police
  19.  
  20. CreateObject(1411, 1546.965454, -1617.941772, 17.533722, 0.0000, 0.0000, 179.6223);
  21. CreateObject(1411, 1542.258911, -1617.937988, 17.533722, 0.0000, 0.0000, 179.6223);
  22. CreateObject(1411, 1539.402832, -1615.080933, 17.532625, 0.0000, 0.0000, 90.2408);
  23. CreateObject(1411, 1539.403442, -1609.918091, 17.532625, 0.0000, 0.0000, 90.2408);
  24. CreateObject(1411, 1539.407104, -1605.046997, 17.172276, 0.0000, 0.0000, 90.2408);
  25. CreateObject(1411, 1542.224121, -1602.198364, 17.520538, 0.0000, 0.0000, 359.9999);
  26. CreateObject(1411, 1547.416504, -1602.195801, 17.520538, 0.0000, 0.0000, 359.9999);
  27. CreateObject(1411, 1552.614136, -1602.194092, 17.520538, 0.0000, 0.0000, 359.9999);
  28. CreateObject(1411, 1557.843018, -1602.217285, 17.520538, 0.0000, 0.0000, 359.9999);
  29. CreateObject(1411, 1563.075562, -1602.223511, 17.520538, 0.0000, 0.0000, 359.9999);
  30. CreateObject(1411, 1568.292358, -1602.233521, 17.520538, 0.0000, 0.0000, 359.9999);
  31. CreateObject(1411, 1573.543457, -1602.202393, 17.520538, 0.0000, 0.0000, 359.9999);
  32. CreateObject(1411, 1578.786743, -1602.205933, 17.520538, 0.0000, 0.0000, 359.9999);
  33. CreateObject(1411, 1583.987305, -1602.202881, 17.520538, 0.0000, 0.0000, 359.9999);
  34. CreateObject(1411, 1589.226318, -1602.209351, 17.520538, 0.0000, 0.0000, 359.9999);
  35. CreateObject(1411, 1594.469849, -1602.240234, 17.520538, 0.0000, 0.0000, 359.9999);
  36. CreateObject(1411, 1599.715576, -1602.268677, 17.520538, 0.0000, 0.0000, 359.9999);
  37. CreateObject(1411, 1604.963623, -1602.285278, 17.520538, 0.0000, 0.0000, 359.9999);
  38. CreateObject(1411, 1605.316162, -1602.335938, 17.531136, 0.0000, 0.0000, 359.9999);
  39. CreateObject(1411, 1608.134521, -1605.133545, 17.531136, 0.0000, 0.0000, 270.6186);
  40. CreateObject(1411, 1608.204468, -1610.341064, 17.531136, 0.0000, 0.0000, 270.6186);
  41. CreateObject(1411, 1608.207764, -1615.554688, 17.531136, 0.0000, 0.0000, 270.6186);
  42. CreateObject(1411, 1608.163452, -1620.865356, 17.531136, 0.0000, 0.0000, 268.8997);
  43. CreateObject(1411, 1608.078003, -1626.109131, 17.531136, 0.0000, 0.0000, 268.8997);
  44. CreateObject(1411, 1607.970581, -1631.348145, 17.531136, 0.0000, 0.0000, 268.8997);
  45. CreateObject(1411, 1607.968384, -1635.417114, 17.531136, 0.0000, 0.0000, 268.8997);
  46. CreateObject(1411, 1605.263306, -1638.109985, 17.524218, 0.0000, 0.0000, 179.6223);
  47. CreateObject(994, 1544.860107, -1624.140381, 12.483130, 0.0000, 0.0000, 90.2409);
  48. CreateObject(994, 1544.988525, -1638.943970, 12.329521, 0.0000, 0.0000, 90.2409);
  49. CreateObject(1374, 1544.664673, -1630.428101, 13.963647, 142.6667, 0.0000, 0.0000);
  50. CreateObject(987, 1550.146362, -1633.752563, 12.555380, 0.0000, 0.0000, 271.4780);
  51. CreateObject(974, 1549.556885, -1619.472656, 15.099618, 0.0000, 0.0000, 90.2409);
  52. CreateObject(974, 1549.940674, -1636.234375, 15.333383, 0.0000, 0.0000, 90.2409);
  53. CreateObject(18452, 1545.390137, -1610.168823, 15.331543, 0.0000, 0.0000, 0.0000);
  54. CreateObject(1676, 1546.914063, -1607.359375, 14.162410, 0.0000, 0.0000, 0.0000);
  55. CreateObject(1676, 1543.795166, -1607.368286, 14.162410, 0.0000, 0.0000, 0.0000);
  56. CreateObject(1676, 1545.395142, -1607.362061, 14.162410, 0.0000, 0.0000, 0.0000);
  57. CreateObject(1676, 1547.027100, -1612.962769, 14.162410, 0.0000, 0.0000, 0.0000);
  58. CreateObject(1676, 1545.586426, -1612.956299, 14.162410, 0.0000, 0.0000, 0.0000);
  59. CreateObject(1676, 1544.155762, -1612.963257, 14.162410, 0.0000, 0.0000, 0.0000);
  60. CreateObject(12912, 1573.651367, -1646.796143, 38.898529, 0.0000, 0.0000, 180.0000);
  61. CreateObject(978, 1592.301392, -1634.930176, 13.340281, 0.0000, 0.0000, 102.0321);
  62. CreateObject(978, 1588.858765, -1628.941895, 13.223033, 0.0000, 0.0000, 135.7821);
  63. CreateObject(978, 1582.635254, -1626.948486, 13.223033, 0.0000, 0.0000, 181.3325);
  64. CreateObject(979, 1582.512329, -1625.936401, 13.223033, 0.0000, 0.0000, 16.3293);
  65. CreateObject(970, 1551.787598, -1622.767944, 13.098356, 0.0000, 0.0000, 0.0000);
  66. CreateObject(970, 1555.896484, -1622.797363, 13.098356, 0.0000, 0.0000, 0.0000);
  67. CreateObject(970, 1559.991455, -1622.805542, 13.098356, 0.0000, 0.0000, 0.0000);
  68. CreateObject(970, 1564.164917, -1622.803833, 13.098356, 0.0000, 0.0000, 0.0000);
  69. CreateObject(970, 1568.295166, -1622.806030, 13.098356, 0.0000, 0.0000, 0.0000);
  70. CreateObject(970, 1572.445679, -1622.785889, 13.098356, 0.0000, 0.0000, 0.0000);
  71. CreateObject(970, 1574.899170, -1622.784912, 13.098356, 0.0000, 0.0000, 0.0000);
  72. CreateObject(983, 1534.590942, -1684.781860, 13.230430, 0.0000, 0.0000, 0.0000);
  73. CreateObject(983, 1534.573486, -1691.137085, 13.230430, 0.0000, 0.0000, 0.0000);
  74. CreateObject(983, 1534.623901, -1697.555176, 13.230430, 0.0000, 0.0000, 0.0000);
  75. CreateObject(983, 1534.611816, -1703.933594, 13.230430, 0.0000, 0.0000, 0.0000);
  76. CreateObject(983, 1534.622803, -1710.329468, 13.230430, 0.0000, 0.0000, 0.0000);
  77. CreateObject(983, 1534.625122, -1660.595337, 13.230430, 0.0000, 0.0000, 0.0000);
  78. CreateObject(983, 1534.609863, -1654.154175, 13.230430, 0.0000, 0.0000, 0.0000);
  79. CreateObject(983, 1534.621216, -1647.758789, 13.230430, 0.0000, 0.0000, 0.0000);
  80. CreateObject(983, 1534.643799, -1641.364136, 13.230430, 0.0000, 0.0000, 0.0000);
  81. CreateObject(3399, 1570.471924, -1636.776245, 14.626546, 0.0000, 0.0000, 0.0000);
  82. CreateObject(3399, 1578.401001, -1646.111084, 21.473213, 0.0000, 0.0000, 270.0000);
  83. CreateObject(3399, 1578.447266, -1656.075684, 25.123219, 0.0000, 0.0000, 270.0000);
  84. CreateObject(974, 1549.556641, -1615.839111, 15.049620, 0.0000, 0.0000, 90.2409);
  85. CreateObject(974, 1580.959229, -1638.011597, 15.056435, 0.0000, 0.0000, 0.2409);
  86. CreateObject(983, 1553.518188, -1654.025635, 28.079163, 0.0000, 0.0000, 0.0000);
  87. CreateObject(983, 1553.500977, -1660.350098, 28.079163, 0.0000, 0.0000, 0.0000);
  88. CreateObject(983, 1553.506592, -1666.745239, 28.079163, 0.0000, 0.0000, 0.0000);
  89. CreateObject(983, 1553.485474, -1669.583496, 28.079163, 0.0000, 0.0000, 0.0000);
  90. CreateObject(983, 1554.401245, -1675.690308, 28.079006, 0.0000, 0.0000, 0.0000);
  91. CreateObject(983, 1553.549438, -1681.566895, 28.079144, 0.0000, 0.0000, 0.0000);
  92. CreateObject(983, 1553.551392, -1687.954956, 28.079144, 0.0000, 0.0000, 0.0000);
  93. CreateObject(983, 1553.557617, -1694.314087, 28.079144, 0.0000, 0.0000, 0.0000);
  94. CreateObject(983, 1553.547363, -1697.103394, 28.079144, 0.0000, 0.0000, 0.0000);
  95. CreateObject(632, 1554.670166, -1678.554443, 27.842621, 0.0000, 0.0000, 0.0000);
  96. CreateObject(632, 1554.833130, -1672.582886, 27.842640, 0.0000, 0.0000, 0.0000);
  97. CreateObject(14467, 1565.045654, -1675.590454, 62.821110, 0.0000, 0.0000, 309.2932);
  98. CreateObject(3471, 1547.128906, -1679.718140, 13.835627, 0.0000, 0.0000, 180.0000);
  99. CreateObject(3471, 1547.577148, -1671.769897, 13.842566, 0.0000, 0.0000, 180.0000);
  100.  
  101. // Cop Cars
  102. AddStaticVehicle(497,1549.7950,-1642.6304,28.5808,88.1836,0,1); // Copheli 1
  103. AddStaticVehicle(497,1549.4019,-1708.2208,28.5706,88.8487,0,1); // Copheli 2
  104. AddStaticVehicle(596,1584.9268,-1671.9048,5.6148,270.1233,0,1); // Copcar 1
  105. AddStaticVehicle(596,1585.0457,-1667.6448,5.6136,270.0458,0,1); // Copcar 2
  106. AddStaticVehicle(596,1601.3380,-1683.8732,5.6118,89.9167,0,1); // Copcar 3
  107. AddStaticVehicle(596,1601.1550,-1688.1687,5.6120,90.3515,0,1); // Copcar 4
  108. AddStaticVehicle(596,1601.2911,-1692.0027,5.6112,91.6256,0,1); // Copcar 5
  109. AddStaticVehicle(596,1601.2628,-1695.8484,5.6111,89.8441,0,1); // Copcar 6
  110. AddStaticVehicle(596,1601.3406,-1700.1377,5.6118,88.6769,0,1); // Copcar 7
  111. AddStaticVehicle(596,1601.4816,-1704.2681,5.6115,89.7715,0,1); // Copcar 8
  112. AddStaticVehicle(596,1595.5527,-1710.2303,5.6138,1.8645,0,1); // Copcar 9
  113. AddStaticVehicle(601,1591.3116,-1710.8987,5.6492,1.2247,1,1); // Copcar 10
  114. AddStaticVehicle(601,1587.1545,-1711.0354,5.6494,359.3104,1,1); // Copcar 11
  115. AddStaticVehicle(599,1583.5120,-1710.4966,6.0794,358.5814,0,1); // Copcar 12
  116. AddStaticVehicle(599,1578.7108,-1710.5161,6.0802,2.2155,0,1); // Copcar 13
  117. AddStaticVehicle(596,1574.5002,-1710.4318,5.6122,0.3688,0,1); // Copcar 14
  118. AddStaticVehicle(490,1566.5409,-1710.5112,6.0178,357.8192,0,0); // Copcar 15
  119. AddStaticVehicle(490,1563.3645,-1710.3816,6.0175,357.3836,0,0); // Copcar 16
  120. AddStaticVehicle(427,1527.0212,-1644.8854,6.0225,180.1303,0,1); // CopEnforcer 1
  121. AddStaticVehicle(427,1530.7346,-1644.7993,6.0225,178.1441,0,1); // CopEnforcer 2
  122. AddStaticVehicle(427,1534.6318,-1645.0045,6.0223,179.6916,0,1); // CopEnforcer 3
  123. AddStaticVehicle(427,1538.7922,-1645.0890,6.0226,179.3058,0,1); // CopEnforcer 4
  124. AddStaticVehicle(596,1545.7338,-1650.9908,5.6117,89.7984,0,1); // Copcar 17
  125. AddStaticVehicle(596,1545.5020,-1654.9030,5.6111,88.3039,0,1); // Copcar 18
  126. AddStaticVehicle(596,1545.5504,-1659.2001,5.6115,89.4240,0,1); // Copcar 19
  127. AddStaticVehicle(596,1545.4333,-1663.5536,5.6117,89.7536,0,1); // Copcar 20
  128.  
  129.  
  130. return 1;
  131. }
  132.  
  133. public OnGameModeExit()
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerRequestClass(playerid, classid)
  139. {
  140. SetPlayerPos(playerid, 1535.1841, -1659.9615, 13.5469);
  141. SetPlayerCameraPos(playerid, 1512.5128, -1670.9298, 14.0469);
  142. SetPlayerCameraLookAt(playerid, 1535.1841, -1659.9615, 13.5469);
  143. return 1;
  144. }
  145.  
  146. public OnPlayerRequestSpawn(playerid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerConnect(playerid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerDisconnect(playerid, reason)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnPlayerSpawn(playerid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerDeath(playerid, killerid, reason)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnVehicleSpawn(vehicleid)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnVehicleDeath(vehicleid, killerid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerText(playerid, text[])
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerCommandText(playerid, cmdtext[])
  187. {
  188. if (strcmp("/kill", cmdtext, true, 10) == 0)
  189. {
  190. SetPlayerHealth(playerid, 0);
  191. return 1;
  192. }
  193. return 0;
  194. }
  195.  
  196. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerExitVehicle(playerid, vehicleid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerStateChange(playerid, newstate, oldstate)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerEnterCheckpoint(playerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerLeaveCheckpoint(playerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnPlayerEnterRaceCheckpoint(playerid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerLeaveRaceCheckpoint(playerid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnRconCommand(cmd[])
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnObjectMoved(objectid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnPlayerObjectMoved(playerid, objectid)
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnPlayerPickUpPickup(playerid, pickupid)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnPlayerSelectedMenuRow(playerid, row)
  252. {
  253. return 1;
  254. }
  255.  
  256. public OnPlayerExitedMenu(playerid)
  257. {
  258. return 1;
  259. }
  260.  
  261.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement