Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UI.AddSubTab(["Visuals", "SUBTAB_MGR"], "Watermark")
- UI.AddColorPicker(["Visuals", "Watermark", "Watermark"], "Watermark color")
- UI.AddTextbox(["Visuals", "Watermark", "Watermark"], "prefix")
- var color = UI.GetColor(["Visuals", "Watermark", "Watermark", "Watermark color"]);
- if (color[3] == 0)
- UI.SetColor(["Visuals", "Watermark", "Watermark", "Watermark color"], [250, 164, 22, 255]);
- function draw() {
- if(!World.GetServerString())
- return;
- var today = new Date();
- var hours1 = today.getHours();
- var minutes1 = today.getMinutes();
- var seconds1 = today.getSeconds();
- boxtext = UI.GetString(["Visuals", "Watermark", "Watermark", "prefix"]);
- var show_edition = [1 , boxtext];
- 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()
- color = UI.GetColor(["Visuals", "Watermark", "Watermark", "Watermark color"]);
- var font = Render.AddFont("Verdana", 10, 800);
- var text = "gamesense " + show_edition[1] + " | " + Cheat.GetUsername() + " | " + World.GetServerString() + " | delay: " + ebanaya_hueta + "ms | " + server_tickrate + "tick | " + hours + minutes + seconds;
- var w = Render.TextSize(text, font)[0] + 8;
- var x = Global.GetScreenSize()[0];
- x = x - w - 10;
- Render.FilledRect(x, 10, w, 2, [ color[0], color[1], color[2], 255 ]);
- Render.FilledRect(x, 12, w, 16, [ 17, 17, 17, color[3] ]);
- Render.String(x+3, 10 + 2, 0, text, [ 255, 255, 255, 255 ], font);
- }
- Cheat.RegisterCallback("Draw", "draw");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement