Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. local userid_to_entindex = client.userid_to_entindex
  2. local get_player_name = entity.get_player_name
  3. local get_local_player = entity.get_local_player
  4. local is_enemy = entity.is_enemy
  5. local console_cmd = client.exec
  6. local ui_get = ui.get
  7. local trashtalk = ui.new_checkbox("MISC", "Settings", "Trashtalk")
  8.  
  9. local baimtable = {
  10. 'اي لايك بودي ايم',
  11. 'سير اتسبح ب ماي ورد',
  12. 'حليلك',
  13. 'يلا ريجكويت',
  14. 'مسكين ',
  15. 'ليش في واحد يلعب لجت؟ تحريت هني هاك ضد هاك',
  16. 'حليلك,شغل انتي ايم',
  17. 'اوووففف'
  18. }
  19.  
  20. local hstable = {
  21. 'اوففف سو ريفند حق اييوير $$',
  22. '˜”°•.˜”°• 1 •°”˜.•°”˜',
  23. 'ون تاب',
  24. 'ون',
  25. 'عليك كونفق,للبيع؟',
  26. 'عطيتك بكس بلغلط'
  27. }
  28.  
  29. local deathtable = {
  30. 'عليك حض',
  31. 'كم خذلك لين ما تعلمت ال ون واي',
  32. 'بس طول القيم يالس ف ون واي',
  33. 'انته معاق؟ شرايك تتحرك',
  34. 'يارب تركب كيبورد',
  35. 'جرب تتحرك',
  36. 'بن عمك اذا جتلتني بعد مره ,لو انته ريال تعال فجيره'
  37. }
  38.  
  39. local function get_table_length(data)
  40. if type(data) ~= 'table' then
  41. return 0
  42. end
  43. local count = 0
  44. for _ in pairs(data) do
  45. count = count + 1
  46. end
  47. return count
  48. end
  49.  
  50. local num_quotes_baim = get_table_length(baimtable)
  51. local num_quotes_hs = get_table_length(hstable)
  52. local num_quotes_death = get_table_length(deathtable)
  53.  
  54. local function on_player_death(e)
  55. if not ui_get(trashtalk) then
  56. return
  57. end
  58. local victim_userid, attacker_userid = e.userid, e.attacker
  59. if victim_userid == nil or attacker_userid == nil then
  60. return
  61. end
  62.  
  63. local victim_entindex = userid_to_entindex(victim_userid)
  64. local attacker_entindex = userid_to_entindex(attacker_userid)
  65. if attacker_entindex == get_local_player() and is_enemy(victim_entindex) then
  66. if e.headshot then
  67. local commandhs = 'say ' .. hstable[math.random(num_quotes_hs)]
  68. console_cmd(commandhs)
  69. else
  70. local commandbaim = 'say ' .. baimtable[math.random(num_quotes_baim)]
  71. console_cmd(commandbaim)
  72. end
  73. end
  74. if victim_entindex == get_local_player() and attacker_entindex ~= get_local_player() then
  75. local commanddeath = 'say ' .. deathtable[math.random(num_quotes_death)]
  76. console_cmd(commanddeath)
  77. elseif victim_entindex == get_local_player() and attacker_entindex == get_local_player() then
  78. console_cmd("say $OUTH$IDE$UICIDE")
  79. end
  80. end
  81.  
  82. client.set_event_callback("player_death", on_player_death)
  83. Last edited by Bo 7mdan/Fq (2018-9-18 5:19 pm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement