Код:
UI.AddCheckbox("Watermark"), UI.AddColorPicker("Watermark color")
function draw9() {
if (!UI.GetValue("MISC", "JAVASCRIPT", "Script Items", "Watermark")) return;
if(!World.GetServerString())
return;
var today = new Date();
var server_tickrate = Globals.Tickrate().toString()
var ebanaya_hueta = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).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() + "] | " + ebanaya_hueta + " 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")
Последнее редактирование: