Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menu.add_check_box("Watermark")
- menu.add_color_picker("color")
- local font = render.create_font("Tahoma", 13, 80, false, true, false)
- client.add_callback("on_paint", function()
- if menu.get_bool("Watermark") then
- local name = globals.get_username()
- local text = "primordial - "..name
- local widh = render.get_text_width(font, text)
- local x = 0
- local y = 0
- local uv = menu.get_color("color")
- local r, g, b, a = uv:r(), uv:g(), uv:b(), uv:a()
- render.draw_rect_filled(x, y, 1, 20, color.new(r,g,b,255))
- render.draw_rect_filled(x+1, y, widh+4, 20, color.new(20,20,20,120))
- render.draw_text(font, x+3, y+3, color.new(255,255,255), text)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement