Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- local ui_new_checkbox, ui_new_slider, ui_new_hotkey = ui.new_checkbox, ui.new_slider, ui.new_hotkey
- local client_set_event_callback = client.set_event_callback
- local checkbox = ui_new_checkbox("RAGE", "Other", "Override minimum damage")
- local hotkey = ui_new_hotkey("RAGE", "Other", "Override minimum damage key")
- local hp_slider = ui_new_slider("RAGE", "Other", "Minimum damage", 0, 120, 0, true, "hp")
- local checkbox_idc = ui_new_checkbox("RAGE", "Other", "Override minimal damage indicator")
- local positionx = ui_new_slider("RAGE", "Other", "Indicator X", 1, 1920, 875, true, "px")
- local positiony = ui_new_slider("RAGE", "Other", "Indicator Y", 1, 1080, 525, true, "px")
- local min_dmg = ui_reference("RAGE", "Aimbot", "Minimum damage")
- local b_do = false
- local scrsize_x, scrsize_y = client.screen_size()
- local x = scrsize_x
- local y = scrsize_y
- ui_set_visible(hotkey, false)
- ui_set_visible(hp_slider, false)
- ui_set_visible(checkbox_idc, false)
- ui_set_visible(positionx, false)
- ui_set_visible(positiony, false)
- function draw_1()
- local bool = ui_get(checkbox)
- if not bool then
- ui_set_visible(hotkey, bool)
- ui_set_visible(hp_slider, bool)
- ui_set(checkbox_idc, bool)
- ui_set_visible(checkbox_idc, bool)
- else
- ui_set_visible(hotkey, bool)
- ui_set_visible(hp_slider, bool)
- ui_set_visible(checkbox_idc, bool)
- end
- end
- end
- local function on_paint(ctx)
- --[[if not ui.get(checkbox) then
- return
- end--]]
- local ifHotkey = ui_get(hotkey)
- local hp_slider_ref = ui_get(hp_slider)
- if ifHotkey and b_do == false then
- stored = ui_get(min_dmg)
- ui_set(min_dmg, hp_slider_ref)
- b_do = true
- elseif not ifHotkey and b_do == true then
- ui_set(min_dmg, stored)
- b_do = false
- end
- local sw, sh = cl.size()
- local x, y = sw / 2, sh - 200
- if ui.get(checkbox_idc) then
- ui.set(min_dmg, false)
- cl.draw(ctx, 55, y + 15, 255, 0, 0, 255, "c+", 0, "AWP")
- else
- ui.set(min_dmg, true)
- cl.draw(ctx, 55, y + 15, 124, 195, 13, 255, "c+", 0, "AWP")
- end
- client_set_event_callback("paint", handle_paint)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement