SHARE
TWEET

Untitled

a guest Feb 16th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --thanks to the dude who showwed me how to do /n and to the guy who showwed me the cvar for setname
  2.  
  3.  
  4. local globals_realtime = globals.realtime
  5. local globals_curtime = globals.curtime
  6. local globals_maxplayers = globals.maxplayers
  7. local globals_tickcount = globals.tickcount
  8. local globals_tickinterval = globals.tickinterval
  9. local globals_mapname = globals.mapname
  10.  
  11. local client_set_event_callback = client.set_event_callback
  12. local client_console_log = client.log
  13. local client_console_cmd = client.exec
  14. local client_userid_to_entindex = client.userid_to_entindex
  15. local client_get_cvar = client.get_cvar
  16. local client_draw_debug_text = client.draw_debug_text
  17. local client_draw_hitboxes = client.draw_hitboxes
  18. local client_random_int = client.random_int
  19. local client_random_float = client.random_float
  20. local client_draw_text = client.draw_text
  21. local client_draw_rectangle = client.draw_rectangle
  22. local client_draw_line = client.draw_line
  23. local client_world_to_screen = client.world_to_screen
  24. local client_is_local_player = client.is_local_player
  25. local client_delay_call = client.delay_call
  26. local client_visible = client.visible
  27. local get_cvar = client.get_cvar
  28. local set_cvar = client.set_cvar
  29. local ui_new_checkbox = ui.new_checkbox
  30. local ui_new_slider = ui.new_slider
  31. local ui_new_button = ui.new_button
  32. local ui_new_combobox = ui.new_combobox
  33. local ui_new_hotkey = ui.new_hotkey
  34. local ui_reference = ui.reference
  35. local ui_set = ui.set
  36. local ui_get = ui.get
  37. local ui_set_visible = ui.set_visible
  38.  
  39. local entity_get_local_player = entity.get_local_player
  40. local entity_get_all = entity.get_all
  41. local entity_get_players = entity.get_players
  42. local entity_get_classname = entity.get_classname
  43. local entity_set_prop = entity.set_prop
  44. local entity_get_prop = entity.get_prop
  45. local entity_is_enemy = entity.is_enemy
  46. local entity_get_player_name = entity.get_player_name
  47. local entity_get_player_weapon = entity.get_player_weapon
  48. local delay_time = 0
  49. local client_draw_rectangle = client.draw_rectangle
  50. local client_draw_text = client.draw_text
  51. local ui_new_checkbox = ui.new_checkbox
  52. local ui_new_combobox = ui.new_combobox
  53. local ui_get = ui.get
  54. local math_fmod = math.fmod
  55. local screen_width, screen_height = client.screen_size()
  56.  
  57. local to_number = tonumber
  58. local math_floor = math.floor
  59. local math_random = math.random
  60. local table_insert = table.insert
  61. local table_remove = table.remove
  62. local table_size = table.getn
  63. local string_format = string.format
  64.  
  65. local steal_name =  ui.reference("MISC", "Miscellaneous", "Steal player name")
  66. local combo = ui_new_combobox("MISC", "Miscellaneous", "Name Spammer", "None", "Silence", "Unity", "Sandy Hook", "Swastik", "Suicidal", "Arabic", "White Power")
  67.  
  68. local function setname(name)
  69.     set_cvar("name", name)
  70. end
  71.  
  72. local function turnoff()
  73.     ui_set(silent_invis, false)
  74. end
  75.  
  76. local function close_chat()
  77.     client_console_cmd("say -﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽")
  78. end
  79.  
  80.  
  81. local function unlim_name()
  82.     setname("\n\xAD\xAD\xAD")
  83. end
  84.  
  85. local function unity1()
  86.     client_console_cmd("name -UNITYHACKS")
  87. end
  88.  
  89. local function unity2()
  90.     client_console_cmd("name UNITYHACKS-")
  91. end
  92.  
  93. local function Setnone()
  94.     ui_set(combo, "None")
  95. end
  96. function swastik1()
  97.     setname("卐卍卐卍卐卍卐卍卐卍卐卍卐卍卐卍卐")
  98. end
  99.  
  100. function swastik2()
  101.     setname("卍卐卍卐卍卐卍卐卍卐卍卐卍卐卍卐卍")
  102. end
  103.  
  104. function die1()
  105.     setname("██████████████████████████████████████████")
  106. end
  107.  
  108. function die2()
  109.     setname("\n\n\n███████████")
  110. end
  111.  
  112. function die3()
  113.     setname("\n\n██████████████████████")
  114. end
  115.  
  116. function die4()
  117.     setname("\n████████████████████████████████████")
  118. end
  119.  
  120.  
  121.  
  122.  
  123.  
  124. --          timer below (thanks NMchris for helping me with this!)
  125. -- if globals_realtime() >= delay_time then
  126. -- delay_time = globals_realtime() + 0.05
  127. -- end
  128.  
  129. local function on_paint(ctx)
  130.     local selected = ui_get(combo)
  131.  
  132.     if globals_realtime() >= delay_time and selected == "Unity" then
  133.         client_console_cmd("name -UNITYHACKS")
  134.         client_delay_call(1, unity2)
  135.         delay_time = globals_realtime() + 0.05
  136.  
  137.  
  138.  
  139.         elseif globals_realtime() >= delay_time and selected == "Sandy Hook" then
  140.  
  141.  
  142.                 client_delay_call(1, sandy1)
  143.                 client_delay_call(2, sandy2)
  144.  
  145.  
  146.  
  147.                 delay_time = globals_realtime() + 2
  148.                
  149.         elseif globals_realtime() >= delay_time and selected == "Swastik" then
  150.  
  151.  
  152.                 client_delay_call(1, swastik1)
  153.                 client_delay_call(2, swastik2)
  154.  
  155.  
  156.  
  157.                 delay_time = globals_realtime() + 2
  158.  
  159.  
  160.  
  161.         elseif globals_realtime() >= delay_time and selected == "Suicidal" then
  162.  
  163.                 client_delay_call(1, die1)
  164.                 client_delay_call(2, die2)
  165.                 client_delay_call(3, die3)
  166.                 client_delay_call(4, die4)
  167.  
  168.  
  169.  
  170.  
  171.  
  172.             delay_time = globals_realtime() + 4
  173.  
  174.         elseif selected == "Arabic" then
  175.             setname("\n﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽﷽ ﷽‎ ﷽﷽ ﷽﷽")
  176.         elseif selected == "White Power" then
  177.             setname("\n WHITE POWER")
  178.     end
  179. if selected == "Silence"  then
  180.  
  181.     client_delay_call(.1, unlim_name)
  182.  
  183. end
  184.  
  185. end
  186.  
  187.  
  188.  
  189.  
  190. client_set_event_callback("paint", on_paint)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top