Advertisement
Guest User

Untitled

a guest
Feb 21st, 2013
965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.53 KB | None | 0 0
  1. /*
  2. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. This FilterScript Created By Windrush
  4. Simple Kill Streak With Sound
  5. Windrush Only a kid 12 years old
  6. If You Want Remove This Credits
  7. Remove It
  8. JOIN US!!
  9. 64.251.10.8:7780
  10. http://forum.sa-mp.com/showthread.php?t=378599
  11. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  12. */
  13. #include <a_samp>
  14. //=============================COLOURS==========================================
  15. #define COLOR_RED 0xFF0000AA
  16. #define COLOR_GREY 0xAFAFAFAA
  17. #define COLOR_GREEN 0x33AA33AA
  18. #define COLOR_BRIGHTRED 0xFF0000AA
  19. #define COLOR_YELLOW 0xFFFF00AA
  20. #define COLOR_PINK 0xFF66FFAA
  21. #define COLOR_BLUE 0x3A47DEFF
  22. #define COLOR_TAN 0xBDB76BAA
  23. #define COLOR_PURPLE 0x800080AA
  24. #define COLOR_WHITE 0xFFFFFFAA
  25. #define COLOR_LIGHTBLUE 0x33CCFFAA
  26. #define COLOR_ORANGE 0xFF9900AA
  27. #define COLOR_INDIGO 0x4B00B0AA
  28. #define COLOR_BLACK 0x00000000
  29. #define COLOR_DARKGREY 0x696969FF
  30. #define C_CYAN 0x00FFFFFF
  31. #define C_LBLUE 0x33CCFFFF
  32. //==============================================================================
  33. //-------------------------------CONFIGURATION----------------------------------
  34. //==============================================================================
  35. //----------------------------------Money---------------------------------------
  36. #define money1 1000 //If Player First Kill Money Reward
  37. #define money2 1200 //If Player Second Kill Money Reward
  38. #define money3 1400 //If Player Third Kill Money Reward
  39. #define money4 1600 //If Player Fourth Kill Money Reward
  40. #define money5 1800 //If Player Fifth Kill Money Reward
  41. #define money6 2000 //If Player sixth Kill Money Reward
  42. #define money7 2200 //If Player Seventh Kill Money Reward
  43. #define money8 2400 //If Player Eight Kill Money Reward
  44. #define money9 2600 //If Player nine Kill Money Reward
  45. #define money10 2800 //If Player ten Kill Money Reward
  46. #define money11 3000 //If Player eleven Kill Money Reward
  47. #define money12 3200 //If Player twelve Kill Money Reward
  48. #define money13 3400 //If Player thirteen Kill Money Reward
  49. #define money14 3600 //If Player fourtheen Kill Money Reward
  50. #define money15 3800 //If Player fiftheen Kill Money Reward
  51. #define money16 4000 //If Player Sixtheen Kill Money Reward
  52. #define money17 4500 //If Player Seventeen Kill Money Reward
  53. #define money18 5000 //If Player Eighteen Kill Money Reward
  54. #define money19 7500 //If Player Nineteen Kill Money Reward
  55. #define money20 10000 //If Player Twenty Up Kill Money Reward
  56. //---------------------------------Scores---------------------------------------
  57. #define score1 1 //If Player First Kill Score Reward
  58. #define score2 1 //If Player Second Kill Score Reward
  59. #define score3 1 //If Player Third Kill Score Reward
  60. #define score4 1 //If Player Fourth Kill Score Reward
  61. #define score5 2 //If Player Fifth Kill Score Reward
  62. #define score6 2 //If Player Six Kill Score Reward
  63. #define score7 2 //If Player Seven Kill Score Reward
  64. #define score8 2 //If Player eight Kill Score Reward
  65. #define score9 2 //If Player Nine Kill Score Reward
  66. #define score10 3 //If Player ten Kill Score Reward
  67. #define score11 3 //If Player eleven Kill Score Reward
  68. #define score12 3 //If Player twelve Kill Score Reward
  69. #define score13 3 //If Player thirteen Kill Score Reward
  70. #define score14 3 //If Player fourtheen Kill Score Reward
  71. #define score15 4 //If Player fiftheen Kill Score Reward
  72. #define score16 4 //If Player Sixtheen Kill Score Reward
  73. #define score17 5 //If Player Seventeen Kill Score Reward
  74. #define score18 5 //If Player Eighteen Kill Score Reward
  75. #define score19 8 //If Player Nineteen Kill Score Reward
  76. #define score20 10 //If Player Twenty Up Kill Score Reward
  77. //==============================================================================
  78. //-------------------------------END OF CONFIG----------------------------------
  79. //==============================================================================
  80.  
  81.  
  82. new PlayerTotalKills[MAX_PLAYERS] = 20;
  83. new string[50];
  84.  
  85. public OnGameModeInit()
  86. {
  87. print("\n==============================LOADED=================================");
  88. print("---------------------------------------------------------------------");
  89. print("Windrush Kill Streak System |Version: 3.0|[Updated: 2/21/13]");
  90. print("---------------------------------------------------------------------");
  91. print("================================LOADED===============================\n");
  92. return 1;
  93. }
  94. public OnPlayerDeath(playerid, killerid, reason)
  95. {
  96. new Name[128];
  97. GetPlayerName(killerid, Name, sizeof(Name));
  98. PlayerTotalKills[killerid] = PlayerTotalKills[killerid] +1;
  99. PlayerTotalKills[killerid] = 0;
  100.  
  101. if(PlayerTotalKills[killerid] == 1)
  102. {
  103. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351113.mp3");
  104.  
  105. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~w~Just Drew ~R~FIRST BLOOD", Name);
  106. GameTextForPlayer(killerid,string, 6000,3);
  107.  
  108. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money1, score1);
  109. SendClientMessage(killerid, C_LBLUE, string);
  110.  
  111. GivePlayerMoney(killerid, money1);
  112. GivePlayerScore(killerid, score1);
  113. return 1;
  114. }
  115.  
  116. if(PlayerTotalKills[killerid] == 2)
  117. {
  118. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351108.mp3");
  119.  
  120. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~w~Just Drew ~B~DOUBLE KILL.", Name);
  121. GameTextForPlayer(killerid,string, 6000,3);
  122.  
  123. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money2, score2);
  124. SendClientMessage(killerid, C_LBLUE, string);
  125.  
  126. GivePlayerMoney(killerid, money2);
  127. GivePlayerScore(killerid, score2);
  128. return 1;
  129. }
  130.  
  131. if(PlayerTotalKills[killerid] == 3)
  132. {
  133. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351115.mp3");
  134.  
  135. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~w~Just Drew~g~TRIPLE KILL", Name);
  136. GameTextForPlayer(killerid,string, 6000,3);
  137.  
  138. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money3, score3);
  139. SendClientMessage(killerid, C_LBLUE, string);
  140.  
  141. GivePlayerMoney(killerid, money3);
  142. GivePlayerScore(killerid, score3);
  143. return 1;
  144. }
  145.  
  146. if(PlayerTotalKills[killerid] == 4)
  147. {
  148. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351114.mp3");
  149.  
  150. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~W~IS ~p~DOMINATING", Name);
  151. GameTextForPlayer(killerid,string, 6000,3);
  152.  
  153. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money4, score4);
  154. SendClientMessage(killerid, C_LBLUE, string);
  155.  
  156. GivePlayerMoney(killerid, money4);
  157. GivePlayerScore(killerid, score4);
  158. return 1;
  159. }
  160.  
  161. if(PlayerTotalKills[killerid] == 5)
  162. {
  163. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351111.mp3");
  164.  
  165. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~W~ has a ~P~MEGA KILL", Name);
  166. GameTextForPlayer(killerid,string, 6000,3);
  167.  
  168. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money5, score5);
  169. SendClientMessage(killerid, C_LBLUE, string);
  170.  
  171. GivePlayerMoney(killerid, money5);
  172. GivePlayerScore(killerid, score5);
  173. return 1;
  174. }
  175.  
  176. if(PlayerTotalKills[killerid] == 6)
  177. {
  178. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351116.mp3");
  179.  
  180. format(string, sizeof(string), "~~N~~N~~N~~N~~r~%s ~W~ Is ~P~UNSTOPPABLE", Name);
  181. GameTextForPlayer(killerid,string, 6000,3);
  182.  
  183. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money6, score6);
  184. SendClientMessage(killerid, C_LBLUE, string);
  185.  
  186. GivePlayerMoney(killerid, money6);
  187. GivePlayerScore(killerid, score6);
  188. return 1;
  189. }
  190.  
  191. if(PlayerTotalKills[killerid] == 7)
  192. {
  193. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351117.mp3");
  194.  
  195. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~W~ Is ~p~WICKED SICK", Name);
  196. GameTextForPlayer(killerid,string, 6000,3);
  197.  
  198. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money7, score7);
  199. SendClientMessage(killerid, C_LBLUE, string);
  200.  
  201. GivePlayerMoney(killerid, money7);
  202. GivePlayerScore(killerid, score7);
  203. return 1;
  204. }
  205.  
  206. if(PlayerTotalKills[killerid] == 8)
  207. {
  208. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351109.mp3");
  209.  
  210. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~W~ Has a ~p~MONSTERKILL", Name);
  211. GameTextForPlayer(killerid,string, 6000,3);
  212.  
  213. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money8, score8);
  214. SendClientMessage(killerid, C_LBLUE, string);
  215.  
  216. GivePlayerMoney(killerid, money8);
  217. GivePlayerScore(killerid, score8);
  218. return 1;
  219. }
  220.  
  221. if(PlayerTotalKills[killerid] == 9)
  222. {
  223. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351119.mp3");
  224.  
  225. format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~W~ Is ~p~GODLIKE", Name);
  226. GameTextForPlayer(killerid,string, 6000,3);
  227.  
  228. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money9, score9);
  229. SendClientMessage(killerid, C_LBLUE, string);
  230.  
  231. GivePlayerMoney(killerid, money9);
  232. GivePlayerScore(killerid, score9);
  233. return 1;
  234. }
  235.  
  236. if(PlayerTotalKills[killerid] == 10)
  237. {
  238. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  239.  
  240. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  241. GameTextForPlayer(killerid,string, 6000,3);
  242.  
  243. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money10, score10);
  244. SendClientMessage(killerid, C_LBLUE, string);
  245.  
  246. GivePlayerMoney(killerid, money10);
  247. GivePlayerScore(killerid, score10);
  248. return 1;
  249. }
  250.  
  251. if(PlayerTotalKills[killerid] == 11)
  252. {
  253. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  254.  
  255. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  256. GameTextForPlayer(killerid,string, 6000,3);
  257.  
  258. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money11, score11);
  259. SendClientMessage(killerid, C_LBLUE, string);
  260.  
  261. GivePlayerMoney(killerid, money11);
  262. GivePlayerScore(killerid, 2);
  263. return 1;
  264. }
  265.  
  266. if(PlayerTotalKills[killerid] == 12)
  267. {
  268. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  269.  
  270. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  271. GameTextForPlayer(killerid,string, 6000,3);
  272.  
  273. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money12, score12);
  274. SendClientMessage(killerid, C_LBLUE, string);
  275.  
  276. GivePlayerMoney(killerid, money12);
  277. GivePlayerScore(killerid, score12);
  278. return 1;
  279. }
  280.  
  281. if(PlayerTotalKills[killerid] == 13)
  282. {
  283. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  284.  
  285. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  286. GameTextForPlayer(killerid,string, 6000,3);
  287.  
  288. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money13, score13);
  289. SendClientMessage(killerid, C_LBLUE, string);
  290.  
  291. GivePlayerMoney(killerid, money13);
  292. GivePlayerScore(killerid, score13);
  293. return 1;
  294. }
  295.  
  296. if(PlayerTotalKills[killerid] == 14)
  297. {
  298. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  299.  
  300. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  301. GameTextForPlayer(killerid,string, 6000,3);
  302.  
  303. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money14, score14);
  304. SendClientMessage(killerid, C_LBLUE, string);
  305.  
  306. GivePlayerMoney(killerid, money14);
  307. GivePlayerScore(killerid, score14);
  308. return 1;
  309. }
  310.  
  311. if(PlayerTotalKills[killerid] == 15)
  312. {
  313. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  314.  
  315. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  316. GameTextForPlayer(killerid,string, 6000,3);
  317.  
  318. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money15, score15);
  319. SendClientMessage(killerid, C_LBLUE, string);
  320.  
  321. GivePlayerMoney(killerid, money15);
  322. GivePlayerScore(killerid, score15);
  323. return 1;
  324. }
  325.  
  326. if(PlayerTotalKills[killerid] == 16)
  327. {
  328. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  329.  
  330. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  331. GameTextForPlayer(killerid,string, 6000,3);
  332.  
  333. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money16, score16);
  334. SendClientMessage(killerid, C_LBLUE, string);
  335.  
  336. GivePlayerMoney(killerid, money16);
  337. GivePlayerScore(killerid, score16);
  338. return 1;
  339. }
  340.  
  341. if(PlayerTotalKills[killerid] == 17)
  342. {
  343. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  344.  
  345. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  346. GameTextForPlayer(killerid,string, 6000,3);
  347.  
  348. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money17, score17);
  349. SendClientMessage(killerid, C_LBLUE, string);
  350.  
  351. GivePlayerMoney(killerid, money17);
  352. GivePlayerScore(killerid, score17);
  353. return 1;
  354. }
  355.  
  356.  
  357. if(PlayerTotalKills[killerid] == 18)
  358. {
  359. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  360.  
  361. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  362. GameTextForPlayer(killerid,string, 6000,3);
  363.  
  364. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money18, score18);
  365. SendClientMessage(killerid, C_LBLUE, string);
  366.  
  367. GivePlayerMoney(killerid, money18);
  368. GivePlayerScore(killerid, score18);
  369. return 1;
  370. }
  371.  
  372. if(PlayerTotalKills[killerid] == 19)
  373. {
  374. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  375.  
  376. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  377. GameTextForPlayer(killerid,string, 6000,3);
  378.  
  379. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money19, score19);
  380. SendClientMessage(killerid, C_LBLUE, string);
  381.  
  382. GivePlayerMoney(killerid, money19);
  383. GivePlayerScore(killerid, score19);
  384. return 1;
  385. }
  386.  
  387. if(PlayerTotalKills[killerid] >= 20)
  388. {
  389. PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
  390.  
  391. format(string, sizeof(string), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
  392. GameTextForPlayer(killerid,string, 6000,3);
  393.  
  394. format(string, sizeof(string), "You get $%i and +%i score! (killing spree bonus)", money20, score20);
  395. SendClientMessage(killerid, C_LBLUE, string);
  396.  
  397. GivePlayerMoney(killerid, money20);
  398. GivePlayerScore(killerid, score20);
  399. return 1;
  400. }
  401. return 1;
  402. }
  403.  
  404. stock GivePlayerScore(playerid, score)
  405. {
  406. SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
  407. return 1;
  408. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement