Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local userid_to_entindex = client.userid_to_entindex
- local get_player_name = entity.get_player_name
- local get_local_player = entity.get_local_player
- local console_cmd = client.exec
- local BoostTrustFactor = ui.new_checkbox("MISC", "Miscellaneous", "Boost Trust Factor")
- local died = {
- 'Nice Shot!',
- 'Good Play',
- 'Wow that was a good play, can I add you to Que?',
- 'Can we Que up later? you are really good',
- 'That was a great shot WOW.',
- 'Holy you are really good at this game',
- 'That was one of the nicest shots I have seen in a long time.',
- 'Good shot dude.',
- 'Wow That.. That was... WOW. Nice shot bro.',
- 'You are a really good player dude.',
- 'Please add me so we can Que, I really need a good player like you on my team!',
- 'SHEEEESH, that was insane bro. Good Job!',
- 'Nice play',
- 'Woah, I was not expecting you to be that good. Haha. Nice job',
- 'That was pretty crazy, you are a really good player'
- }
- local round1 = {
- 'Good luck this round',
- 'Have a good round everyone',
- 'last round was fun, good luck this one!',
- 'Add me so we can que later, good luck!',
- 'Good luck!',
- 'Much Luck',
- 'Have fun'
- }
- local round2 = {
- 'Good Round',
- 'Good Plays everyone',
- 'Keep it up, that was a good round',
- 'Nice shots everyone',
- 'That was a fun round!',
- 'You guys are pretty good, that was a challenging round for me!',
- 'Good Round Brothers',
- 'Woah nice CLUTCH bro. WelcomeToTheClutch.jpeg'
- }
- local function on_player_death(e)
- local victim_id, attacker_id = e.userid, e.attacker
- if victim_id == nil or attacker_id == nil then
- return
- end
- local victim = userid_to_entindex(victim_id)
- local attacker = userid_to_entindex(attacker_id)
- if victim == get_local_player() then
- if ui.get(BoostTrustFactor) then
- console_cmd('say '..died[client.random_int(1, #died)])
- end
- end
- end
- local function on_round_start(e)
- if ui.get(BoostTrustFactor) then
- console_cmd('say '..round1[client.random_int(1, #round1)])
- end
- end
- local function on_round_end(e)
- if ui.get(BoostTrustFactor) then
- console_cmd('say '..round2[client.random_int(1, #round2)])
- end
- end
- client.set_event_callback("player_death", on_player_death)
- client.set_event_callback("round_start", on_round_start)
- client.set_event_callback("round_end", on_round_end)
- My Sub ends tomorrow and I cant afford a new one right now, so don't expect any updates for a while. Sorry.
- **Shout out NmChris for help with tables smile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement