Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1.  
  2. local ui_get,ui_set,table_remove,table_insert, ui_set_visible, ui_set_callback, ui_reference, c_log, uid_to_entindex = ui.get,ui.set,table.remove,table.insert, ui.set_visible, ui.set_callback, ui.reference, client.log, client.userid_to_entindex
  3. local ui_new_checkbox, ui_new_slider, ui_new_hotkey = ui.new_checkbox, ui.new_slider, ui.new_hotkey
  4. local client_set_event_callback = client.set_event_callback
  5. local checkbox = ui_new_checkbox("RAGE", "Other", "Override minimum damage")
  6. local hotkey = ui_new_hotkey("RAGE", "Other", "Override minimum damage key")
  7. local hp_slider = ui_new_slider("RAGE", "Other", "Minimum damage", 0, 120, 0, true, "hp")
  8. local checkbox_idc = ui_new_checkbox("RAGE", "Other", "Override minimal damage indicator")
  9. local positionx = ui_new_slider("RAGE", "Other", "Indicator X", 1, 1920, 875, true, "px")
  10. local positiony = ui_new_slider("RAGE", "Other", "Indicator Y", 1, 1080, 525, true, "px")
  11. local min_dmg = ui_reference("RAGE", "Aimbot", "Minimum damage")
  12. local b_do = false
  13. local scrsize_x, scrsize_y = client.screen_size()
  14. local x = scrsize_x
  15. local y = scrsize_y
  16. ui_set_visible(hotkey, false)
  17. ui_set_visible(hp_slider, false)
  18. ui_set_visible(checkbox_idc, false)
  19. ui_set_visible(positionx, false)
  20. ui_set_visible(positiony, false)
  21.  
  22. function draw_1()
  23. local bool = ui_get(checkbox)
  24. if not bool then
  25. ui_set_visible(hotkey, bool)
  26. ui_set_visible(hp_slider, bool)
  27. ui_set(checkbox_idc, bool)
  28. ui_set_visible(checkbox_idc, bool)
  29. else
  30. ui_set_visible(hotkey, bool)
  31. ui_set_visible(hp_slider, bool)
  32. ui_set_visible(checkbox_idc, bool)
  33. end
  34. end
  35.  
  36.  
  37. end
  38. local function on_paint(ctx)
  39.  
  40. --[[if not ui.get(checkbox) then
  41. return
  42. end--]]
  43. local ifHotkey = ui_get(hotkey)
  44. local hp_slider_ref = ui_get(hp_slider)
  45. if ifHotkey and b_do == false then
  46. stored = ui_get(min_dmg)
  47. ui_set(min_dmg, hp_slider_ref)
  48. b_do = true
  49. elseif not ifHotkey and b_do == true then
  50. ui_set(min_dmg, stored)
  51. b_do = false
  52. end
  53.  
  54. local sw, sh = cl.size()
  55. local x, y = sw / 2, sh - 200
  56.  
  57.  
  58. if ui.get(checkbox_idc) then
  59. ui.set(min_dmg, false)
  60. cl.draw(ctx, 55, y + 15, 255, 0, 0, 255, "c+", 0, "AWP")
  61. else
  62. ui.set(min_dmg, true)
  63. cl.draw(ctx, 55, y + 15, 124, 195, 13, 255, "c+", 0, "AWP")
  64. end
  65.  
  66. client_set_event_callback("paint", handle_paint)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement