UI.AddCheckbox("Watermark")
UI.AddColorPicker("Watermark color")
var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Watermark color");
function draw9() {
if (!UI.GetValue("MISC", "JAVASCRIPT", "Script Items", "Watermark")) return;
if(!World.GetServerString())
return;
var today = new Date();
var hours1 = today.getHours();
var minutes1 = today.getMinutes();
var seconds1 = today.getSeconds();
var value = Math.min(Math.abs(Local.GetRealYaw() - Local.GetFakeYaw()) + 2, 60)["toFixed"](0);
var hours = hours1 <= 9 ? "0"+hours1+":" : hours1+":";
var minutes = minutes1 <= 9 ? "0" + minutes1+":" : minutes1+":";
var seconds = seconds1 <= 9 ? "0" + seconds1 : seconds1;
var server_tickrate = Globals.Tickrate().toString()
var ebanaya_hueta = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
var speed = Math.sqrt(Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_vecVelocity[0]")).toString() //
color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Watermark color");
var font = Render.AddFont("Verdana", 7, 400);
var text = "brokencore.club | version: 1 [release] | user: [" + Cheat.GetUsername() + "] | " + 1 + " ms / " + server_tickrate + " tick";
var w = Render.TextSizeCustom(text, font)[0] + 8;
var x = Global.GetScreenSize()[0];
var y = Global.GetScreenSize()[1];
x = x - w - 10;
Render.GradientRect( x + 200, 12, w - 200, 2, 1, [ color[0], color[1], color[2], 0 ], [ color[0], color[1], color[2], 255 ]);
Render.GradientRect( x, 12, w - 200, 2, 1, [ color[0], color[1], color[2], 255 ], [ color[0], color[1], color[2], 0 ]);
Render.FilledRect(x, 12, w, 2, [ color[0], color[1], color[2], 85 ]);
Render.FilledRect(x, 14, w, 16, [ 17, 17, 17, color[3] ]);
Render.StringCustom(x+4, 15, 0, text, [ 255, 255, 255, 245 ], font);
}
Cheat.RegisterCallback("Draw", "draw9");
function menu_wt()
{
enabled = UI.GetValue( "Watermark");
UI.SetEnabled( "Watermark color", enabled);
}
function menu_wtcheck() {
if (UI.IsMenuOpen()) {
menu_wt();
}
}
Global.RegisterCallback("Draw", "menu_wtcheck")