JS-скрипт Dopium watermark [OTC4/OT4]

Эксперт
Статус
Оффлайн
Регистрация
22 Мар 2020
Сообщения
2,187
Реакции[?]
484
Поинты[?]
3K
1634162331265.png
creater DarkLuny , я просто переписал под в4.
Код:
UI.AddSubTab(["Rage", "SUBTAB_MGR"], "Yumeno"),
UI.AddColorPicker(["Rage", "Yumeno", "Yumeno"], "UI Color")
const watermark = function() {
    const fps = Math.floor(1 / Global.Frametime());
    const ping = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
    const text = "copium | error | " + fps + " fps | latency: " + ping + " ms"
    const width = Render.TextSize(text, Render.GetFont("Verdana.ttf", 10, true))[0] + 10
    const color = UI.GetColor(["Rage", "Yumeno", "Yumeno", "UI Color"])
    Render.FilledRect(Render.GetScreenSize()[0] - 215, 1, width, 20, [41, 41, 51, 255])
    Render.FilledRect(Render.GetScreenSize()[0] - 215, 21, width, 4, [color[0], color[1], color[2], 255])
    Render.GradientRect(Render.GetScreenSize()[0] - 187, 21, 28, 4, 1, [255, 255, 255, 100], [41, 41, 51, 0])
    Render.GradientRect(Render.GetScreenSize()[0] - 215, 21, 28, 4, 1, [41, 41, 51, 0], [255, 255, 255, 100])
    Render.String(Render.GetScreenSize()[0] - 109, 4, 7, text, [0, 0, 0, 220], Render.GetFont("Verdana.ttf", 10, true))
    Render.String(Render.GetScreenSize()[0] - 109, 4, 7, text, [255, 255, 255, 220], Render.GetFont("Verdana.ttf", 10, true))
}

Cheat.RegisterCallback("Draw", "watermark")
 
Сверху Снизу