-
Notifications
You must be signed in to change notification settings - Fork 0
/
NameFlex.lua
31 lines (27 loc) · 926 Bytes
/
NameFlex.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
--Visit us at Legendentreff.de - CS:GO Cheating Community
--Get updates frequently on Discord: https://discordapp.com/invite/enpEU3W
local Misc_Ref = gui.Reference("MISC", "GENERAL", "Main");
local isPressed = false;
local spammed_last = globals.TickCount();
local spamName = client.GetConVar("name");
local function buttonPressed()
isPressed = true;
--client.ChatSay("Legendentreff > you");
end
local Apply_Button = gui.Button( Misc_Ref, "Nameflex", buttonPressed )
function nameSpam()
local localPlayer = entities.GetLocalPlayer()
if (localPlayer == nil) then
isPressed = false;
end
if (isPressed) then
if globals.TickCount() - spammed_last > 10 then
spamName = spamName .. ' ';
client.SetConVar("name", spamName , false);
spammed_last = globals.TickCount();
end
end
end
callbacks.Register( "Draw", "name Spam", nameSpam);
--Lua made by nn
--For more Luas: https://github.com/nn0001/legendentreff