Advertisement
Guest User

Kick LUA Skeet

a guest
Dec 9th, 2019
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.46 KB | None | 0 0
  1. -- Thanks alot to the faggots that ban people for minor shit or no reason at all. Fuck Skeet.
  2. local shared    = ui.reference("Visuals", "Other Esp", "Shared ESP")
  3. local resupdate = ui.reference("Visuals", "Other Esp", "Restrict shared ESP updates")
  4. local namesteal = ui.reference("Misc", "Miscellaneous", "Steal player name")
  5. local selected  = ui.reference("Players", "Players", "Player List")
  6. local origName  = cvar.name:get_string()
  7. local origRes   = ui.get(resupdate)
  8. local origShare = ui.get(shared)
  9.  
  10. local enabled   = ui.new_checkbox    ("Lua", "A", "Activate Troll-Name")
  11. local box1      = ui.new_checkbox    ("LUA", "A", "Box1")
  12. local box2      = ui.new_checkbox    ("LUA", "A", "Box2")
  13. local box3      = ui.new_checkbox    ("LUA", "A", "Box3")
  14. local box4      = ui.new_checkbox    ("LUA", "A", "Take Value From Console")
  15. local multi     = ui.new_multiselect ("LUA", "A", "Modifiers", "Auto-Disconnect", "Auto-Disconnect (Damage)", "Auto-Revert Name")
  16. local textbox   = ui.new_textbox     ("Lua", "A", "Text")
  17.  
  18. ui.set_visible(box1, false)
  19. ui.set_visible(box2, false)
  20. ui.set_visible(box3, false)
  21.  
  22.  
  23. local function sync1()
  24.     local Selected = ui.get(multi)
  25.     for i=1, #Selected do
  26.     if Selected[i] == "Auto-Disconnect"           then ui.set(box1, true) end
  27.     if Selected[i] == "Auto-Disconnect (Damage)"  then ui.set(box2, true) end      
  28.     if Selected[i] == "Auto-Revert Name"          then ui.set(box3, true) end
  29.     end
  30.     if next(ui.get(multi)) == nil then
  31.         ui.set(box1, false)
  32.         ui.set(box2, false)
  33.         ui.set(box3, false)
  34.     end
  35. end
  36.  
  37. local function sync2()
  38.     local Selected = ui.get(multi)
  39.     for i=1, #Selected do
  40.     if Selected[i] ~= "Auto-Disconnect"           then ui.set(box1, false) end
  41.     if Selected[i] ~= "Auto-Disconnect (Damage)"  then ui.set(box2, false) end        
  42.     if Selected[i] ~= "Auto-Revert Name"          then ui.set(box3, false) end
  43.     end
  44.     sync1()
  45. end
  46.  
  47. local function test()
  48.     client.delay_call(0.1, test)
  49.     if not ui.get(enabled) then return end
  50.     sync2()
  51. end
  52. test()
  53.  
  54. local function setName(name)
  55.     client.set_cvar("name", name)
  56. end
  57.  
  58. local function voteName()
  59.         local currentName = ''
  60.         local tempName    = ''
  61.         local val         = nil
  62.             if ui.get(box4) then val = client.get_cvar("r_eyemove") else val = ui.get(textbox) end
  63.         for _ = 1, 26 do
  64.         tempName = tempName .. "\n";
  65.     end
  66.         tempName = tempName .. val;
  67.         for _ = 1, 60 do
  68.         tempName = tempName .. "\n";
  69.     end
  70.         currentName = tempName;
  71.         setName(currentName);
  72. end
  73.  
  74. local function bannedName()
  75.         local val  = nil
  76.         local name = nil
  77.             if ui.get(box4) then val = client.get_cvar("r_eyegloss") name = string.len(val) else val = ui.get(textbox) name = string.len(val) end
  78.         local meme = ""
  79.         if(name < 2) and (name > 0)  then
  80.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  81.     elseif(name < 3) and (name > 1)  then
  82.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  83.     elseif(name < 4) and (name > 2)  then
  84.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  85.     elseif(name < 5) and (name > 3)  then
  86.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  87.     elseif(name < 6) and (name > 4)  then
  88.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 "
  89.     elseif(name < 7) and (name > 5)  then
  90.             meme =" 👌 👌 👌 👌 👌 👌 👌 "
  91.     elseif(name < 8) and (name > 6)  then
  92.             meme =" 👌 👌 👌 👌 👌 👌 "
  93.     elseif(name < 9) and (name > 7)  then
  94.             meme =" 👌 👌 👌 👌 👌 "
  95.     elseif(name < 10) and (name > 8) then
  96.             meme =" 👌 👌 👌 👌 "
  97.     elseif(name < 99) and (name > 9) then
  98.             client.log("Names above 9 characters don't work properly")
  99.     end
  100.         if ui.get(box1) then  
  101.             client.delay_call(0.01, setName(" \x07" .. val .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 👌 "))
  102.             client.delay_call(0.8, client.exec, "disconnect")
  103.             client.delay_call(2.8, setName, (origName))
  104.             client.delay_call(5.2, client.log("Automatically disconnected from the server after setting Banned-Name."))    
  105.         else
  106.             setName(" \x07" .. val .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You")
  107.     end
  108. end
  109.  
  110. local function bannedName2()
  111.     local plistval = entity.get_player_name(ui.get(selected))
  112.     local name = string.len(plistval)
  113.     local meme = ""
  114.         if(name < 2) and (name > 0)  then
  115.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  116.     elseif(name < 3) and (name > 1)  then
  117.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  118.     elseif(name < 4) and (name > 2)  then
  119.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  120.     elseif(name < 5) and (name > 3)  then
  121.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 👌 "
  122.     elseif(name < 6) and (name > 4)  then
  123.             meme =" 👌 👌 👌 👌 👌 👌 👌 👌 "
  124.     elseif(name < 7) and (name > 5)  then
  125.             meme =" 👌 👌 👌 👌 👌 👌 👌 "
  126.     elseif(name < 8) and (name > 6)  then
  127.             meme =" 👌 👌 👌 👌 👌 👌 "
  128.     elseif(name < 9) and (name > 7)  then
  129.             meme =" 👌 👌 👌 👌 👌 "
  130.     elseif(name < 10) and (name > 8) then
  131.             meme =" 👌 👌 👌 👌 "
  132.     elseif(name < 99) and (name > 9) then
  133.             client.log("Names above 9 characters don't work properly")
  134.     end
  135.     if ui.get(box1) then  
  136.         client.delay_call(0.01, setName(" \x07" .. plistval .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01 👌 "))
  137.         client.delay_call(0.8, client.exec, "disconnect")
  138.         client.delay_call(2.8, setName, (origName))
  139.         client.delay_call(5.2, client.log("Automatically disconnected from the server after setting Banned-Name."))
  140.     else
  141.         setName(" \x07" .. plistval .. " has been permanently banned from official CS:GO servers." .. meme .. "\x01You");
  142.     end
  143. end
  144.  
  145. local function handleUpdate()
  146.     if ui.is_menu_open() then
  147.         ui.set(resupdate, true)
  148.         ui.set(shared, true)
  149.         else
  150.         ui.set(resupdate, origRes)
  151.         ui.set(shared, origShare)
  152.     end
  153. end
  154.  
  155. local function killMe()
  156.     if ui.get(enabled) then
  157.         handleUpdate()
  158.     end
  159. end
  160.  
  161. client.set_event_callback("paint", killMe)
  162.  
  163. local button1    = ui.new_button   ("Lua", "A", "Set Vote-Name", voteName)
  164. local button2    = ui.new_button   ("Lua", "A", "Set Banned-Name", bannedName)
  165. local button3    = ui.new_button   ("Players", "Players", "Set Banned-Name", bannedName2)
  166.  
  167. local function consoleHelp()
  168.         if ui.get(box4) then
  169.         client.exec("clear; status")
  170.         client.log('Console command for Vote-Name value is "r_eyemove"')    
  171.         client.log('Console command for Banned-Name value is "r_eyegloss"')
  172.         ui.set_visible(textbox, false)
  173.     else
  174.         if ui.get(enabled) then    
  175.         ui.set_visible(textbox, true)    
  176.         end
  177.     end
  178. end    
  179.  
  180. local function handleMenu()
  181.     local state = ui.get(enabled)
  182.         ui.set_visible(multi, state)
  183.         ui.set_visible(box4, state)
  184.         ui.set_visible(textbox, state)
  185.         ui.set_visible(button1, state)
  186.         ui.set_visible(button2, state)
  187.         ui.set_visible(button3, state)
  188.     if state then
  189.         origName  = cvar.name:get_string()
  190.         origRes   = ui.get(resupdate)
  191.         origShare = ui.get(shared)
  192.         ui.set(namesteal, true)
  193.         setName("\n\xAD\xAD\xAD\xAD")
  194.     else
  195.         setName(origName)
  196.         ui.set(resupdate, origRes)
  197.         ui.set(shared, origShare)
  198.         ui.set(box1, false)
  199.         ui.set(box2, false)
  200.         ui.set(box3, false)
  201.         ui.set(box4, false)
  202.     end
  203. end
  204.  
  205. handleMenu()
  206. ui.set_callback(enabled, handleMenu)
  207. ui.set_callback(box4, consoleHelp)
  208.  
  209. client.set_event_callback("player_hurt", function(e) -- wish eats black cock
  210.     local localEntPlayer            = entity.get_local_player()
  211.     local localEntPlayer_iTeamNum   = entity.get_prop(localEntPlayer, "m_iTeamNum")
  212.     local victimIsTeammate = entity.get_prop(client.userid_to_entindex(e.userid), "m_iTeamNum") == localEntPlayer_iTeamNum
  213.     local attackerIsLocalPlayer = client.userid_to_entindex(e.attacker) == localEntPlayer
  214.     if victimIsTeammate and attackerIsLocalPlayer then
  215.         if ui.get(box2) then ui.set(enabled, false) handleMenu() client.delay_call(0.8, client.exec, "disconnect") print("Reverted name back to normal and Disconnected from the server after damaging a teammate.")
  216.     elseif ui.get(box3) then ui.set(enabled, false) handleMenu() print("Reverted name back to normal and disabled the main checkbox for the script.") end
  217.     end
  218. end)
  219.  
  220. client.set_event_callback("vote_cast", function(event) -- welcome back, avaster
  221.     local local_player  = entity.get_local_player()    
  222.     local currentName   = entity.get_player_name(local_player)
  223.     local playerName    = entity.get_player_name(event.entityid)  
  224.      if not ui.get(box3) then return end
  225.      if not event.team == entity.get_prop(local_player, "m_iTeamNum") then return end
  226.      if playerName == currentName then ui.set(enabled, false) handleMenu() print("Reverted name back to normal (AFTER A VOTE) and disabled the main checkbox for the script.") end
  227. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement