This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fake Name.lua
338 lines (289 loc) Β· 16.1 KB
/
Fake Name.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
local silentname = 0
local windowmade = 0
local windowactive = 0
local shoulddc = 0
local timer = 0
local curtime = globals.CurTime()
local msgtype, weapon, rarity, text, box1, box2, box3, box4, slider, enable, enabletype, useownname, bantext, bandisc, faketext, fakekicktext, kickself
local origName = "Something broke"
local function getOriginalName()
origName = client.GetConVar("Name")
end
getOriginalName()
local function table_contains(tbl, item)
for i=1, #tbl do
if tbl[i] == item then
return true
end
end
return false
end
local function setName(name)
client.SetConVar("name", name);
end
local knives = {
"Bayonet", "Bowie Knife", "Butterfly Knife",
"Falchion Knife", "Flip Knife", "GutKnife",
"Huntsman Knife", "Karambit", "M9 Bayonet", "Navaja",
"Shadow Daggers", "Stiletto", "Talon", "Ursus"
}
local weaponsTable = {
"Bayonet", "Bowie Knife", "Butterfly Knife", "Falchion Knife",
"Flip Knife", "GutKnife", "Huntsman Knife", "Karambit",
"M9 Bayonet", "Navaja", "Shadow Daggers", "Stiletto",
"Talon", "Ursus", "AWP", "AK-47", "Desert Eagle",
"Glock-18", "M4A4", "M4A1-S", "USP-S"
}
local team_colors = {
"\x01",
"\x09",
"\x0B"
}
local rarity_colors = {
"\x0B",
"\x0C",
"\x03",
"\x0E",
"\x07",
"\x10"
}
local type_messages = {
" has opened a container and found:",
" received in a trade:"
}
local ref = gui.Reference("MISC")
local trolltab = gui.Tab(ref, "fake.name.tab", "Fake Names")
local grp1 = gui.Groupbox(trolltab, "Main", 16,16,190,105)
enable = gui.Checkbox(grp1, enable, "Enable", 0)
enabletype = gui.Combobox(grp1, enabletype, "Active Type", "Fake Skin", "Fake Ban", "Fake Vote", "Fake Kick")
local grp2 = gui.Groupbox(trolltab, "Set Name", 16,170,190,105)
local resetbutton = gui.Button(grp2, "Reset Name", function()
if enable:GetValue() then
setName(origName)
end
end)
local grp3 = gui.Groupbox(trolltab, "Fake Skin", 428,16,190,315)
msgtype = gui.Combobox(grp3, msgtype, "Message Type", "Unbox", "Trade")
weapon = gui.Combobox(grp3, weapon, "Weapon", "Bayonet", "Bowie Knife", "Butterfly Knife", "Falchion Knife",
"Flip Knife", "GutKnife", "Huntsman Knife", "Karambit",
"M9 Bayonet", "Navaja", "Shadow Daggers", "Stiletto",
"Talon", "Ursus", "AWP", "AK-47", "Desert Eagle",
"Glock-18", "M4A4", "M4A1-S", "USP-S")
rarity = gui.Combobox(grp3, rarity, "Rarity/Color", "Industrial (LightBlue)", "Mil spec (DarkBlue)", "Restricted (Pruple)", "Classified (PinkishPurple)", "Covert (Red)", "Contraband (Orangeish)" )
gui.Text(grp3, "Skin Name")
text = gui.Editbox(grp3, text, "")
local multibox = gui.Multibox( grp3, "Modifiers")
box1 = gui.Checkbox(multibox, check1, "Auto-Disconnect", 0)
box2 = gui.Checkbox(multibox, check2, "StatTrak Weapon", 0)
box3 = gui.Checkbox(multibox, check3, "White Name Color", 0)
box4 = gui.Checkbox(multibox, check4, "Use Custom Gap Value", 0)
slider = gui.Slider(grp3, slider, "Gap Value", 1, 1, 35)
local grp4 = gui.Groupbox(trolltab, "Fake Ban", 222,318,190,125)
gui.Text(grp4, "Banned Player Name")
bantext = gui.Editbox(grp4,bantext, "")
useownname = gui.Checkbox(grp4, ownname, "Use Own Name Instead", 1)
bandisc = gui.Checkbox(grp4, bandisc, "Auto-Disconnect", 0)
local grp5 = gui.Groupbox(trolltab, "Fake Vote", 222,185,190,80)
gui.Text(grp5, "Vote Text")
faketext = gui.Editbox(grp5,faketext, "")
local grp6 = gui.Groupbox(trolltab, "Fake Kick", 222,16,190,110)
gui.Text(grp6, "Player Name")
fakekicktext = gui.Editbox(grp6,fakekicktext, "")
kickself = gui.Checkbox(grp6, kickself, "Use Own Name Instead", 1)
local button = gui.Button(grp2, "Set Name", function()
if enable:GetValue() then
if enabletype:GetValue() == 0 then
local local_player = entities.GetLocalPlayer()
if local_player ~= nil then
local itemn = weapon:GetValue() + 1
local item = weaponsTable[itemn]
local weapon_name = table_contains(knives, item) and "β
" or ""
weapon_name = box2:GetValue() and weapon_name .. "StatTrakβ’ " .. item or weapon_name .. item
local team_color = nil
local rarn = rarity:GetValue() + 1
local rarity_color = rarity_colors[rarn]
local msgn = msgtype:GetValue() + 1
local message = type_messages[msgn]
local skinname = text:GetValue()
if box3:GetValue() then team_color = "\x01" else team_color = team_colors[local_player:GetTeamNumber()] end
local char = ""
local char2 = ""
local number = slider:GetValue()
local name = string.len("" .. origName .. "" .. message .. "" .. weapon_name .. "" .. skinname .. "")
print("Total name length: " .. name)
if name == 25 then char = "" for _ = 1, 19 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 26 then char = "" for _ = 1, 19 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 27 then char = "" for _ = 1, 19 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 28 then char = "" for _ = 1, 18 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 29 then char = "" for _ = 1, 18 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 30 then char = "" for _ = 1, 18 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 31 then char = "" for _ = 1, 17 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 32 then char = "" for _ = 1, 17 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 33 then char = "" for _ = 1, 16 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 34 then char = "" for _ = 1, 16 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 35 then char = "" for _ = 1, 15 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 36 then char = "" for _ = 1, 15 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 37 then char = "" for _ = 1, 14 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 38 then char = "" for _ = 1, 14 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 39 then char = "" for _ = 1, 13 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 40 then char = "" for _ = 1, 12 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 41 then char = "" for _ = 1, 12 do char = char .. "α
" end char2 = "" char2 = " π π π π π "
elseif name == 42 then char = "" for _ = 1, 11 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 43 then char = "" for _ = 1, 10 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 44 then char = "" for _ = 1, 9 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 45 then char = "" for _ = 1, 9 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 46 then char = "" for _ = 1, 9 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 47 then char = "" for _ = 1, 9 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 48 then char = "" for _ = 1, 8 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 49 then char = "" for _ = 1, 8 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 50 then char = "" for _ = 1, 7 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 51 then char = "" for _ = 1, 7 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 52 then char = "" for _ = 1, 6 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 53 then char = "" for _ = 1, 5 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 54 then char = "" for _ = 1, 5 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 55 then char = "" for _ = 1, 4 do char = char .. "α
" end char2 = "" char2 = " π π π π "
elseif name == 56 then char = "" for _ = 1, 4 do char = char .. "α
" end char2 = "" char2 = " π π π "
elseif name == 57 then char = "" for _ = 1, 3 do char = char .. "α
" end char2 = "" char2 = " π π π "
elseif name == 58 then char = "" for _ = 1, 2 do char = char .. "α
" end char2 = "" char2 = " π π π "
elseif name == 59 then char = "" for _ = 1, 2 do char = char .. "α
" end char2 = "" char2 = " π π π "
elseif name == 60 then char = "α
α
" char2 = "" char2 = " π π "
elseif name == 61 then char = "α
" char2 = "" char2 = " π π "
elseif name == 62 then char = "" char2 = "" char2 = " π π "
elseif name == 63 then char = "" char2 = "" char2 = " π π "
elseif name == 64 then char = "" char2 = "" char2 = " π π "
elseif name == 65 then char = "" char2 = "" char2 = " "
elseif name == 66 then char = "" char2 = "" char2 = " "
elseif name > 66 then char = "" char2 = "" print("Values above 66 Don't work properly.")
end
if table_contains(knives, weapon:GetValue()) then state = 1 else state = nil end
if state == 1 then for _ = 1, 2 do char = char .. "α
" end end
if box1:GetValue() then state = 2 end
if state == 2 then char2 = "" for _ = 1, 6 do char = char .. "α
" end end
if box2:GetValue() then state = 3 end
if state == 3 then for _ = 1, 3 do char = char .. "α
" end end
if box4:GetValue() then state = 4 end
if state == 4 then char = "" for _ = 1, number do char = char .. "α
" end end
if box1:GetValue() then
setName("π" .. team_color .. "" .. origName .. "\x01" .. message .. "" .. rarity_color .. " " .. weapon_name .. " | " .. skinname .. "\n" .. char .. "π \x01")
shoulddc = 1
else
setName("π" .. team_color .. "" .. origName .. "\x01" .. message .. "" .. rarity_color .. " " .. weapon_name .. " | " .. skinname .. "\n" .. char .. "" .. char2 .. "\x01You")
end
end
elseif enabletype:GetValue() == 1 then
local name = 0
if useownname:GetValue() then
name = string.len(origName)
else
name = string.len(bantext:GetValue())
end
local meme = ""
if(name < 2) and (name > 0) then
meme =" π π π π π π π π π π π π "
elseif(name < 3) and (name > 1) then
meme =" π π π π π π π π π π π "
elseif(name < 4) and (name > 2) then
meme =" π π π π π π π π π π "
elseif(name < 5) and (name > 3) then
meme =" π π π π π π π π π "
elseif(name < 6) and (name > 4) then
meme =" π π π π π π π π "
elseif(name < 7) and (name > 5) then
meme =" π π π π π π π "
elseif(name < 8) and (name > 6) then
meme =" π π π π π π "
elseif(name < 9) and (name > 7) then
meme =" π π π π π "
elseif(name < 10) and (name > 8) then
meme =" π π π π "
elseif(name < 99) and (name > 9) then
print("Names above 9 characters don't work properly")
end
if bandisc:GetValue() then
if useownname:GetValue() then
setName(" \x07" .. origName .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 π ")
shoulddc = 1
else
setName(" \x07" .. bantext:GetValue() .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 π ")
shoulddc = 1
end
else
if useownname:GetValue() then
setName(" \x07" .. origName .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You");
else
setName(" \x07" .. bantext:GetValue() .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You");
end
end
elseif enabletype:GetValue() == 2 then
local currentName = ''
local tempName = ''
for _ = 1, 28 do
tempName = tempName .. "\n";
end
tempName = tempName .. faketext:GetValue();
for _ = 1, 60 do
tempName = tempName .. "\n";
end
currentName = tempName;
setName(currentName);
elseif enabletype:GetValue() == 3 then
if kickself:GetValue() then
local currentName = ''
local tempName = ''
for _ = 1, 28 do
tempName = tempName .. "\n";
end
tempName = tempName .. "Kick player: " .. origName .. "?";
for _ = 1, 60 do
tempName = tempName .. "\n";
end
currentName = tempName;
setName(currentName);
else
local currentName = ''
local tempName = ''
for _ = 1, 28 do
tempName = tempName .. "\n";
end
tempName = tempName .. "Kick player: " .. fakekicktext:GetValue() .. "?";
for _ = 1, 60 do
tempName = tempName .. "\n";
end
currentName = tempName;
setName(currentName);
end
end
end
end)
local function disconnectshit()
if shoulddc == 1 then
timer = globals.CurTime()
shoulddc = 2
end
if shoulddc == 2 and globals.CurTime() >= timer + 0.8 then
client.Command("disconnect", true)
shoulddc = 3
end
if shoulddc == 3 and globals.CurTime() >= timer + 3.6 then
client.Command("name" .. origName, true)
print("Automatically disconnected from the server after setting name.")
shoulddc = 0
end
end
callbacks.Register("Draw",disconnectshit)
local function makenamesilent()
local lp = entities.GetLocalPlayer()
if silentname == 0 and lp ~= nil and enable:GetValue() then
setName("\n\xAD\xAD\xAD\xAD")
curtime = globals.CurTime()
silentname = 1
end
if silentname == 1 and globals.CurTime() >= curtime + 0.1 then
setName(origName)
silentname = 2
end
if lp == nil then
silentname = 0
end
end
callbacks.Register("Draw",makenamesilent)