Advertisement
Guest User

Untitled

a guest
May 25th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 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 console_cmd = client.exec
  5.  
  6. local BoostTrustFactor = ui.new_checkbox("MISC", "Miscellaneous", "Boost Trust Factor")
  7.  
  8. local died = {
  9. 'Nice Shot!',
  10. 'Good Play',
  11. 'Wow that was a good play, can I add you to Que?',
  12. 'Can we Que up later? you are really good',
  13. 'That was a great shot WOW.',
  14. 'Holy you are really good at this game',
  15. 'That was one of the nicest shots I have seen in a long time.',
  16. 'Good shot dude.',
  17. 'Wow That.. That was... WOW. Nice shot bro.',
  18. 'You are a really good player dude.',
  19. 'Please add me so we can Que, I really need a good player like you on my team!',
  20. 'SHEEEESH, that was insane bro. Good Job!',
  21. 'Nice play',
  22. 'Woah, I was not expecting you to be that good. Haha. Nice job',
  23. 'That was pretty crazy, you are a really good player'
  24. }
  25.  
  26. local round1 = {
  27. 'Good luck this round',
  28. 'Have a good round everyone',
  29. 'last round was fun, good luck this one!',
  30. 'Add me so we can que later, good luck!',
  31. 'Good luck!',
  32. 'Much Luck',
  33. 'Have fun'
  34. }
  35.  
  36. local round2 = {
  37. 'Good Round',
  38. 'Good Plays everyone',
  39. 'Keep it up, that was a good round',
  40. 'Nice shots everyone',
  41. 'That was a fun round!',
  42. 'You guys are pretty good, that was a challenging round for me!',
  43. 'Good Round Brothers',
  44. 'Woah nice CLUTCH bro. WelcomeToTheClutch.jpeg'
  45. }
  46.  
  47. local function on_player_death(e)
  48. local victim_id, attacker_id = e.userid, e.attacker
  49.  
  50. if victim_id == nil or attacker_id == nil then
  51. return
  52. end
  53.  
  54. local victim = userid_to_entindex(victim_id)
  55. local attacker = userid_to_entindex(attacker_id)
  56.  
  57. if victim == get_local_player() then
  58. if ui.get(BoostTrustFactor) then
  59. console_cmd('say '..died[client.random_int(1, #died)])
  60. end
  61. end
  62. end
  63.  
  64. local function on_round_start(e)
  65. if ui.get(BoostTrustFactor) then
  66. console_cmd('say '..round1[client.random_int(1, #round1)])
  67. end
  68. end
  69.  
  70. local function on_round_end(e)
  71. if ui.get(BoostTrustFactor) then
  72. console_cmd('say '..round2[client.random_int(1, #round2)])
  73. end
  74. end
  75.  
  76. client.set_event_callback("player_death", on_player_death)
  77. client.set_event_callback("round_start", on_round_start)
  78. client.set_event_callback("round_end", on_round_end)
  79. My Sub ends tomorrow and I cant afford a new one right now, so don't expect any updates for a while. Sorry.
  80.  
  81. **Shout out NmChris for help with tables smile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement