Эксперт
-
Автор темы
- #1
Код:
const watermark = function() {
const user = Cheat.GetUsername();
const server = World.GetServerString();
const ping = Math.round(Local.Latency() * 1000 - 16);
const now = new Date();
const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
if(ping < 1) ping = 0;
if(!server != "") server = "offline";
const font = Render.GetFont("MuseoSansCyrl-900.ttf", 13, true);
const font1 = Render.GetFont("MuseoSansCyrl-900.ttf", 13, true);
const text = "| "+ user +" | "+ ping +" ms | "+ server +" | "+ time +"";
const w = Render.TextSize(text, font)[0] + 40;
const x = Global.GetScreenSize()[0];
x = x - w - 10;
Render.FilledRect(x, 9, w - 2, 27, [11, 11, 20, 200]);
Render.FilledRect(x - 1, 10, w, 25, [11, 11, 20, 200]);
Render.String(x + 33, 14, 0, text, [255, 255, 255, 255], font);
Render.String(x + 6, 15, 0, "NL", [34, 179, 246, 255], font1);
Render.String(x + 7, 14, 0, "NL", [255, 255, 255, 255], font1);
}
Cheat.RegisterCallback("Draw", "watermark");
Вложения
-
39.2 KB Просмотры: 36