Guest User

Los Santos Cops VS Killers v1.0

a guest
Feb 12th, 2012
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.00 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. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Los Santos Cops VS Killers");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. //COLORS
  32.  
  33.  
  34. #define COLOR_GREY 0xAFAFAFAA
  35. #define COLOR_GREEN 0x33AA33AA
  36. #define COLOR_BRIGHTRED 0xFF0000AA
  37. #define COLOR_YELLOW 0xFFFF00AA
  38. #define COLOR_PINK 0xFF66FFAA
  39. #define COLOR_BLUE 0x3A47DEFF
  40. #define COLOR_TAN 0xBDB76BAA
  41. #define COLOR_PURPLE 0x800080AA
  42. #define COLOR_WHITE 0xFFFFFFAA
  43. #define COLOR_LIGHTBLUE 0x33CCFFAA
  44. #define COLOR_ORANGE 0xFF9900AA
  45. #define COLOR_INDIGO 0x4B00B0AA
  46. #define COLOR_BLACK 0x00000000
  47. #define COLOR_DARKGREY 0x696969FF
  48.  
  49. #endif
  50.  
  51. public OnGameModeInit()
  52. {
  53. //Misc
  54. SetGameModeText("Los Santos Cops VS Killers");
  55. //Classes
  56. AddPlayerClass(286,1522.9276,-806.6693,72.1682,93.1117,0,0,0,0,0,0); //FBI
  57. AddPlayerClass(269,1278.1876,-777.6194,95.9614,91.0016,0,0,0,0,0,0); // Killer
  58. //CARS
  59. AddStaticVehicle(599,1528.8624,-821.0977,70.6679,267.0792,0,1); // Country P.C
  60. AddStaticVehicle(598,1509.1919,-821.0330,69.4461,354.0035,0,1); // L.V P.C
  61. AddStaticVehicle(597,1507.7972,-799.9228,73.2553,2.2875,0,1); // SF P.C
  62. AddStaticVehicle(596,1529.4911,-795.9178,72.8769,270.2912,0,1); // LS P.C
  63. AddStaticVehicle(490,1521.2183,-787.4810,76.4304,15.3791,0,0); // FBI Rancher
  64. AddStaticVehicle(497,1544.2968,-801.2972,77.9650,87.4504,0,1); // FBI Heli
  65. AddStaticVehicle(488,1539.2729,-814.2987,77.1885,89.9949,2,29); // FBI Heli2
  66. AddStaticVehicle(487,1291.6603,-788.3265,96.6337,180.7966,26,57); // Killer Heli
  67. AddStaticVehicle(489,1247.7705,-782.0987,90.7541,4.5601,120,123); // Killer Rancher
  68. AddStaticVehicle(480,1230.9784,-766.2958,91.7082,249.5746,46,46); // killer speedo
  69. AddStaticVehicle(477,1265.2360,-743.2024,94.4696,205.6282,121,1); // Killer V.I.P Car
  70. AddStaticVehicle(469,1305.8496,-756.1826,93.2322,235.0564,1,3); // killer Sparrow
  71. AddStaticVehicle(405,970.2335,-1098.7864,23.7525,173.2869,91,1); // sentino
  72. AddStaticVehicle(445,1336.0602,-873.9500,39.3082,274.1470,39,39); // BluePrints
  73. AddStaticVehicle(429,1514.9767,-711.4958,89.8046,182.8026,14,14); // speedo
  74. AddStaticVehicle(451,1378.6559,-1029.1587,26.3195,356.8382,36,36); // Nighty
  75. AddStaticVehicle(421,1529.7847,-819.9590,70.7682,90.7298,30,1); // washington
  76. AddStaticVehicle(407,890.3480,-1133.4698,24.0577,93.6723,3,1); // firetruck
  77. AddStaticVehicle(409,734.8076,-1167.5024,20.7932,313.5387,1,1); // lamogin
  78. AddStaticVehicle(411,662.3279,-1205.4426,18.1015,307.8907,116,1); // dualcar
  79. AddStaticVehicle(415,761.5759,-1024.1169,23.7590,175.8848,40,1); // cheetah
  80. AddStaticVehicle(416,851.6962,-989.5425,33.5246,12.4435,1,3); // ambulance
  81. AddStaticVehicle(417,821.8243,-1065.3203,28.2951,112.8004,0,0); // chopper
  82. AddStaticVehicle(418,819.1041,-977.2542,36.6637,111.0176,119,119); // oldcar
  83. AddStaticVehicle(421,741.4971,-897.7982,43.5036,59.9498,25,1); // V.I.Pcar
  84. AddStaticVehicle(420,706.2866,-818.3467,40.6664,18.0807,6,1); // taxi
  85. AddStaticVehicle(422,666.8964,-712.5101,16.3754,37.9785,111,31); // bobcat
  86. AddStaticVehicle(423,766.8959,-1164.0530,22.6072,118.3297,1,5); // ice cream truck
  87. AddStaticVehicle(425,939.6213,-1071.7644,31.8177,174.1248,43,0); // hunter
  88. AddStaticVehicle(426,932.2893,-1112.6602,23.9004,0.3122,7,7); // dullcar
  89. AddStaticVehicle(427,1030.9536,-1123.1677,24.0182,354.3994,0,1); // SwatVan
  90. AddStaticVehicle(429,1067.7219,-1134.1156,23.5078,271.9777,1,2); // speedy
  91. AddStaticVehicle(431,1070.0547,-1173.8448,23.3543,13.0680,47,74); // Bus
  92. AddStaticVehicle(432,1207.1306,-1068.3936,29.2519,180.5274,43,0); // rhino
  93. AddStaticVehicle(433,1220.9745,-1068.6124,29.6594,177.6321,43,0); // ArmyVan
  94. AddStaticVehicle(445,1208.6891,-1171.0100,22.7234,179.2157,39,39); // MasterCar
  95. AddStaticVehicle(447,1261.7057,-1259.2803,13.1898,266.5711,75,2); // Sparrow
  96. AddStaticVehicle(451,1273.6678,-1340.5182,13.0568,94.5183,46,46); // RockCar
  97. AddStaticVehicle(458,1273.5133,-1337.7694,13.2263,91.6875,113,1); // tweety
  98. AddStaticVehicle(459,1266.8473,-1318.5082,13.5481,3.5726,57,57); // van
  99. AddStaticVehicle(461,1266.8015,-1326.9030,13.0841,99.4259,61,1); // NRG 500
  100. AddStaticVehicle(463,1266.8225,-1322.8099,13.0424,86.5982,19,19); // herohonda
  101. AddStaticVehicle(468,1267.0865,-1324.6133,13.1688,86.5616,3,3); // mountainbike
  102.  
  103. return 1;
  104. }
  105.  
  106. public OnGameModeExit()
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerRequestClass(playerid, classid)
  112. {
  113. SetPlayerPos(playerid, 1522.9276,-806.6693,72.1682);
  114. SetPlayerFacingAngle(playerid, 1117);
  115. SetPlayerCameraPos(playerid, 1510.0197,-802.2181,73.0097);
  116. SetPlayerCameraLookAt(playerid, 1522.9276,-806.6693,72.1682);
  117. SetPlayerPos(playerid, 1278.7319,-777.8597,95.9612);
  118. SetPlayerFacingAngle(playerid,4715);
  119. SetPlayerCameraPos(playerid,1269.5709,-778.3959,95.9633);
  120. SetPlayerCameraLookAt(playerid,278.7319,-777.8597,95.9612);
  121. return 1;
  122. }
  123.  
  124. public OnPlayerConnect(playerid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerDisconnect(playerid, reason)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerSpawn(playerid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerDeath(playerid, killerid, reason)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnVehicleSpawn(vehicleid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnVehicleDeath(vehicleid, killerid)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerText(playerid, text[])
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerCommandText(playerid, cmdtext[])
  160. {
  161. if (strcmp("/kill", cmdtext, true, 10) == 0)
  162. {
  163. SetPlayerHealth(playerid, 0.0);
  164. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)YOU HAVE COMMITED SUICIDE.!");
  165. return 1;
  166. }
  167. if (strcmp("/help", cmdtext, true, 10) == 0)
  168. {
  169. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)Welcome To Los Santos Gangwar TDM Server.!");
  170. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)Hope You Enjoy The Game It's All About Killing Try /cmds /rules.!");
  171. return 1;
  172. }
  173. if (strcmp("/rules", cmdtext, true, 10) == 0)
  174. {
  175. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Do not car park.!");
  176. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Do not kill with heli blade.!");
  177. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.Do not kill players with armoured vehicle in spawn position.!");
  178. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.Do not disrespect players.!");
  179. SendClientMessage(playerid, COLOR_ORANGE, "(INFO)5.Treat Everyone As Your Own Brother.!");
  180.  
  181. return 1;
  182. }
  183. if (strcmp("/banrules", cmdtext, true, 10) == 0)
  184. {
  185. SendClientMessage(playerid, COLOR_YELLOW, "(INFO)1.Do not disrespect player it could cause immediate ban.!");
  186. SendClientMessage(playerid, COLOR_YELLOW, "(INFO)2.Do not cheat it will cause you ban without warnings.!");
  187. SendClientMessage(playerid, COLOR_YELLOW, "(INFO)3.Massive spawn killing will result ban after 2 kicks.!");
  188. SendClientMessage(playerid, COLOR_YELLOW, "(INFO)4.Do not raise your score in anyways very early that will also cause ban.!");
  189.  
  190.  
  191. return 1;
  192. }
  193. if (strcmp("/cmds", cmdtext, true, 10) == 0)
  194. {
  195. SendClientMessage(playerid, COLOR_GREEN, "(INFO)/banrules,/help,/kill.!");
  196.  
  197.  
  198. return 1;
  199. }
  200.  
  201. return 0;
  202. }
  203.  
  204. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnPlayerExitVehicle(playerid, vehicleid)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerStateChange(playerid, newstate, oldstate)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerEnterCheckpoint(playerid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnPlayerLeaveCheckpoint(playerid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnPlayerEnterRaceCheckpoint(playerid)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnPlayerLeaveRaceCheckpoint(playerid)
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnRconCommand(cmd[])
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerRequestSpawn(playerid)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnObjectMoved(objectid)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnPlayerObjectMoved(playerid, objectid)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnPlayerPickUpPickup(playerid, pickupid)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnVehicleMod(playerid, vehicleid, componentid)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  275. {
  276. return 1;
  277. }
  278.  
  279. public OnPlayerSelectedMenuRow(playerid, row)
  280. {
  281. return 1;
  282. }
  283.  
  284. public OnPlayerExitedMenu(playerid)
  285. {
  286. return 1;
  287. }
  288.  
  289. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  290. {
  291. return 1;
  292. }
  293.  
  294. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  295. {
  296. return 1;
  297. }
  298.  
  299. public OnRconLoginAttempt(ip[], password[], success)
  300. {
  301. return 1;
  302. }
  303.  
  304. public OnPlayerUpdate(playerid)
  305. {
  306. return 1;
  307. }
  308.  
  309. public OnPlayerStreamIn(playerid, forplayerid)
  310. {
  311. return 1;
  312. }
  313.  
  314. public OnPlayerStreamOut(playerid, forplayerid)
  315. {
  316. return 1;
  317. }
  318.  
  319. public OnVehicleStreamIn(vehicleid, forplayerid)
  320. {
  321. return 1;
  322. }
  323.  
  324. public OnVehicleStreamOut(vehicleid, forplayerid)
  325. {
  326. return 1;
  327. }
  328.  
  329. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  330. {
  331. return 1;
  332. }
  333.  
  334. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  335. {
  336. return 1;
  337. }
Advertisement
Add Comment
Please, Sign In to add comment