Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. local KillList = {
  2. NiggerList = {
  3. DoubleKill = "1doublekill.wav";
  4. TripleKill = "2triplekill.wav";
  5. OverKill = "3overkill.wav";
  6. killtacular = "4killtacular.wav";
  7. killtrocity = "5killtrocity.wav";
  8. killimanjaro = "6killimanjaro.wav";
  9. killtastrophe = "7killtastrophe.wav";
  10. killpocalypse = "8killpocalypse.wav";
  11. killionaire = "9killionaire.wav";
  12. runningriot = "10runningriot.wav"
  13. };
  14. };
  15.  
  16.  
  17. local kills = 0
  18.  
  19. local function KillCount(event)
  20. if event:GetName() == "round_start" then
  21. kills = 0
  22. end
  23.  
  24. local local_player = client.GetLocalPlayerIndex( );
  25. local INDEX_Attacker = client.GetPlayerIndexByUserID( event:GetInt( 'attacker' ) );
  26.  
  27.  
  28. if event:GetName( ) == "player_death" then
  29. if INDEX_Attacker == local_player then
  30. kills = kills + 1
  31. end
  32.  
  33. end
  34. end
  35.  
  36. function PlaySound(abc)
  37. client.Command("playvol "..abc.." 1",true);
  38. end
  39.  
  40.  
  41. function Noob()
  42. local GetKillList = KillList.NiggerList
  43.  
  44. if kills == 2 then
  45. PlaySound(GetKillList.DoubleKill);
  46. end
  47.  
  48. if kills == 3 then
  49. PlaySound(GetKillList.TripleKill);
  50. end
  51.  
  52. if kills == 4 then
  53. PlaySound(GetKillList.OverKill)
  54. end
  55.  
  56. if kills == 5 then
  57. PlaySound(GetKillList.killtacular)
  58. end
  59.  
  60. if kills == 6 then
  61. PlaySound(GetKillList.killtrocity)
  62. end
  63.  
  64. if kills == 7 then
  65. PlaySound(GetKillList.killimanjaro)
  66. end
  67.  
  68. if kills == 8 then
  69. PlaySound(GetKillList.killtastrophe)
  70. end
  71.  
  72. if kills == 9 then
  73. PlaySound(GetKillList.killpocalypse)
  74. end
  75.  
  76. if kills == 10 then
  77. PlaySound(GetKillList.killionaire)
  78. end
  79.  
  80. if kills == 11 then
  81. PlaySound(GetKillList.runningriot)
  82. end
  83.  
  84. end
  85.  
  86.  
  87. client.AllowListener( "player_death" );
  88. client.AllowListener( 'player_hurt' );
  89. client.AllowListener( "client_disconnect" );
  90. client.AllowListener( "begin_new_match" );
  91.  
  92. callbacks.Register( "FireGameEvent", "KillCount", KillCount);
  93. callbacks.Register( "Draw", "Noob", Noob);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement