Advertisement
Guest User

Untitled

a guest
Sep 13th, 2011
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. //---Variables---//
  4. new PlayerTotalKills[MAX_PLAYERS] = 0;
  5. new string[128];
  6.  
  7. public OnFilterScriptInit() {
  8. return 1;
  9. }
  10.  
  11. public OnPlayerDeath(playerid, killerid, reason) {
  12. new Name[128];
  13. GetPlayerName(killerid, Name, sizeof(Name));
  14. PlayerTotalKills[killerid] = PlayerTotalKills[killerid] +1;
  15. PlayerTotalKills[playerid] = 0;
  16. if(PlayerTotalKills[killerid] == 1) {
  17. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/firstblood.mp3");
  18. format(string, sizeof(string), "~r~%s FIRST BLOOD", Name);
  19. GameTextForAll(string, 6000,3);
  20. }
  21. if(PlayerTotalKills[killerid] == 2) {
  22. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/doublekill.mp3");
  23. format(string, sizeof(string), "~r~%s DOUBLE KILL.", Name);
  24. GameTextForAll(string, 6000,3);
  25. return 1;
  26. }
  27. if(PlayerTotalKills[killerid] == 3) {
  28. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/killingspree.mp3");
  29. format(string, sizeof(string), "~r~%s KILLING SPREE", Name);
  30. GameTextForAll(string, 6000,3);
  31. return 1;
  32. }
  33. if(PlayerTotalKills[killerid] == 4) {
  34. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/dominating.mp3");
  35. format(string, sizeof(string), "~r~%s IS DOMINATING", Name);
  36. GameTextForAll(string, 6000,3);
  37. return 1;
  38. }
  39. if(PlayerTotalKills[killerid] == 5) {
  40. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/triplekill.mp3");
  41. format(string, sizeof(string), "~r~%s TRIPLE KILL", Name);
  42. GameTextForAll(string, 6000,3);
  43. return 1;
  44. }
  45. if(PlayerTotalKills[killerid] == 7) {
  46. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/monsterkill.mp3");
  47. format(string, sizeof(string), "~r~%s MONSTER KILL", Name);
  48. GameTextForAll(string, 6000,3);
  49. return 1;
  50. }
  51. if(PlayerTotalKills[killerid] == 9) {
  52. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/wickedsick.mp3");
  53. format(string, sizeof(string), "~r~%s WICKED SICK", Name);
  54. GameTextForAll(string, 6000,3);
  55. return 1;
  56. }
  57. if(PlayerTotalKills[killerid] == 11) {
  58. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ludicrouskill.mp3");
  59. format(string, sizeof(string), "~r~%s LUDICROUS KILL", Name);
  60. GameTextForAll(string, 6000,3);
  61. return 1;
  62. }
  63. if(PlayerTotalKills[killerid] == 13) {
  64. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ultrakill.mp3");
  65. format(string, sizeof(string), "~r~%s ULTRA KILL", Name);
  66. GameTextForAll(string, 6000,3);
  67. return 1;
  68. }
  69. if(PlayerTotalKills[killerid] == 15) {
  70. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/unstoppable.mp3");
  71. format(string, sizeof(string), "~r~%s IS UNSTOPPABLE", Name);
  72. GameTextForAll(string, 6000,3);
  73. return 1;
  74. }
  75. return 1;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement