Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local resupdate = ui.reference("Visuals", "Other Esp", "Restrict shared ESP updates")
- local namesteal = ui.reference("Misc", "Miscellaneous", "Steal player name")
- local selected = ui.reference("Players", "Players", "Player List")
- local origName = cvar.name:get_string()
- local origEsp = ui.get(resupdate)
- local activebox = ui.new_checkbox ("Lua", "A", "Activate Troll-Name")
- local setconsole = ui.new_checkbox ("Lua", "A", "Take Value From Console")
- local discbox = ui.new_checkbox ("Lua", "A", "Auto Disconnect on Banned-Name")
- local textbox = ui.new_textbox ("Lua", "A", "Text")
- local function setName(name)
- client.set_cvar("name", name)
- end
- local function voteName()
- if ui.get(setconsole) then
- local currentName = ''
- local tempName = ''
- local nameVal = client.get_cvar("r_eyemove")
- for _ = 1, 26 do
- tempName = tempName .. "\n";
- end
- tempName = tempName .. nameVal;
- for _ = 1, 60 do
- tempName = tempName .. "\n";
- end
- currentName = tempName;
- setName(currentName);
- else
- local currentName = ''
- local tempName = ''
- for _ = 1, 26 do
- tempName = tempName .. "\n";
- end
- tempName = tempName .. ui.get(textbox);
- for _ = 1, 60 do
- tempName = tempName .. "\n";
- end
- currentName = tempName;
- setName(currentName);
- end
- end
- local function bannedName()
- if ui.get(setconsole) then
- local bannedval = client.get_cvar("r_eyegloss")
- local name = string.len(bannedVal)
- 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
- client.log("Names above 9 characters don't work properly")
- end
- if ui.get(discbox) then
- client.delay_call(0.01, setName(" \x07" .. bannedVal .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 👌 "))
- client.delay_call(0.8, client.exec, "disconnect")
- client.delay_call(2.8, setName, (origName))
- client.delay_call(5.2, client.log("Automatically disconnected from the server after setting Banned-Name."))
- else
- setName(" \x07" .. bannedVal .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You")
- end
- else
- local name = string.len(ui.get(textbox))
- 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
- client.log("Names above 9 characters don't work properly")
- end
- if ui.get(discbox) then
- client.delay_call(0.01, setName(" \x07" .. ui.get(textbox) .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 👌 "))
- client.delay_call(0.8, client.exec, "disconnect")
- client.delay_call(2.8, setName, (origName))
- client.delay_call(5.2, client.log("Automatically disconnected from the server after setting Banned-Name."))
- else
- setName(" \x07" .. ui.get(textbox) .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You");
- end
- end
- end
- local function bannedName2()
- local plistval = entity.get_player_name(ui.get(selected))
- local name = string.len(plistval)
- 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
- client.log("Names above 9 characters don't work properly")
- end
- if ui.get(discbox) then
- client.delay_call(0.01, setName(" \x07" .. plistval .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 👌 "))
- client.delay_call(0.8, client.exec, "disconnect")
- client.delay_call(2.8, setName, (origName))
- client.delay_call(5.2, client.log("Automatically disconnected from the server after setting Banned-Name."))
- else
- setName(" \x07" .. plistval .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You");
- end
- end
- local function handleUpdate()
- if ui.is_menu_open() then
- ui.set(resupdate, true)
- else
- ui.set(resupdate, origEsp)
- end
- end
- local function killMe()
- if ui.get(activebox) then
- handleUpdate()
- end
- end
- client.set_event_callback("paint", killMe)
- local button1 = ui.new_button ("Lua", "A", "Set Vote-Name", voteName)
- local button2 = ui.new_button ("Lua", "A", "Set Banned-Name", bannedName)
- local button3 = ui.new_button ("Players", "Players", "Set Banned-Name", bannedName2)
- local ref1 = ui.reference ("Lua", "A", "Set Vote-Name")
- local ref2 = ui.reference ("Lua", "A", "Set Banned-Name")
- local ref3 = ui.reference ("Players", "Players", "Set Banned-Name")
- local function consoleHelp()
- if ui.get(setconsole) then
- client.exec("clear; status")
- client.log('Console command for Vote-Name value is "r_eyemove"')
- client.log('Console command for Banned-Name value is "r_eyegloss"')
- ui.set_visible(textbox, false)
- else
- if ui.get(activebox) then
- ui.set_visible(textbox, true)
- end
- end
- end
- local function handleMenu()
- if ui.get(activebox) then
- origName = cvar.name:get_string()
- origEsp = ui.get(resupdate)
- ui.set(namesteal, true)
- setName("\n\xAD\xAD\xAD\xAD")
- ui.set_visible(discbox, true)
- ui.set_visible(setconsole, true)
- ui.set_visible(textbox, true)
- ui.set_visible(ref1, true)
- ui.set_visible(ref2, true)
- ui.set_visible(ref3, true)
- else
- setName(origName)
- ui.set(resupdate, origEsp)
- ui.set(discbox, false)
- ui.set(setconsole, false)
- ui.set_visible(discbox, false)
- ui.set_visible(setconsole, false)
- ui.set_visible(textbox, false)
- ui.set_visible(ref1, false)
- ui.set_visible(ref2, false)
- ui.set_visible(ref3, false)
- end
- end
- consoleHelp()
- ui.set_callback(setconsole, consoleHelp)
- handleMenu()
- ui.set_callback(activebox, handleMenu)
- client.set_event_callback("player_connect_full", function(e)
- if client.userid_to_entindex(e.userid) ~= entity.get_local_player() then
- return
- end
- ui.set(activebox, false)
- handleMenu()
- ui.set_callback(activebox, handleMenu)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement