-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[E] Watermark.lua
59 lines (49 loc) · 2.05 KB
/
[E] Watermark.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
local font = draw.CreateFont('Verdana', 12);
callbacks.Register("Draw", function()
if (watermark:GetValue() ~= true) then
return
end
local lp = entities.GetLocalPlayer();
local playerResources = entities.GetPlayerResources();
-- do not edit above
local divider = ' | ';
local cheatName = 'aimware';
local indexlp = client.GetLocalPlayerIndex()
local userName = client.GetPlayerNameByIndex(indexlp);
-- Do not edit below
local delay;
local tick;
if (lp ~= nil) then
delay = 'delay: ' .. playerResources:GetPropInt("m_iPing", lp:GetIndex()) .. 'ms';
tick = math.floor(lp:GetProp("localdata", "m_nTickBase") + 0x20) .. 'tick';
end
local watermarkText = cheatName .. divider .. userName .. divider;
if (delay ~= nil) then
watermarkText = watermarkText .. delay .. divider;
end
if (tick ~= nil) then
watermarkText = watermarkText .. tick;
end
draw.SetFont(font);
local w, h = draw.GetTextSize(watermarkText);
local weightPadding, heightPadding = 20, 15;
local watermarkWidth = weightPadding + w;
local start_x, start_y = draw.GetScreenSize();
start_x, start_y = start_x - watermarkWidth - 20, start_y * 0.0125;
draw.Color(0, 0, 0, 150);
draw.FilledRect(start_x + 10, start_y, start_x + watermarkWidth , start_y -5 + h + heightPadding);
draw.Color(0, 0, 0, 255)
draw.Text(start_x + weightPadding / 2+5, start_y + heightPadding / 2 - 2, watermarkText );
draw.Color(255,255,255,255);
draw.Text(start_x + weightPadding / 2+6, start_y + heightPadding / 2 - 3, watermarkText );
draw.Color(78, 126, 242, 255);
draw.FilledRect(start_x+10, start_y, start_x + watermarkWidth , start_y +1);
end)
------------------------------------------------------------
--DrawUI
------------------------------------------------------------
function DrawUI()
watermark = gui.Checkbox(gui.Reference("Misc","General","Extra"),"watermark","Show Watermark",0);
watermark:SetDescription("Shows watermark AIMWARE.net.");
end
DrawUI();