-
Notifications
You must be signed in to change notification settings - Fork 0
/
LegendenNameFlex.lua
38 lines (34 loc) · 1.08 KB
/
LegendenNameFlex.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
--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 = "Legendentreff.de > you";
local count = 0;
local originalName = 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
if(count < 4) then
spamName = spamName .. ' ';
client.SetConVar("name", spamName , false);
else
client.SetConVar("name", originalName , false);
end
spammed_last = globals.TickCount();
count = count + 1;
end
end
end
callbacks.Register( "Draw", "name Spam", nameSpam);
--Lua made by nn
--For more Luas: https://github.com/nn0001/legendentreff