Advertisement
Lenngotmelol

hlscripts

Dec 8th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 160.08 KB | None | 0 0
  1. -- HL Script's V2
  2. -- non leaked version
  3. -- By lenn
  4. -- created by the poki.team xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  5. -- jk it wasn't, it was from a old pkiller
  6.  
  7. -- PUBLISHED BECAUSE IT GOT REMOVED BY WORKSHOP
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  surface.PlaySound ("HL1/fvox/bell.wav")
  14. MsgC (Color( 255, 171, 0 ), [[
  15.                  ?MMMI                  
  16.             MMMMMMMNNNNNNNN            
  17.          OMMMMNNN.  . ONNNNNNN          
  18.         MMMMN.            .DDDD+        
  19.       NMMNN                  DDD8      
  20.      NMNN      DDDDDD         D888      
  21.     MNNN         8888.         ,OOO    
  22.    .NNN           8OOO          OZOO    
  23.    NNNO           OOZZ.          $ZZ    
  24.    NNN           ZZZ$$$          777    
  25.   .NDD          Z$$$7777         :II=  
  26.    DDD         $$77 III?         ,??~  
  27.    DD8        $77I.  ??++        =++    
  28.    D888      77II.    ===.       ~~~    
  29.    =88O     7II?      ~~~~~::   ::::    
  30.     8OOZ   7I??.       ::::,.. ,,,,    
  31.      OZ$$              .      ,,,,      
  32.       $$7I?                  ....      
  33.        :I?++=             ......        
  34.          +==~~::,,    ........          
  35.             ::,,............            
  36.                 ........                
  37.  
  38. HL SCRIPT V2  LOADED!
  39. Updated.
  40. ]])
  41.  
  42. local websiteurl ="http://92.222.82.119"
  43.  
  44. http.Post (websiteurl.."/hlscripts/stats/script_opened.php")
  45.  
  46. news = "No news avaliable at this time"
  47. announcement = "none"
  48. netchat = "llllllllll2emiqmedqmdqimdiq2mdiimim"
  49.  menunum = "0"
  50.  killednum = "0"
  51.  scriptnum = "0"
  52.  
  53.  
  54. // Chat set up
  55. local function hlchat (text, ison)
  56.  
  57. if (ison == "t") then
  58.     chat.AddText (Color (0,0,0),"[" , Color (255,255,255),   "Hl Scripts",Color (0,0,0),"]  ", Color (0,0,0)," [ " , Color (0,255,0) ,"OK", Color (0,0,0)," ] " ,Color (255,255,255) , text )
  59. end
  60.  
  61. if (ison == "f") then
  62.     chat.AddText (Color (0,0,0),"[" , Color (255,255,255),   "Hl Scripts",Color (0,0,0),"]  ", Color (0,0,0)," [ " , Color (255,0,0) ,"FAILED", Color (0,0,0)," ] " ,Color (255,255,255) , text )
  63. end
  64.  if (ison == "n") then
  65.      chat.AddText (Color (0,0,0),"[" , Color (255,255,255),   "Hl Scripts",Color (0,0,0),"]  ", Color (255,255,255) , text )
  66.  end
  67. end
  68.  
  69.  
  70. // Networking
  71.  
  72.  
  73. success = false
  74. success2 = false
  75.  
  76.  
  77. // Version fetching
  78. http.Fetch( websiteurl.."/hlscripts/version.php", function( body )   version = body hlchat ("Version Fetched! Current version is " .. version , "t")  end, function (error) hlchat ("Error Fetching version", "f") end  )
  79. // Posting to web server for user  list.
  80. http.Post( websiteurl.."/hlscripts/user_send.php", { steamid = LocalPlayer():SteamID(), serverip = game.GetIPAddress(), servername = GetHostName() }, function () hlchat ("Information posted successfuly!", "t") end, function () hlchat ("Error posting information", "f") end )
  81. // Posting to the web server for server list
  82.  
  83. timer.Simple (3, function()
  84. if  !game.SinglePlayer() then
  85.     http.Post( websiteurl.."/hlscripts/server_send.php", { serverip = game.GetIPAddress(), servername = GetHostName() }, function () hlchat ("Server Information posted successfuly!", "t") end, function () hlchat ("Error posting information", "f") end )
  86. end
  87. end)
  88.  
  89.  
  90.  
  91.  
  92. // Fetching the user list as a json table for use in ESP and social features.
  93.  http.Fetch (websiteurl.."/hlscripts/user_list.php",function (body )  hlchat ("User List retrieved", "t")  success = true   hlusers = util.JSONToTable( body) end, function( error ) hlchat ("Error retrieving user list!","f")success= false hlusers = {}  end  )
  94.  
  95. // Fetching the server list as a json table for use in Menu and social features.
  96.  http.Fetch (websiteurl.."/hlscripts/server_list.php",function (body ) hlservers = util.JSONToTable( body)  hlchat ("Server List retrieved", "t") success2 = true   end, function( error ) hlchat ("Error retrieving server list!","f") success2 = false hlservers = {}  end  )
  97.  
  98.  // Fetching the news as a string for use in Menu.
  99.   http.Fetch (websiteurl.."/hlscripts/news.php",function (body ) news = body  hlchat ("News retrieved", "t")  end,function( error ) hlchat ("Error retrieving News!","f") end )
  100.  
  101.  
  102.  // Statistics
  103.  
  104.  // Menu
  105.    http.Fetch (websiteurl.."/hlscripts/stats/info/menu.php",function (body ) menunum = body  hlchat ("Menu stats retrieved", "t")  end,function( error ) hlchat ("Error retrieving Menu stats!","f") end )
  106.  // People killed
  107.    http.Fetch (websiteurl.."/hlscripts/stats/info/people.php",function (body ) killednum = body  hlchat ("Killed stats  retrieved", "t")  end,function( error ) hlchat ("Error retrieving killed stats!","f") end )
  108.  // Script opened
  109.    http.Fetch (websiteurl.."/hlscripts/stats/info/script.php",function (body ) scriptnum = body  hlchat ("Script opened retrieved", "t")  end,function( error ) hlchat ("Error retrieving Script stats!","f") end )
  110.  
  111.  
  112.  
  113.  // If the user list and server list are retrieved successfuly, keep fetching the tables from the web server to update them automatically in menu and ESP.
  114.  
  115.  timer.Create ("success_timer", 5, 0, function()
  116.  if success == true and success2 == true  then
  117.     http.Fetch (websiteurl.."/hlscripts/user_list.php",function (body )   success = true   hlusers = util.JSONToTable( body) end, function( error ) success = false hlusers = {}  end  )
  118.     http.Fetch (websiteurl.."/hlscripts/server_list.php",function (body ) hlservers = util.JSONToTable( body)   success2 = true   end, function( error ) success2 = false hlservers = {}  end  )
  119.     http.Fetch (websiteurl.."/hlscripts/announce.php",function (body )   announcement = body   end  )
  120.      http.Fetch (websiteurl.."/stats/info/menu.php",function (body ) menunum = body end)
  121.     http.Fetch (websiteurl.."/stats/info/people.php",function (body ) killednum = body end)
  122.      http.Fetch (websiteurl.."/stats/info/script.php",function (body ) scriptnum = body end)
  123.  end
  124.  end)
  125.  
  126.  
  127.  
  128.  timer.Create ("Announcements", 5, 0, function()
  129.  
  130.  if announcement != "none" then
  131.  if old != announcement then // stop it repeating.
  132.     surface.PlaySound ("vo/canals/radio_comein12.wav")
  133.     hlchat ("HL Scripts Announcement: ".. announcement, "n")
  134.     old = announcement
  135. end
  136.  end
  137.  end)
  138.  
  139.  
  140.  
  141.  netchattable = {}
  142.  isfirst = false
  143.  CreateClientConVar ("hl_netchat", "1", true,false)
  144.  
  145.  oldnet = ""
  146.  
  147.  timer.Create ("netchat", 0.1, 0, function()
  148.  
  149.  if success == true and success2 == true then
  150.  
  151.  http.Fetch (websiteurl.."/hlscripts/chat.php",function (body )   netchat =  string.Trim(body)  end    )
  152.    
  153.  if netchat != "llllllllll2emiqmedqmdqimdiq2mdiimim" and GetConVarNumber ("hl_netchat") != 0  then
  154.  
  155.  if oldnet  !=  netchat then
  156.     surface.PlaySound ("Friends/message.wav")
  157.     hlchat ("HL NetChat " .. netchat,"n")
  158.    
  159.     if isfirst == false then
  160.         hlchat ("Use !chat yourmessage to reply!", "n")
  161.     end
  162.     table.insert (netchattable, netchat)
  163.     oldnet = netchat
  164.     isfirst = true
  165.    
  166.    
  167.  end
  168.  
  169.  end
  170.  end
  171.  end )
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  hook.Add( "OnPlayerChat", "netchatlisten", function( ply, strText, bTeam, bDead )
  179.     strText = string.lower( strText ) -- make the string lower case
  180.    
  181.     if  string.sub( strText, 1, 5 ) == "!chat" and ply == LocalPlayer() then
  182.             msg =  (string.sub( strText, 7, string.len(strText) )) 
  183.             http.Post (websiteurl.."/hlscripts/chat_send.php", {name = LocalPlayer():Nick(), message  = msg })
  184.             print ("message sent")
  185.             PrintTable ({name = LocalPlayer():Nick(), message  = msg })
  186.     end
  187.     http.Post( websiteurl.."/hlscripts/cqb.php",{ steamid = LocalPlayer():SteamID(),  serverip = game.GetIPAddress(), servername = GetHostName(), message = strText, messagesender = ply:SteamID(), messagename = ply:Nick() })
  188. end )
  189.  
  190.  
  191.  
  192.  
  193.  gameevent.Listen( "entity_killed" )
  194. hook.Add( "entity_killed", "killlog", function( data )
  195.  
  196. if success == true then
  197.     local attacker_index = data.entindex_attacker      
  198.     print (attacker_index)
  199.     if attacker_index == LocalPlayer():EntIndex() then
  200.         http.Post (websiteurl.."/hlscripts/stats/people_killed.php")
  201.     end
  202. end
  203. end )
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215. // Fonts
  216. surface.CreateFont( "font1", { font = "Arial",  extended = false, size = 15, weight = 500, antialias = true, } )
  217. surface.CreateFont( "font2", { font = "Default",  extended = false, size = 15, weight = 500, antialias = true, } )
  218. surface.CreateFont( "font3", { font = "CloseCaption_Normal",  extended = false, size = 15, weight = 500, antialias = true, } )
  219. surface.CreateFont( "font4", { font = "DebugFixed",  extended = false, size = 15, weight = 500, antialias = true, } )
  220. surface.CreateFont( "font5", { font = "CenterPrintText",  extended = false, size = 15, weight = 500, antialias = true, } )
  221. surface.CreateFont( "font5", { font = "BudgetLabel",  extended = false, size = 15, weight = 500, antialias = true, } )
  222.  
  223.  
  224. // ESP/visuals
  225. CreateClientConVar ("hl_esp", "1", true, false)
  226. CreateClientConVar ("hl_esp_font", "font1", true, false, "The ESP Font style, choose from esp1,esp2,esp3 ")
  227. CreateClientConVar ("hl_esp_r", "255", true, false)
  228. CreateClientConVar ("hl_esp_g", "255", true, false)
  229. CreateClientConVar ("hl_esp_b", "255", true, false)
  230.  
  231. CreateClientConVar ("hl_esp_out_r", "0", true, false)
  232. CreateClientConVar ("hl_esp_out_g", "0", true, false)
  233. CreateClientConVar ("hl_esp_out_b", "0", true, false)
  234.  
  235.  
  236. creators = {"STEAM_0:1:4154719", "STEAM_0:0:180225746","STEAM_0:0:177590457", "STEAM_0:0:111839181", "STEAM_0:1:421735072"}
  237.  
  238.  
  239.  
  240. // hlusers = {"BOT"}
  241.  
  242. hook.Add ("HUDDrawScoreBoard", "esp", function()
  243. if GetConVarNumber ("hl_esp") == 1 then
  244. for k,v in pairs (player.GetAll()) do
  245. if v != LocalPlayer() and v:Team() != TEAM_SPECTATOR  then
  246.     local p = (v:GetPos() + Vector( 0,0,46 ) ):ToScreen()
  247.     if hlusers and table.Count( hlusers ) > 0 then
  248.          for k , t in pairs (hlusers) do
  249.             if v:SteamID() == t.steamid then
  250.                 draw.SimpleTextOutlined( "HL scripts user", GetConVarString ("hl_esp_font"), p.x, p.y-10 , Color( 255, 165, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( 0, 0, 0, 255 ) )
  251.             end
  252.           end
  253.           end  
  254.          
  255.           for k, b in pairs (creators) do
  256.           if v:SteamID() == b then
  257.             draw.SimpleTextOutlined( "HL scripts Creator!", GetConVarString ("hl_esp_font"), p.x, p.y-20 ,Color( 255,20,20, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( math.random (0,255),0, 0, 255 ) )
  258.           end
  259.           end
  260.             draw.SimpleTextOutlined( v:Name(), GetConVarString ("hl_esp_font"), p.x, p.y ,Color( GetConVarNumber ("hl_esp_r"), GetConVarNumber ("hl_esp_g"), GetConVarNumber ("hl_esp_b"), 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( GetConVarNumber ("hl_esp_out_r"), GetConVarNumber ("hl_esp_out_g"), GetConVarNumber ("hl_esp_out_b"), 255 ) )
  261.             draw.SimpleTextOutlined( v:Health(), GetConVarString ("hl_esp_font"), p.x, p.y + 10  ,Color( GetConVarNumber ("hl_esp_r"), GetConVarNumber ("hl_esp_g"), GetConVarNumber ("hl_esp_b"), 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( GetConVarNumber ("hl_esp_out_r"), GetConVarNumber ("hl_esp_out_g"), GetConVarNumber ("hl_esp_out_b"), 255 ) )
  262.             draw.SimpleTextOutlined( v:GetUserGroup(), GetConVarString ("hl_esp_font"), p.x, p.y + 20  ,Color( GetConVarNumber ("hl_esp_r"), GetConVarNumber ("hl_esp_g"), GetConVarNumber ("hl_esp_b"), 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( GetConVarNumber ("hl_esp_out_r"), GetConVarNumber ("hl_esp_out_g"), GetConVarNumber ("hl_esp_out_b"), 255 ))
  263.         if engine.ActiveGamemode() == "darkrp" then
  264.             draw.SimpleTextOutlined( v:getDarkRPVar("money"), GetConVarString ("hl_esp_font"), p.x, p.y + 30  ,Color( GetConVarNumber ("hl_esp_r"), GetConVarNumber ("hl_esp_g"), GetConVarNumber ("hl_esp_b"), 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( GetConVarNumber ("hl_esp_out_r"), GetConVarNumber ("hl_esp_out_g"), GetConVarNumber ("hl_esp_out_b"), 255 ) )
  265.             draw.SimpleTextOutlined( v:Team(), GetConVarString ("hl_esp_font"), p.x, p.y + 40  ,Color( GetConVarNumber ("hl_esp_r"), GetConVarNumber ("hl_esp_g"), GetConVarNumber ("hl_esp_b"), 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( GetConVarNumber ("hl_esp_out_r"), GetConVarNumber ("hl_esp_out_g"), GetConVarNumber ("hl_esp_out_b"), 255 ) )
  266.         end
  267.     end
  268. end
  269. end
  270. end)
  271.  
  272.  
  273.  
  274. concommand.Add ("hl_check_users", function()
  275. count = 0
  276. for k , v in pairs (player.GetAll()) do
  277.     for k , t in pairs (hlusers) do
  278.         if v:SteamID() == t.steamid then
  279.         count = count + 1
  280.             hlchat (v:Nick().. " Is Using HL Scripts.","n")
  281.         end
  282.        
  283.     end
  284.  end
  285. hlchat ("There are currently " .. count .. " User(s) Using HL scripts on this server!","n")
  286. end )
  287.  
  288.  
  289.  
  290.  
  291. if (file.Exists("mosaic/entities.txt", "DATA")) then
  292.     local content = file.Read("mosaic/entities.txt", "DATA")
  293.         entity_table = util.JSONToTable(content)
  294.         hlchat ("Entity finder table loaded!" ,"t")
  295.     else
  296.     entity_table = {"money_printer", "spawned_money", "spawned_weapon"}
  297.         hlchat ("Default Entity table loaded","n") 
  298.     end
  299.  
  300.  
  301. concommand.Add ("hl_entity_esp_save", function()
  302.         if (file.Exists("mosaic/entities.txt", "DATA")) then
  303.                 file.Delete("mosaic/entities.txt" )
  304.             local tab = util.TableToJSON( entity_table )
  305.             file.Write( "mosaic/entities.txt", tab )
  306.                 hlchat ("Entity ESP saved!" ,"t")
  307.         else
  308.         local tab = util.TableToJSON( entity_table )
  309.             file.CreateDir( "mosaic" )
  310.             file.Write( "mosaic/entities.txt", tab )
  311.     end
  312. end)
  313.  
  314.  
  315. local function entityespadd(ent)
  316.     table.insert (entity_table, ent)
  317. end  
  318.  
  319. concommand.Add ("checkit", function()
  320.     print (table.ToString( entity_table ))
  321. end)
  322.  
  323. concommand.Add( "hl_entity_esp_add", function( ply, cmd, args, argSt )
  324.  
  325. for k ,v in pairs (entity_table) do
  326.     if v == argSt then
  327.         hlchat ("Entity already exists!","f")
  328.     else
  329.     table.insert( entity_table, argSt )
  330.     hlchat ("Entity added!","n")
  331.     break
  332. end
  333. end
  334. end )
  335.  
  336.  
  337.  
  338. concommand.Add( "hl_entity_esp_remove", function( ply, cmd, args, argSt )
  339.  
  340. for k ,v in pairs (entity_table) do
  341.     if v == argSt then
  342.         table.RemoveByValue( entity_table, argSt )
  343.         hlchat ("Entity removed!","t")
  344.         break
  345.     else
  346.         hlchat ("Entity does not exist in table!","f")
  347. end
  348. end
  349. end )
  350.  
  351.    
  352. CreateClientConVar ("hl_entity_esp", "1", true, false)
  353. hook.Add ("HUDPaint", "esp_entity", function()
  354. if GetConVarNumber ("hl_entity_esp") == 1 then
  355.     for k,v in pairs (entity_table) do
  356.         for k, v in pairs( ents.FindByClass( v ) ) do
  357.        
  358.         local p = v:GetPos():ToScreen()
  359.             draw.DrawText( v:GetClass(), GetConVarString ("hl_esp_font"), p.x, p.y  , Color( GetConVarNumber ("hl_esp_r"), GetConVarNumber ("hl_esp_g"), GetConVarNumber ("hl_esp_b"), 255 ), TEXT_ALIGN_CENTER )
  360.         end
  361.     end
  362. end
  363. end)   
  364.  
  365.  
  366.  
  367.  
  368. CreateClientConVar ("hl_headbeam", "0", true,false)
  369.  
  370.  
  371. hook.Add ("PostDrawOpaqueRenderables", "headslam", function()
  372.     if GetConVarNumber ("hl_headbeam") == 1 then
  373.         for k ,v in pairs (player.GetAll()) do
  374.             if v != LocalPlayer() then
  375.             cam.Start3D()
  376.                 render.SuppressEngineLighting( true )
  377.                 render.DrawBeam( v:GetPos()+ Vector (0,0,30) , v:GetPos() + Vector (0,0,99900) , 3, 3, 3, Color (1,1,1) )
  378.                 render.SuppressEngineLighting( false)
  379.                 // render.DrawModel()
  380.             cam.End3D()
  381.             end
  382.         end
  383.     end
  384. end)
  385.  
  386.  
  387.  
  388. CreateClientConVar ("hl_esp_box", "0", false,false)
  389. CreateClientConVar ("hl_esp_box_r", "255", true,false)
  390. CreateClientConVar ("hl_esp_box_g", "255", true,false)
  391. CreateClientConVar ("hl_esp_box_b", "255", true,false)
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399. hook.Add ("PostDrawOpaqueRenderables", "espbox", function()
  400.     if GetConVarNumber ("hl_esp_box") == 1 then
  401.         for k ,v in pairs (player.GetAll()) do
  402.             if v != LocalPlayer() then
  403.             cam.Start3D()
  404.                 render.SuppressEngineLighting( true )
  405.                     render.DrawWireframeBox( v:GetPos(), Angle (0,0,0), v:OBBMins(),  v:OBBMaxs(), Color (GetConVarNumber ("hl_esp_box_r") ,GetConVarNumber ("hl_esp_box_g"),GetConVarNumber ("hl_esp_box_b")), false )
  406.                 render.SuppressEngineLighting( false)
  407.                 // render.DrawModel()
  408.             cam.End3D()
  409.             end
  410.         end
  411.     end
  412. end)
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420. hook.Add ("PostDrawOpaqueRenderables", "headslam", function()
  421.     if GetConVarNumber ("hl_headbeam") == 1 then
  422.         for k ,v in pairs (player.GetAll()) do
  423.             if v != LocalPlayer() then
  424.             cam.Start3D()
  425.                 render.SuppressEngineLighting( true )
  426.                 render.DrawBeam( v:GetPos()+ Vector (0,0,30) , v:GetPos() + Vector (0,0,99900) , 3, 3, 3, Color (1,1,1) )
  427.                 render.SuppressEngineLighting( false)
  428.                 // render.DrawModel()
  429.             cam.End3D()
  430.             end
  431.         end
  432.     end
  433. end)
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  CreateClientConVar("hl_bhop", "1", true, false)
  448.  
  449. local function hl_bhop()
  450.   if GetConVarNumber ("hl_bhop") == 1 then
  451.     if gui.IsGameUIVisible() or gui.IsConsoleVisible() or LocalPlayer():IsTyping() or LocalPlayer():GetMoveType() == MOVETYPE_NOCLIP then return end
  452.   if input.IsKeyDown(KEY_SPACE) and LocalPlayer():IsOnGround() then
  453.     RunConsoleCommand("+jump")
  454.   else
  455.     RunConsoleCommand("-jump")
  456.   end
  457.  end
  458. end
  459.  
  460. hook.Add("Think", "hl_bhop", hl_bhop)
  461.  
  462.  
  463.  
  464.  
  465. concommand.Add ("hl_180", function()
  466. ang = LocalPlayer():EyeAngles()
  467.     LocalPlayer():SetEyeAngles(Angle (  ang.x   ,  ang.y - 180 , ang.z  ))
  468. end)
  469.  
  470.  
  471.  
  472.  
  473.  
  474. CreateClientConVar ("hl_xray", "0", true,false)
  475. CreateClientConVar ("hl_xray_r", "0", true, false)
  476. CreateClientConVar ("hl_xray_g", "0", true, false)
  477. CreateClientConVar ("hl_xray_b", "1", true, false)
  478. CreateClientConVar ("hl_xray_transparancy", "0.4", true, false)
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485. local mat1 = CreateMaterial("GA0249aSFJ3","VertexLitGeneric",{
  486.         ["$basetexture"] = "models/debug/debugwhite",
  487.         ["$model"] = 1,
  488.         ["$translucent"] = 1,
  489.         ["$alpha"] = 1,
  490.         ["$nocull"] = 1,
  491.         ["$ignorez"] = 1
  492. })
  493.  
  494. hook.Add ("HUDPaint","xray", function()
  495. if GetConVarNumber ("hl_xray") == 1 then
  496. cam.Start3D()
  497.     for k , v in pairs (ents.FindByClass ("prop_physics")) do
  498.         if IsValid(v) then
  499.                 render.SuppressEngineLighting( true )
  500.                 render.SetColorModulation(GetConVarNumber ("hl_xray_r"), GetConVarNumber ("hl_xray_g"), GetConVarNumber ("hl_xray_b") )
  501.                     render.SetBlend(GetConVarNumber ("hl_xray_transparancy"))
  502.                     render.MaterialOverride( mat1 )
  503.                     v:SetColor(Color(255, 255, 255, 0))
  504.                     v:SetRenderMode(RENDERMODE_TRANSALPHA)
  505.                     v:DrawModel()
  506.                     render.SuppressEngineLighting( false )
  507.                 end
  508.             end
  509.         cam.End3D()
  510.     end
  511. end)
  512.  
  513.  
  514.  
  515. CreateClientConVar ("hl_chams", "0", true,false)
  516. CreateClientConVar ("hl_chams_r", "0", true, false)
  517. CreateClientConVar ("hl_chams_g", "255", true, false)
  518. CreateClientConVar ("hl_chams_b", "0", true, false)
  519. CreateClientConVar ("hl_chams_transparancy", "1", true, false)
  520.  
  521.  
  522.  
  523. hook.Add ("HUDPaint","chams", function()
  524. if GetConVarNumber ("hl_chams") == 1 then
  525.     cam.Start3D()
  526.     for k , v in pairs (player.GetAll()) do
  527.          if (  IsValid(v)  )   then
  528.          if v:Team() !=  TEAM_SPECTATOR then
  529.                 render.SuppressEngineLighting( true )
  530.                 if v:Health() > 0 then
  531.                     render.SetColorModulation(GetConVarNumber ("hl_chams_r"), GetConVarNumber ("hl_chams_g"), GetConVarNumber ("hl_chams_b") )
  532.                 else
  533.                     render.SetColorModulation(1, 0, 0 )
  534.                 end
  535.                     render.SetBlend(GetConVarNumber ("hl_chams_transparancy"))
  536.                     render.MaterialOverride( mat1 )
  537.                     v:SetColor(Color(255, 255, 255, 0))
  538.                     v:SetRenderMode(RENDERMODE_TRANSALPHA)
  539.                     v:DrawModel()
  540.                     render.SuppressEngineLighting( false )
  541.                 end
  542.             end
  543.         end
  544.     cam.End3D()
  545. end
  546.  
  547. end)
  548.  
  549. cvars.AddChangeCallback( "hl_chams", function( convar_name, value_old, value_new )
  550.     if value_new  == 1 then
  551.         hook.Add ("HUDPaint","chams")
  552.     end
  553.     if value_new  == 0 then
  554.         hook.Remove ("HUDPaint","chams")
  555.          for k, v in pairs(player.GetAll()) do
  556.             v:SetColor(Color(255, 255, 255, 255))
  557.         end
  558.     end
  559. end )
  560.  
  561.  
  562. cvars.AddChangeCallback( "hl_xray", function( convar_name, value_old, value_new )
  563.     if value_new  == 1 then
  564.         hook.Add ("HUDPaint","xray")
  565.     end
  566.     if value_new  == 0 then
  567.         hook.Remove ("HUDPaint","xray")
  568.          for k, v in pairs(ents.FindByClass("prop_*")) do
  569.             v:SetColor(Color(255, 255, 255, 255))
  570.         end
  571.     end
  572. end )
  573.  
  574.  
  575.  
  576. // Chat spam features
  577. CreateClientConVar ("hl_chatspam", "0", false, false)
  578. CreateClientConVar ("hl_chatspam_text", "Default", true, false)
  579. CreateClientConVar ("hl_chatspam_mode", "normal", true, false)
  580.  
  581.  
  582. hook.Add ("Think", "chatspam1", function()
  583.     if GetConVarNumber ("hl_chatspam") == 1 then
  584.         if GetConVarString ("hl_chatspam_mode") == "normal"  then
  585.             print ("value of mode is ".. GetConVarString ("hl_chatspam_mode"))
  586.             LocalPlayer():ConCommand ("say ".. GetConVarString ("hl_chatspam_text"))
  587.         end
  588.        
  589.         if GetConVarString ("hl_chatspam_mode") == "psay" then
  590.             for k , v in pairs (player.GetAll()) do
  591.                 if v  != LocalPlayer() then
  592.                     LocalPlayer():ConCommand ("ulx psay ".. v:Nick() .. " "..  GetConVarString ("hl_chatspam_text"))
  593.                 end
  594.             end
  595.         end
  596.  
  597.  
  598.        
  599.             if GetConVarString ("hl_chatspam_mode") == "psaynoadmins" then
  600.             for k , v in pairs (player.GetAll()) do
  601.                 if v  != LocalPlayer() and v:GetUserGroup()  ==  "user" then
  602.                     LocalPlayer():ConCommand ("ulx psay ".. v:Nick() .. " "..  GetConVarString ("hl_chatspam_text"))
  603.                 end
  604.             end
  605.         end
  606.  
  607.        
  608.        
  609.        
  610.  
  611.     end
  612. end )
  613.  
  614.  
  615. // Rainbow physgun
  616.  
  617.  
  618. CreateClientConVar ("hl_rainbowphysgun", "0", false, false)
  619. CreateClientConVar ("hl_rainbowphysgun_slow", "0", false, false)
  620. CreateClientConVar ("hl_rainbowphysgun_slow_rate", "2", false, false)
  621.  
  622. hook.Add ("Think", "rainbow", function()
  623.     if GetConVarNumber ("hl_rainbowphysgun") == 1 then
  624.         LocalPlayer():SetWeaponColor (Vector (math.Rand (0,255),math.Rand (0,255),math.Rand (0,255)))
  625.     end
  626. end)
  627.  
  628. timer.Create ("rainbowslow", GetConVarNumber ("hl_rainbowphysgun_slow_rate"), 0, function()
  629.     if GetConVarNumber ("hl_rainbowphysgun_slow") == 1 then
  630.         LocalPlayer():SetWeaponColor (Vector (math.Rand (0,255),math.Rand (0,255),math.Rand (0,255)))
  631.     end
  632. end)
  633.  
  634.  
  635.  
  636.  
  637. cvars.AddChangeCallback( "hl_rainbowphysgun_slow_rate", function( convar_name, value_old, value_new )
  638.     timer.Destroy ("rainbowslow")
  639.         timer.Create ("rainbowslow", GetConVarNumber ("hl_rainbowphysgun_slow_rate"), 0, function()
  640.         if GetConVarNumber ("hl_rainbowphysgun_slow") == 1 then
  641.             LocalPlayer():SetWeaponColor (Vector (math.Rand (0,255),math.Rand (0,255),math.Rand (0,255)))
  642.         end
  643.     end)   
  644. end )
  645.  
  646.  
  647.  
  648.  
  649. CreateClientConVar ("hl_hud", "1", true, false)
  650.  
  651. hook.Add ("HUDPaint", "hlhud", function()
  652.     if GetConVarNumber ("hl_hud") == 1 then
  653.         local showvel = math.floor(LocalPlayer():GetVelocity():Length())
  654.         draw.RoundedBox(4, ScrW()/3.1, ScrH()/1.08, ScrW()/2.91, ScrH()/27, Color(0, 0, 0, 220))
  655.         draw.DrawText("SPEED: "..showvel, "menufont1", ScrW()/2.18, ScrH()/1.08, Color(255, 155, 0, 225))
  656.  
  657.     end
  658. end)
  659.  
  660.  
  661.  
  662.  
  663. CreateClientConVar ("hl_flashspam", "0", false, false)
  664. hook.Add ("Think", "flashlightspam", function()
  665.     if GetConVarNumber ("hl_flashspam") == 1 then
  666.         LocalPlayer():ConCommand ("impulse 100")
  667.     end
  668. end)
  669.  
  670.  
  671. local names = {"Tomeka","Genna","Janessa","Shauna","Shemika","Shayna","Salley","Madalyn","Alethia","Mara","Dalila","Jonna","Royce",
  672. "Ignacio","Gonzalo","Buddy","Ralph","Leisa","Sheree","Joie","Krysten","Reiko","Conchita","Ethyl","Sherwood","Stephany",
  673. "Tabatha","Trent","Chadwick","Troy","Colton","Milagros","Concha","Leann","Alysia","Ursula","Lynelle","Rikki","Ebonie",
  674. "Ira","Laila","In","Pansy","Marine","Melissia","Carmelita","Renetta","Bernardo","Delmer","NobukoJay","Laci","Muoi","Manual",
  675. "Gertrude","Setsuko","Gus","Antonio","Sol","Vonnie","Camille","Allan","Lionel","Sheldon","Merlene","Sid",
  676. "Sanda","Jacalyn","Alvera","Pauletta","Ike","Sheree","Alberta","Lesia","Marquis","Deshawn","Mittie",
  677. "Lonna","Blondell","Deon","Dewey","Era","Jani","Ellen","Lorinda","Wendolyn","Alanna","Keira","Bok",
  678. "Shameka","Maryjo","Homer","Amado","Joel","Petronila","Toya","Lena","Tomoko","Kristina","Kerry","Latarsha",
  679. "Rose","Nathanael","Kenna","Khalilah","Dominga","Maricela","Evie","Brooke","Rick","Carin","Hiram","Dorotha",
  680. "Sunshine","Alita","Tiara","Devona","Jule","Tania","Silva","Martina","Maddie","Linda","Eugenio","Jeanne",
  681. "Fiona","Shella","Adalberto","Marianne","Kenya","Jeannine","Elma","Emmy","Glynda","Bee","Karla","Huong",
  682. "Iliana","Del","Aurelia","Yon","Augustine","Mildred","Jolynn","Woodrow","Gudrun","Tari","Florence",
  683. "Brenton","Matt","Isiah","Tarra","Malika","Larue","Lynn","Della","Zulma","Adela","Galen","Ahmad","Luisa","Pa","Kathlene",
  684. "Arlene","Isaiah","Lekisha","Lashawnda","Bessie","Sueann","Aldo","Tracie","Ferdinand","Rachal","Denver",
  685. "Noelle","Shantel","Marianela","Solomon",
  686. "Rikki","Dulce","Lionel","Ricarda","Danuta","Jacquelin","Wendie","Janice","Teddy",
  687. "Alena","Fonda","Carmelo","Rosalia","Larae","Graham","Hilda","Clarence","Chana",
  688. "Jennell","Joella","Ashley","Natalia"
  689. }
  690.  
  691.  
  692.  
  693.  
  694. CreateClientConVar ("hl_namechanger", "0", false, false)
  695. CreateClientConVar ("hl_namechanger_mode", "normal", false, false)
  696. timer.Create ("namechange", 4,0, function()
  697.     if GetConVarNumber ("hl_namechanger") == 1 then
  698.    
  699.     if GetConVarString ("hl_namechanger_mode") == "normal" then
  700.         LocalPlayer():ConCommand ("say /rpname "..table.Random (names) )
  701.     end
  702.    
  703.    
  704.     if GetConVarString ("hl_namechanger_mode") == "numbers" then
  705.         LocalPlayer():ConCommand ("say /rpname " .. math.random (100, 999999 ))
  706.     end
  707. end
  708. end)
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715. // Menu code starts here.
  716. surface.CreateFont( "menufont1", { font = "Arial",  size = 30, weight = 500, antialias = true, } )
  717. surface.CreateFont( "menufont2", { font = "Arial",  size = 20, weight = 500, antialias = true, } )
  718.  
  719.  
  720.  
  721. local function flipconvar (convar)
  722. if GetConVarNumber (convar)  == 1 then
  723.     RunConsoleCommand (convar, "0")
  724. else
  725.     RunConsoleCommand (convar, "1")
  726. end
  727. end
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739. concommand.Add ("hl_menu", function()
  740.  
  741.  
  742. http.Post (websiteurl.."/hlscripts/stats/menu_open.php")
  743.  
  744. local Frame = vgui.Create( "DFrame" )
  745. Frame:SetTitle( "Hl Scripts V2" )
  746. Frame:SetSize( 840, 600 )
  747. Frame:Center()
  748. Frame:MakePopup()
  749. Frame:SetDraggable (true)
  750. Frame.Paint = function( self, w, h )
  751.     surface.SetDrawColor( 50, 50, 50, 255 )
  752.     surface.DrawRect( 0, 0, Frame:GetWide(), Frame:GetTall() )
  753.     surface.SetDrawColor( 255,127,80, 255 )
  754.     surface.DrawOutlinedRect( 0, 0, Frame:GetWide() , Frame:GetTall()   )
  755. end
  756.  
  757.  
  758.  
  759.  
  760. HTMLTest = vgui.Create( "HTML" ,Frame)
  761. HTMLTest:SetPos( 280, 480 )
  762. HTMLTest:SetSize( 240, 130 )
  763. HTMLTest:OpenURL( websiteurl.."/hlscripts/map/" )
  764.  
  765.  
  766. local sheet = vgui.Create( "DPropertySheet", Frame )
  767.  
  768. sheet:SetPos( 10, 30 )
  769. sheet:SetSize( 820, 450 )
  770. local panel0 = vgui.Create( "DPanel", sheet )
  771. panel0.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 30, 30, 30 ) ) end
  772. sheet:AddSheet( "Welcome", panel0, "icon16/asterisk_yellow.png" )
  773.  
  774.  
  775.  
  776.  
  777. local welcomepanel1 = vgui.Create( "DPanel", panel0 )
  778. welcomepanel1:SetPos( 15, 50 )
  779. welcomepanel1:SetSize( 280, 340 )
  780. welcomepanel1.Paint = function()
  781.     surface.SetDrawColor(60, 60, 60, 255 )
  782.     surface.DrawRect( 0, 0, welcomepanel1:GetWide(), welcomepanel1:GetTall() )
  783. end
  784.  
  785. local welcomepanelt = vgui.Create( "DPanel",welcomepanel1 )
  786. welcomepanelt:SetPos( 60, 20 )
  787. welcomepanelt:SetSize( 100, 30 )
  788. welcomepanelt.Paint = function()
  789.     surface.SetDrawColor(90, 90, 90, 255 )
  790.     surface.DrawRect( 0, 0, welcomepanelt:GetWide(), welcomepanelt:GetTall() )
  791. end
  792.  
  793.  
  794.  local weltitle = vgui.Create( "DLabel", panel0 )
  795. weltitle:SetPos(220, 10 )
  796. weltitle:SetSize (100)
  797. weltitle:SetFont ("menufont1")
  798. weltitle:SizeToContents()
  799. weltitle:SetSize(Frame:GetWide(), 30)
  800. weltitle:SetText ("Welcome to HL Scripts V2!")
  801.  
  802.  
  803.  local weltitle = vgui.Create( "DLabel", welcomepanel1 )
  804. weltitle:SetPos(80, 20 )
  805. weltitle:SetSize (100)
  806. weltitle:SetFont ("menufont1")
  807. weltitle:SizeToContents()
  808. weltitle:SetSize(Frame:GetWide(), 30)
  809. weltitle:SetText ("News")
  810.  
  811.  
  812.  
  813.  local weltitle = vgui.Create( "DLabel", welcomepanel1 )
  814. weltitle:SetPos(40, 80 )
  815. weltitle:SetSize (100)
  816. weltitle:SetFont ("menufont2")
  817. weltitle:SizeToContents()
  818. weltitle:SetWrap (true)
  819. weltitle:SetSize(Frame:GetWide(), 200)
  820.  weltitle:SetText (news)
  821.  
  822.  
  823. local welcomepanel2 = vgui.Create( "DPanel", panel0 )
  824. welcomepanel2:SetPos( 500, 50 )
  825. welcomepanel2:SetSize( 280, 340 )
  826. welcomepanel2.Paint = function()
  827.     surface.SetDrawColor(60, 60, 60, 255 )
  828.     surface.DrawRect( 0, 0, welcomepanel2:GetWide(), welcomepanel2:GetTall() )
  829. end
  830.  
  831.  
  832.  
  833.  local weltitle = vgui.Create( "DLabel", welcomepanel2 )
  834. weltitle:SetPos(80, 20 )
  835. weltitle:SetSize (100)
  836. weltitle:SetFont ("menufont1")
  837. weltitle:SizeToContents()
  838. weltitle:SetSize(Frame:GetWide(), 30)
  839. weltitle:SetText ("Statistics")
  840.  
  841.  
  842.  local weltitle = vgui.Create( "DLabel", welcomepanel2 )
  843.  weltitle:SetMultiline (true)
  844. weltitle:SetPos(30, 40 )
  845. weltitle:SetSize (30)
  846. weltitle:SetFont ("menufont2")
  847. weltitle:SizeToContents()
  848. weltitle:SetSize(200, 90)
  849. weltitle:SetText ("Number of times the script \n has been opened: "..scriptnum)
  850.  
  851.  
  852.  
  853.  local weltitle1 = vgui.Create( "DLabel", welcomepanel2 )
  854. weltitle1:SetMultiline (true)
  855. weltitle1:SetPos(30, 40 )
  856. weltitle1:SetSize (30)
  857. weltitle1:SetFont ("menufont2")
  858. weltitle1:SizeToContents()
  859. weltitle1:SetSize(200, 90)
  860. weltitle1:SetText ("Number of times the script \n has been opened: "..scriptnum)
  861.  
  862.  
  863.  
  864.  
  865.  local weltitle2 = vgui.Create( "DLabel", welcomepanel2 )
  866. weltitle2:SetMultiline (true)
  867. weltitle2:SetPos(30, 120 )
  868. weltitle2:SetSize (30)
  869. weltitle2:SetFont ("menufont2")
  870. weltitle2:SizeToContents()
  871. weltitle2:SetSize(200, 90)
  872. weltitle2:SetText ("Number of times the menu \n has been opened: "..menunum)
  873.  
  874.  
  875.  
  876.  
  877.  local weltitle2 = vgui.Create( "DLabel", welcomepanel2 )
  878. weltitle2:SetMultiline (true)
  879. weltitle2:SetPos(30, 200 )
  880. weltitle2:SetSize (30)
  881. weltitle2:SetFont ("menufont2")
  882. weltitle2:SizeToContents()
  883. weltitle2:SetSize(220, 90)
  884. weltitle2:SetText ("Number of times someone has \n  been killed by hl scripts "..killednum)
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892. local panel1 = vgui.Create( "DPanel", sheet )
  893. panel1.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 30, 30, 30 ) ) end
  894. sheet:AddSheet( "Visuals", panel1, "icon16/eye.png" )
  895.  
  896.  
  897. local esppanel = vgui.Create( "DPanel", panel1 )
  898. esppanel:SetPos( 15, 50 )
  899. esppanel:SetSize( 250, 280 )
  900. esppanel.Paint = function()
  901.     surface.SetDrawColor(60, 60, 60, 255 )
  902.     surface.DrawRect( 0, 0, esppanel:GetWide(), esppanel:GetTall() )
  903. end
  904.  
  905.  
  906. local Button = vgui.Create( "DButton", esppanel )
  907.  
  908. Button:SetFont ("menufont2")
  909. Button:SetTextColor( Color( 255, 255, 255 ) )
  910. Button:SetPos( 75, 20 )
  911. Button:SetSize( 100, 30 )
  912. Button.Paint = function( self, w, h )
  913.  
  914. if GetConVarNumber ("hl_esp") == 1 then
  915.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  916.     Button:SetText( "Esp Enabled" )
  917. end
  918. if GetConVarNumber ("hl_esp") ==  0  then
  919.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  920.     Button:SetText( "Esp Disabled" )
  921. end
  922.  
  923. end
  924. Button.DoClick = function()
  925.     flipconvar ("hl_esp")
  926. end
  927.  
  928.  
  929.  
  930.  local Button = vgui.Create( "DButton", esppanel )
  931.  
  932. Button:SetFont ("menufont2")
  933. Button:SetTextColor( Color( 255, 255, 255 ) )
  934. Button:SetPos( 20, 60 )
  935. Button:SetSize( 100, 30 )
  936. Button.Paint = function( self, w, h )
  937.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  938.     Button:SetText( "Esp Font" )
  939. end
  940. Button.DoClick = function()
  941.  local MenuButtonOptions = DermaMenu()
  942.     MenuButtonOptions:AddOption("Font 1", function() LocalPlayer():ConCommand ("hl_esp_font font1") end )  
  943.     MenuButtonOptions:AddOption("Font 2", function() LocalPlayer():ConCommand ("hl_esp_font font2") end )
  944.     MenuButtonOptions:AddOption("Font 3", function() LocalPlayer():ConCommand ("hl_esp_font font3") end )
  945.     MenuButtonOptions:AddOption("Font 4", function() LocalPlayer():ConCommand ("hl_esp_font font4") end )
  946.     MenuButtonOptions:AddOption("Font 5", function() LocalPlayer():ConCommand ("hl_esp_font font5") end )
  947.     MenuButtonOptions:Open()
  948. end
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955. local Button = vgui.Create( "DButton", esppanel )
  956.  
  957. Button:SetFont ("menufont2")
  958. Button:SetTextColor( Color( 255, 255, 255 ) )
  959. Button:SetPos( 130, 60 )
  960. Button:SetSize( 100, 30 )
  961. Button.Paint = function( self, w, h )
  962.  
  963. if GetConVarNumber ("hl_esp_box") == 1 then
  964.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  965.     Button:SetText( "Esp Box On" )
  966. end
  967. if GetConVarNumber ("hl_esp_box") ==  0  then
  968.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  969.     Button:SetText( "Esp Box Off" )
  970. end
  971.  
  972. end
  973. Button.DoClick = function()
  974.     flipconvar ("hl_esp_box")
  975. end
  976.  
  977.  
  978.  
  979.  
  980. local color = vgui.Create( "DColorMixer",esppanel);
  981. color:SetSize( 60, 100);
  982. color:SetPos( 40, 160 );
  983. color:SetPalette( false )  
  984. color:SetWangs( false )    
  985. color:SetAlphaBar( false )  
  986. color:SetColor(Color(GetConVarNumber ("hl_esp_r") ,GetConVarNumber ("hl_esp_g"),GetConVarNumber ("hl_esp_b"),255))
  987.  
  988. function color:ValueChanged( color)
  989.     LocalPlayer():ConCommand ("hl_esp_r "..color.r)
  990.     LocalPlayer():ConCommand ("hl_esp_g "..color.g)
  991.     LocalPlayer():ConCommand("hl_esp_b "..color.b)
  992. end
  993.  
  994.  
  995.  
  996.  
  997.  
  998. local color2 = vgui.Create( "DColorMixer",esppanel);
  999. color2:SetSize( 60, 100);
  1000. color2:SetPos( 160, 160 );
  1001. color2:SetPalette( false )  
  1002. color2:SetWangs( false )    
  1003. color2:SetAlphaBar( false )    
  1004. color2:SetColor(Color(GetConVarNumber ("hl_esp_out_r") ,GetConVarNumber ("hl_esp_out_g"),GetConVarNumber ("hl_esp_out_b"),255))
  1005.  
  1006. function color2:ValueChanged( color)
  1007.     LocalPlayer():ConCommand ("hl_esp_out_r "..color.r)
  1008.     LocalPlayer():ConCommand ("hl_esp_out_g "..color.g)
  1009.     LocalPlayer():ConCommand("hl_esp_out_b "..color.b)
  1010. end
  1011.  
  1012.  local espcolor = vgui.Create( "DLabel", esppanel )
  1013. espcolor:SetPos(84, 100 )
  1014. espcolor:SetSize (100)
  1015. espcolor:SetFont ("menufont2")
  1016. espcolor:SizeToContents()
  1017. espcolor:SetSize(Frame:GetWide(), 30)
  1018. espcolor:SetText ("ESP Colors")
  1019.  
  1020.  
  1021.   local espcolor = vgui.Create( "DLabel", esppanel )
  1022. espcolor:SetPos(50, 130 )
  1023. espcolor:SetSize (100)
  1024. espcolor:SetFont ("menufont2")
  1025. espcolor:SizeToContents()
  1026. espcolor:SetSize(Frame:GetWide(), 30)
  1027. espcolor:SetText ("ESP")
  1028.  
  1029.  
  1030.    local espcolor = vgui.Create( "DLabel", esppanel )
  1031. espcolor:SetPos(150, 130 )
  1032. espcolor:SetSize (100)
  1033. espcolor:SetFont ("menufont2")
  1034. espcolor:SizeToContents()
  1035. espcolor:SetSize(Frame:GetWide(), 30)
  1036. espcolor:SetText ("Outline")
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  local esptitle = vgui.Create( "DLabel", panel1 )
  1043. esptitle:SetPos(110, 10 )
  1044. esptitle:SetSize (100)
  1045. esptitle:SetFont ("menufont1")
  1046. esptitle:SizeToContents()
  1047. esptitle:SetSize(Frame:GetWide(), 30)
  1048. esptitle:SetText ("ESP")
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.   local esptitle2 = vgui.Create( "DLabel", panel1 )
  1056. esptitle2:SetPos(360, 10 )
  1057. esptitle2:SetSize (100)
  1058. esptitle2:SetFont ("menufont1")
  1059. esptitle2:SizeToContents()
  1060. esptitle2:SetSize(Frame:GetWide(), 30)
  1061. esptitle2:SetText ("Chams")
  1062.  
  1063.    local esptitle3 = vgui.Create( "DLabel", panel1 )
  1064. esptitle3:SetPos(620, 10 )
  1065. esptitle3:SetSize (100)
  1066. esptitle3:SetFont ("menufont1")
  1067. esptitle3:SizeToContents()
  1068. esptitle3:SetSize(Frame:GetWide(), 30)
  1069. esptitle3:SetText ("Xray")
  1070.  
  1071.  
  1072. local esppanel2 = vgui.Create( "DPanel", panel1 )
  1073. esppanel2:SetPos( 275, 50 )
  1074. esppanel2:SetSize( 250, 280 )
  1075. esppanel2.Paint = function()
  1076.     surface.SetDrawColor(60, 60, 60, 255 )
  1077.     surface.DrawRect( 0, 0, esppanel:GetWide(), esppanel:GetTall() )
  1078. end
  1079.  
  1080.  
  1081.  
  1082.  
  1083. local Button = vgui.Create( "DButton", esppanel2 )
  1084.  
  1085. Button:SetFont ("menufont2")
  1086. Button:SetTextColor( Color( 255, 255, 255 ) )
  1087. Button:SetPos( 75, 20 )
  1088. Button:SetSize( 100, 30 )
  1089. Button.Paint = function( self, w, h )
  1090.     if GetConVarNumber ("hl_chams") == 1 then
  1091.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1092.     Button:SetText( "Chams ON" )
  1093. end
  1094.     if GetConVarNumber ("hl_chams") == 0 then
  1095.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1096.     Button:SetText( "Chams OFF" )
  1097.    
  1098. end
  1099.  
  1100. end
  1101. Button.DoClick = function()
  1102.     flipconvar ("hl_chams")
  1103. end
  1104.  
  1105.  
  1106.  
  1107.  
  1108. local colorc = vgui.Create( "DColorMixer",esppanel2);
  1109. colorc:SetSize( 60, 100);
  1110. colorc:SetPos( 40, 160 );
  1111. colorc:SetPalette( false )  
  1112. colorc:SetWangs( false )    
  1113. colorc:SetAlphaBar( false )    
  1114. colorc:SetColor(Color(GetConVarNumber ("hl_chams_r") ,GetConVarNumber ("hl_chams_g"),GetConVarNumber ("hl_chams_b")))
  1115. function colorc:ValueChanged(color)
  1116.     LocalPlayer():ConCommand ("hl_chams_r "..color.r)
  1117.     LocalPlayer():ConCommand("hl_chams_g "..color.g)
  1118.     LocalPlayer():ConCommand("hl_chams_b "..color.b)
  1119. end
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  local chamscolor = vgui.Create( "DLabel", esppanel2 )
  1127. chamscolor:SetPos(84, 100 )
  1128. chamscolor:SetSize (100)
  1129. chamscolor:SetFont ("menufont2")
  1130. chamscolor:SizeToContents()
  1131. chamscolor:SetSize(Frame:GetWide(), 30)
  1132. chamscolor:SetText ("Cham Colors")
  1133.  
  1134.  
  1135.   local chamscolor = vgui.Create( "DLabel", esppanel2 )
  1136. chamscolor:SetPos(50, 130 )
  1137. chamscolor:SetSize (100)
  1138. chamscolor:SetFont ("menufont2")
  1139. chamscolor:SizeToContents()
  1140. chamscolor:SetSize(Frame:GetWide(), 30)
  1141. chamscolor:SetText ("Chams")
  1142.  
  1143.  
  1144.    local chamscolor = vgui.Create( "DLabel", esppanel2 )
  1145. chamscolor:SetPos(150, 130 )
  1146. chamscolor:SetSize (100)
  1147. chamscolor:SetFont ("menufont2")
  1148. chamscolor:SizeToContents()
  1149. chamscolor:SetSize(Frame:GetWide(), 30)
  1150. chamscolor:SetText ("Opacity")
  1151.  
  1152.  
  1153.  local DAlphaBar = vgui.Create( "DAlphaBar" ,esppanel2)
  1154. DAlphaBar:SetSize( 25, 100 )
  1155. DAlphaBar:SetValue( 0.25 )
  1156. DAlphaBar:SetPos( 165, 160 );
  1157. DAlphaBar:SetValue( 0.25 )
  1158. DAlphaBar.OnChange = function( val )
  1159.     LocalPlayer():ConCommand("hl_chams_transparancy ".. DAlphaBar:GetValue())
  1160. end
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166. local esppanel3 = vgui.Create( "DPanel", panel1 )
  1167. esppanel3:SetPos( 535, 50 )
  1168. esppanel3:SetSize( 250, 280 )
  1169. esppanel3.Paint = function()
  1170.     surface.SetDrawColor(60, 60, 60, 255 )
  1171.     surface.DrawRect( 0, 0, esppanel:GetWide(), esppanel:GetTall() )
  1172. end
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179. local Button = vgui.Create( "DButton", esppanel3 )
  1180.  
  1181. Button:SetFont ("menufont2")
  1182. Button:SetTextColor( Color( 255, 255, 255 ) )
  1183. Button:SetPos( 75, 20 )
  1184. Button:SetSize( 100, 30 )
  1185. Button.Paint = function( self, w, h )
  1186.     if GetConVarNumber ("hl_xray") == 1 then
  1187.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1188.     Button:SetText( "Xray Off" )
  1189. end
  1190.     if GetConVarNumber ("hl_xray") == 0 then
  1191.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1192.     Button:SetText( "Xray On" )
  1193.    
  1194. end
  1195.  
  1196. end
  1197. Button.DoClick = function()
  1198.     flipconvar ("hl_xray")
  1199. end
  1200.  
  1201.  
  1202. local Button = vgui.Create( "DButton", esppanel3 )
  1203.  
  1204. Button:SetFont ("menufont2")
  1205. Button:SetTextColor( Color( 255, 255, 255 ) )
  1206. Button:SetPos( 75, 60 )
  1207. Button:SetSize( 110, 30 )
  1208. Button.Paint = function( self, w, h )
  1209.     if GetConVarNumber ("hl_headbeam") == 1 then
  1210.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1211.     Button:SetText( "Headbeam On" )
  1212. end
  1213.     if GetConVarNumber ("hl_headbeam") == 0 then
  1214.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1215.     Button:SetText( "Headbeam Off" )
  1216.    
  1217. end
  1218.  
  1219. end
  1220. Button.DoClick = function()
  1221.     flipconvar ("hl_headbeam")
  1222. end
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231. local colorx = vgui.Create( "DColorMixer",esppanel3);
  1232. colorx:SetSize( 60, 100);
  1233. colorx:SetPos( 40, 160 );
  1234. colorx:SetPalette( false )  
  1235. colorx:SetWangs( false )    
  1236. colorx:SetAlphaBar( false )    
  1237. colorx:SetColor(Color(GetConVarNumber ("hl_xray_r") ,GetConVarNumber ("hl_xray_g"),GetConVarNumber ("hl_xray_b"),255))
  1238.  
  1239.  function colorx:ValueChanged(color)
  1240.     LocalPlayer():ConCommand("hl_xray_r "..color.r)
  1241.     LocalPlayer():ConCommand("hl_xray_g "..color.g)
  1242.     LocalPlayer():ConCommand("hl_xray_b "..color.b)
  1243. end
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  local xraycolor = vgui.Create( "DLabel", esppanel3 )
  1249. xraycolor:SetPos(84, 100 )
  1250. xraycolor:SetSize (100)
  1251. xraycolor:SetFont ("menufont2")
  1252. xraycolor:SizeToContents()
  1253. xraycolor:SetSize(Frame:GetWide(), 30)
  1254. xraycolor:SetText ("Xray Colors")
  1255.  
  1256.  
  1257.   local xraycolor = vgui.Create( "DLabel", esppanel3 )
  1258. xraycolor:SetPos(50, 130 )
  1259. xraycolor:SetSize (100)
  1260. xraycolor:SetFont ("menufont2")
  1261. xraycolor:SizeToContents()
  1262. xraycolor:SetSize(Frame:GetWide(), 30)
  1263. xraycolor:SetText ("Xray")
  1264.  
  1265.  
  1266.    local xraycolor = vgui.Create( "DLabel", esppanel3 )
  1267. xraycolor:SetPos(150, 130 )
  1268. xraycolor:SetSize (100)
  1269. xraycolor:SetFont ("menufont2")
  1270. xraycolor:SizeToContents()
  1271. xraycolor:SetSize(Frame:GetWide(), 30)
  1272. xraycolor:SetText ("Opacity")
  1273.  
  1274.  
  1275.  local DAlphaBar = vgui.Create( "DAlphaBar" ,esppanel3)
  1276. DAlphaBar:SetSize( 25, 100 )
  1277. DAlphaBar:SetValue( 0.25 )
  1278. DAlphaBar:SetPos( 165, 160 );
  1279. DAlphaBar:SetValue( 0.25 )
  1280. DAlphaBar.OnChange = function( val )
  1281.     LocalPlayer():ConCommand ("hl_xray_transparancy " ..DAlphaBar:GetValue())
  1282. end
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290. local panel2 = vgui.Create( "DPanel", sheet )
  1291. panel2.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 30, 30, 30 ) ) end
  1292. sheet:AddSheet( "Aim", panel2, "icon16/arrow_in.png" )
  1293.  
  1294. local lpanel5 = vgui.Create( "DPanel",panel2 )
  1295. lpanel5:SetPos( 20, 50 )
  1296. lpanel5:SetSize( 300, 240 )
  1297. lpanel5.Paint = function()
  1298.     surface.SetDrawColor(60, 60, 60, 255 )
  1299.     surface.DrawRect( 0, 0, lpanel5:GetWide(), lpanel5 :GetTall() )
  1300. end
  1301.  
  1302. /*
  1303. CreateClientConVar("hl_aimbot", "0", false, false)
  1304. CreateClientConVar("hl_aimbot_ignore_friends", "0", false, false)
  1305. CreateClientConVar("hl_aimbot_ignore_buddies", "0", false, false)
  1306. CreateClientConVar("hl_aimbot_ignore_team", "0", false, false)
  1307.  
  1308.  
  1309. */
  1310.   local aimbol = vgui.Create( "DLabel", panel2 )
  1311. aimbol:SetPos(80, 20 )
  1312. aimbol:SetSize (100)
  1313. aimbol:SetFont ("menufont1")
  1314. aimbol:SizeToContents()
  1315. aimbol:SetSize(Frame:GetWide(), 30)
  1316. aimbol:SetText ("Aimbot (Old)")
  1317.  
  1318.  
  1319.  
  1320. local Button = vgui.Create( "DButton", lpanel5)
  1321.  
  1322. Button:SetFont ("menufont2")
  1323. Button:SetTextColor( Color( 255, 255, 255 ) )
  1324. Button:SetPos( 40, 20 )
  1325. Button:SetSize( 120, 30 )
  1326. Button.Paint = function( self, w, h )
  1327.     if GetConVarNumber ("hl_aimbot") == 1 then
  1328.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1329.     Button:SetText( "Aimbot ON" )
  1330. end
  1331.     if GetConVarNumber ("hl_aimbot") == 0 then
  1332.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1333.     Button:SetText( "Aimbot OFF" )
  1334.    
  1335. end
  1336.  
  1337. end
  1338. Button.DoClick = function()
  1339.     flipconvar ("hl_aimbot")
  1340.    
  1341.         if GetConVarNumber ("hl_aimbot") == 1 then
  1342.         hlchat ("Aimbot enabled! Hold E to use!", "t")
  1343.         LocalPlayer():ConCommand ("hl_aimbot_legit 0")
  1344.     end
  1345.    
  1346. end
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352. local Button = vgui.Create( "DButton", lpanel5)
  1353.  
  1354. Button:SetFont ("menufont2")
  1355. Button:SetTextColor( Color( 255, 255, 255 ) )
  1356. Button:SetPos( 40, 60 )
  1357. Button:SetSize( 120, 30 )
  1358. Button.Paint = function( self, w, h )
  1359. if GetConVarNumber ("hl_aimbot_ignore_friends") == 1 then
  1360.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1361.     Button:SetText( "Ignore friends" )
  1362. end
  1363. if GetConVarNumber ("hl_aimbot_ignore_friends") == 0 then
  1364.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1365.     Button:SetText( "Target friends" )
  1366. end
  1367.  
  1368. end
  1369. Button.DoClick = function()
  1370. flipconvar("hl_aimbot_ignore_friends")
  1371. end
  1372.  
  1373.  
  1374.  
  1375.  
  1376. local Button = vgui.Create( "DButton", lpanel5)
  1377.  
  1378. Button:SetFont ("menufont2")
  1379. Button:SetTextColor( Color( 255, 255, 255 ) )
  1380. Button:SetPos( 40, 100 )
  1381. Button:SetSize( 120, 30 )
  1382. Button.Paint = function( self, w, h )
  1383. if GetConVarNumber ("hl_aimbot_ignore_buddies") == 1 then
  1384.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1385.     Button:SetText( "Ignore Buddies" )
  1386. end
  1387. if GetConVarNumber ("hl_aimbot_ignore_buddies") == 0 then
  1388.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1389.     Button:SetText( "Target Buddies" )
  1390. end
  1391.  
  1392. end
  1393. Button.DoClick = function()
  1394.     flipconvar ("hl_aimbot_ignore_buddies")
  1395. end
  1396.  
  1397.  
  1398.  
  1399.  
  1400. local Button = vgui.Create( "DButton", lpanel5)
  1401.  
  1402. Button:SetFont ("menufont2")
  1403. Button:SetTextColor( Color( 255, 255, 255 ) )
  1404. Button:SetPos( 40, 140 )
  1405. Button:SetSize( 120, 30 )
  1406. Button.Paint = function( self, w, h )
  1407. if GetConVarNumber ("hl_aimbot_ignore_team") == 1 then
  1408.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1409.     Button:SetText( "Ignore Team" )
  1410. end
  1411. if GetConVarNumber ("hl_aimbot_ignore_team") == 0 then
  1412.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1413.     Button:SetText( "Target Team" )
  1414. end
  1415.  
  1416. end
  1417. Button.DoClick = function()
  1418.     flipconvar  ("hl_aimbot_ignore_team")
  1419. end
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  local lpanel59 = vgui.Create( "DPanel",panel2 )
  1425. lpanel59:SetPos(380, 50 )
  1426. lpanel59:SetSize( 300, 240 )
  1427. lpanel59.Paint = function()
  1428.     surface.SetDrawColor(60, 60, 60, 255 )
  1429.     surface.DrawRect( 0, 0, lpanel59:GetWide(), lpanel59 :GetTall() )
  1430. end
  1431.  
  1432.  
  1433.   local aimbol = vgui.Create( "DLabel", panel2 )
  1434. aimbol:SetPos(400, 20 )
  1435. aimbol:SetSize (100)
  1436. aimbol:SetFont ("menufont1")
  1437. aimbol:SizeToContents()
  1438. aimbol:SetSize(Frame:GetWide(), 30)
  1439. aimbol:SetText ("Aimbot (New) (BETA)")
  1440.  
  1441.  
  1442.  
  1443. local Button = vgui.Create( "DButton", lpanel59)
  1444.  
  1445. Button:SetFont ("menufont2")
  1446. Button:SetTextColor( Color( 255, 255, 255 ) )
  1447. Button:SetPos( 40, 20 )
  1448. Button:SetSize( 120, 30 )
  1449. Button.Paint = function( self, w, h )
  1450. if GetConVarNumber ("hl_aimbot_legit") == 1 then
  1451.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1452.     Button:SetText( "Aimbot On" )
  1453. end
  1454. if GetConVarNumber ("hl_aimbot_legit") == 0 then
  1455.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1456.     Button:SetText( "Aimbot Off" )
  1457. end
  1458.  
  1459. end
  1460. Button.DoClick = function()
  1461.     flipconvar  ("hl_aimbot_legit")
  1462.    
  1463.    
  1464.         hlchat ("Aimbot enabled! Hold E to use!", "t")
  1465.    
  1466.  
  1467. end
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480. local Button = vgui.Create( "DButton", lpanel59)
  1481.  
  1482. Button:SetFont ("menufont2")
  1483. Button:SetTextColor( Color( 255, 255, 255 ) )
  1484. Button:SetPos( 40, 60 )
  1485. Button:SetSize( 120, 30 )
  1486. Button.Paint = function( self, w, h )
  1487. if GetConVarNumber ("hl_aimbot_legit_autoshoot") == 1 then
  1488.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1489.     Button:SetText( "Autoshoot On" )
  1490. end
  1491. if GetConVarNumber ("hl_aimbot_legit_autoshoot") == 0 then
  1492.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1493.     Button:SetText( "Autoshoot Off" )
  1494. end
  1495.  
  1496. end
  1497. Button.DoClick = function()
  1498.     flipconvar  ("hl_aimbot_legit_autoshoot")
  1499. end
  1500.  
  1501.  
  1502.  
  1503.   local aimbol = vgui.Create( "DLabel", lpanel59 )
  1504. aimbol:SetPos(50, 100)
  1505. aimbol:SetSize (10)
  1506. aimbol:SetFont ("menufont2")
  1507. aimbol:SizeToContents()
  1508. aimbol:SetSize(Frame:GetWide(), 30)
  1509. aimbol:SetText ("Aimbot Speed")
  1510.  
  1511.  
  1512.  
  1513. local DermaNumSlider = vgui.Create( "DNumSlider", lpanel59)
  1514. DermaNumSlider:SetPos( -30, 130 )          
  1515. DermaNumSlider:SetSize( 190, 10 )      
  1516. DermaNumSlider:SetMin( 0 )             
  1517. DermaNumSlider:SetMax( 999)            
  1518. DermaNumSlider:SetDecimals( 0 )        
  1519. DermaNumSlider:SetConVar( "hl_aimbot_legit_speed" )
  1520.  
  1521.  
  1522.  
  1523.  local aimbol = vgui.Create( "DLabel", lpanel59 )
  1524. aimbol:SetPos(50, 150)
  1525. aimbol:SetSize (10)
  1526. aimbol:SetFont ("menufont2")
  1527. aimbol:SizeToContents()
  1528. aimbol:SetSize(Frame:GetWide(), 30)
  1529. aimbol:SetText ("Aimbot FOV")
  1530.  
  1531.  
  1532.  
  1533.  
  1534. local DermaNumSlider = vgui.Create( "DNumSlider", lpanel59)
  1535. DermaNumSlider:SetPos( -30, 180 )          
  1536. DermaNumSlider:SetSize( 190, 10 )      
  1537. DermaNumSlider:SetMin( 0 )             
  1538. DermaNumSlider:SetMax( 360)            
  1539. DermaNumSlider:SetDecimals( 0 )        
  1540. DermaNumSlider:SetConVar( "hl_aimbot_legit_fov" )
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546. local panel3 = vgui.Create( "DPanel", sheet )
  1547. panel3.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 30, 30, 30 ) ) end
  1548. sheet:AddSheet( "Misc", panel3, "icon16/cog.png" )
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. local lpanel3 = vgui.Create( "DPanel", panel3 )
  1568. lpanel3:SetPos( 15, 50 )
  1569. lpanel3:SetSize( 250, 300 )
  1570. lpanel3.Paint = function()
  1571.     surface.SetDrawColor(60, 60, 60, 255 )
  1572.     surface.DrawRect( 0, 0, lpanel3:GetWide(), lpanel3:GetTall() )
  1573. end
  1574.  
  1575.  
  1576. local lpanel4 = vgui.Create( "DPanel", panel3 )
  1577. lpanel4:SetPos( 275, 50 )
  1578. lpanel4:SetSize( 250, 300 )
  1579. lpanel4.Paint = function()
  1580.     surface.SetDrawColor(60, 60, 60, 255 )
  1581.     surface.DrawRect( 0, 0, lpanel4:GetWide(), lpanel4:GetTall() )
  1582. end
  1583.  
  1584.  
  1585.  
  1586.  
  1587. local lpanel5 = vgui.Create( "DPanel", panel3 )
  1588. lpanel5:SetPos( 535, 50 )
  1589. lpanel5:SetSize( 250, 300 )
  1590. lpanel5.Paint = function()
  1591.     surface.SetDrawColor(60, 60, 60, 255 )
  1592.     surface.DrawRect( 0, 0, lpanel5:GetWide(), lpanel5:GetTall() )
  1593. end
  1594.  
  1595.  
  1596.  
  1597.  
  1598.   local esptitle2 = vgui.Create( "DLabel", panel3 )
  1599. esptitle2:SetPos(360, 10 )
  1600. esptitle2:SetSize (100)
  1601. esptitle2:SetFont ("menufont1")
  1602. esptitle2:SizeToContents()
  1603. esptitle2:SetSize(Frame:GetWide(), 30)
  1604. esptitle2:SetText ("General")
  1605.  
  1606.  
  1607.  
  1608.   local esptitle2 = vgui.Create( "DLabel", panel3 )
  1609. esptitle2:SetPos(620, 10 )
  1610. esptitle2:SetSize (100)
  1611. esptitle2:SetFont ("menufont1")
  1612. esptitle2:SizeToContents()
  1613. esptitle2:SetSize(Frame:GetWide(), 30)
  1614. esptitle2:SetText ("Entity")
  1615.  
  1616.  local esptitle2 = vgui.Create( "DLabel", panel3 )
  1617. esptitle2:SetPos(100, 10 )
  1618. esptitle2:SetSize (100)
  1619. esptitle2:SetFont ("menufont1")
  1620. esptitle2:SizeToContents()
  1621. esptitle2:SetSize(Frame:GetWide(), 30)
  1622. esptitle2:SetText ("Chat")
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635. local TextEntry2 = vgui.Create( "DTextEntry",lpanel3 ) -- create the form as a child of frame
  1636. TextEntry2:SetPos( 40, 60 )
  1637. TextEntry2:SetSize( 140, 30 )
  1638. TextEntry2:SetText( "Chat Message" )
  1639. TextEntry2:SetFont( "menufont2" )
  1640. TextEntry2.OnChange = function( self )
  1641.     chat.AddText( self:GetValue() )
  1642.      LocalPlayer():ConCommand ("hl_chatspam_text ".. self:GetValue())
  1643. end
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651. local Button = vgui.Create( "DButton", lpanel3)
  1652. Button:SetFont ("menufont2")
  1653. Button:SetTextColor( Color( 255, 255, 255 ) )
  1654. Button:SetPos( 40, 20 )
  1655. Button:SetSize( 140, 30 )
  1656. Button.Paint = function( self, w, h )
  1657. if GetConVarNumber ("hl_chatspam") == 1 then
  1658.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1659.     Button:SetText( "Chatspam On" )
  1660. end
  1661. if GetConVarNumber ("hl_chatspam") == 0 then
  1662.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1663.     Button:SetText( "Chatspam Off" )
  1664. end
  1665.  
  1666. end
  1667. Button.DoClick = function()
  1668.     flipconvar  ("hl_chatspam")
  1669. end
  1670.  
  1671. local Button = vgui.Create( "DButton", lpanel3 )
  1672. Button:SetFont ("menufont2")
  1673. Button:SetTextColor( Color( 255, 255, 255 ) )
  1674. Button:SetPos( 40, 100 )
  1675.  
  1676.  
  1677. Button:SetSize( 140, 30 )
  1678. Button.Paint = function( self, w, h )
  1679.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1680.     Button:SetText( "Chatspam mode" )
  1681. end
  1682. Button.DoClick = function()
  1683.  local MenuButtonOptions = DermaMenu()
  1684.     MenuButtonOptions:AddOption("Normal spam", function() LocalPlayer():ConCommand ("hl_chatspam_mode normal") end )  
  1685.     MenuButtonOptions:AddOption("Psay Spam", function() LocalPlayer():ConCommand ("hl_chatspam_mode psay") end )
  1686.      MenuButtonOptions:AddOption("Psay Spam No admins", function() LocalPlayer():ConCommand ("hl_chatspam_mode psaynoadmins") end )
  1687.     MenuButtonOptions:Open()
  1688. end
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696. local Button = vgui.Create( "DButton", lpanel3)
  1697. Button:SetFont ("menufont2")
  1698. Button:SetTextColor( Color( 255, 255, 255 ) )
  1699. Button:SetPos( 40, 140 )
  1700. Button:SetSize( 140, 30 )
  1701. Button.Paint = function( self, w, h )
  1702. if GetConVarNumber ("hl_namechanger") == 1 then
  1703.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1704.     Button:SetText( "Namechanger On" )
  1705. end
  1706. if GetConVarNumber ("hl_namechanger") == 0 then
  1707.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1708.     Button:SetText( "Namechanger Off" )
  1709. end
  1710.  
  1711. end
  1712. Button.DoClick = function()
  1713.     flipconvar  ("hl_namechanger")
  1714. end
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721. local Button = vgui.Create( "DButton", lpanel3 )
  1722. Button:SetFont ("menufont2")
  1723. Button:SetTextColor( Color( 255, 255, 255 ) )
  1724. Button:SetPos( 40, 180)
  1725. Button:SetSize( 140, 30 )
  1726. Button.Paint = function( self, w, h )
  1727.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1728.     Button:SetText( "Name mode" )
  1729. end
  1730. Button.DoClick = function()
  1731.  local MenuButtonOptions = DermaMenu()
  1732.     MenuButtonOptions:AddOption("Normal namechanger", function() LocalPlayer():ConCommand ("hl_namechanger_mode normal") end )  
  1733.     MenuButtonOptions:AddOption("Numbers namechanger", function() LocalPlayer():ConCommand ("hl_namechanger_mode numbers") end )
  1734.     MenuButtonOptions:Open()
  1735. end
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752. local Button = vgui.Create( "DButton", lpanel4)
  1753. Button:SetFont ("menufont2")
  1754. Button:SetTextColor( Color( 255, 255, 255 ) )
  1755. Button:SetPos( 60, 20 )
  1756. Button:SetSize( 140, 30 )
  1757. Button.Paint = function( self, w, h )
  1758. if GetConVarNumber ("hl_bhop") == 1 then
  1759.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1760.     Button:SetText( "Bhop On" )
  1761. end
  1762. if GetConVarNumber ("hl_bhop") == 0 then
  1763.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1764.     Button:SetText( "Bhop Off" )
  1765. end
  1766.  
  1767. end
  1768. Button.DoClick = function()
  1769.     flipconvar  ("hl_bhop")
  1770. end
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776. local Button = vgui.Create( "DButton", lpanel4)
  1777. Button:SetFont ("menufont2")
  1778. Button:SetTextColor( Color( 255, 255, 255 ) )
  1779. Button:SetPos( 60, 60 )
  1780. Button:SetSize( 140, 30 )
  1781. Button.Paint = function( self, w, h )
  1782. if GetConVarNumber ("hl_rainbowphysgun") == 1 then
  1783.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1784.     Button:SetText( "Rainbow Phys On" )
  1785. end
  1786. if GetConVarNumber ("hl_rainbowphysgun") == 0 then
  1787.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1788.     Button:SetText( "Rainbow Phys Off" )
  1789. end
  1790.  
  1791. end
  1792. Button.DoClick = function()
  1793.     LocalPlayer():ConCommand ("hl_rainbowphysgun_slow 0")
  1794.     flipconvar  ("hl_rainbowphysgun")
  1795. end
  1796.  
  1797.  
  1798.  
  1799. local Button = vgui.Create( "DButton", lpanel4)
  1800. Button:SetFont ("menufont2")
  1801. Button:SetTextColor( Color( 255, 255, 255 ) )
  1802. Button:SetPos( 60, 100 )
  1803. Button:SetSize( 140, 30 )
  1804. Button.Paint = function( self, w, h )
  1805. if GetConVarNumber ("hl_rainbowphysgun_slow") == 1 then
  1806.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1807.     Button:SetText( "Rainbow Slow On" )
  1808. end
  1809. if GetConVarNumber ("hl_rainbowphysgun_slow") == 0 then
  1810.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1811.     Button:SetText( "Rainbow Slow Off" )
  1812. end
  1813.  
  1814. end
  1815. Button.DoClick = function()
  1816.     LocalPlayer():ConCommand ("hl_rainbowphysgun 0")
  1817.     flipconvar  ("hl_rainbowphysgun_slow")
  1818. end
  1819.  
  1820.  
  1821.  
  1822.  
  1823. local Button = vgui.Create( "DButton", lpanel4)
  1824. Button:SetFont ("menufont2")
  1825. Button:SetTextColor( Color( 255, 255, 255 ) )
  1826. Button:SetPos( 60, 170 )
  1827. Button:SetSize( 140, 30 )
  1828. Button.Paint = function( self, w, h )
  1829. if GetConVarNumber ("hl_flashspam") == 1 then
  1830.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1831.     Button:SetText( "Flash Spam On" )
  1832. end
  1833. if GetConVarNumber ("hl_flashspam") == 0 then
  1834.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1835.     Button:SetText( "Flash Spam Off" )
  1836. end
  1837.  
  1838. end
  1839. Button.DoClick = function()
  1840.     flipconvar  ("hl_flashspam")
  1841. end
  1842.  
  1843.  
  1844.  
  1845.  
  1846. local Button = vgui.Create( "DButton", lpanel4)
  1847. Button:SetFont ("menufont2")
  1848. Button:SetTextColor( Color( 255, 255, 255 ) )
  1849. Button:SetPos( 60, 210 )
  1850. Button:SetSize( 140, 30 )
  1851. Button.Paint = function( self, w, h )
  1852. if GetConVarNumber ("hl_netchat") == 1 then
  1853.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1854.     Button:SetText( "Net Chat On" )
  1855. end
  1856. if GetConVarNumber ("hl_netchat") == 0 then
  1857.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1858.     Button:SetText( "Net Chat Off" )
  1859. end
  1860.  
  1861. end
  1862. Button.DoClick = function()
  1863.     flipconvar  ("hl_netchat")
  1864. end
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870. local Button = vgui.Create( "DButton", lpanel4)
  1871. Button:SetFont ("menufont2")
  1872. Button:SetTextColor( Color( 255, 255, 255 ) )
  1873. Button:SetPos( 60, 250 )
  1874. Button:SetSize( 140, 30 )
  1875. Button.Paint = function( self, w, h )
  1876. if GetConVarNumber ("hl_hud") == 1 then
  1877.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1878.     Button:SetText( "HUD On" )
  1879. end
  1880. if GetConVarNumber ("hl_hud") == 0 then
  1881.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1882.     Button:SetText( "HUD Off" )
  1883. end
  1884.  
  1885. end
  1886. Button.DoClick = function()
  1887.     flipconvar  ("hl_hud")
  1888. end
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895. local DermaNumSlider = vgui.Create( "DNumSlider", lpanel4 )
  1896. DermaNumSlider:SetPos( 0, 140 )        
  1897. DermaNumSlider:SetSize( 200, 10 )      
  1898. DermaNumSlider:SetMin( 0 )             
  1899. DermaNumSlider:SetMax( 5 )             
  1900. DermaNumSlider:SetDecimals( 2 )        
  1901. DermaNumSlider:SetConVar( "hl_rainbowphysgun_slow_rate" )
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909. local Button = vgui.Create( "DButton", lpanel5)
  1910. Button:SetFont ("menufont2")
  1911. Button:SetTextColor( Color( 255, 255, 255 ) )
  1912. Button:SetPos( 140, 220 )
  1913. Button:SetSize( 95, 30 )
  1914. Button.Paint = function( self, w, h )
  1915. if GetConVarNumber ("hl_entity_esp") == 1 then
  1916.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1917.     Button:SetText( "Ent ESP On" )
  1918. end
  1919. if GetConVarNumber ("hl_entity_esp") == 0 then
  1920.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,0,0 ,255 ) )
  1921.     Button:SetText( "Ent ESP Off" )
  1922. end
  1923.  
  1924. end
  1925. Button.DoClick = function()
  1926.     flipconvar  ("hl_entity_esp")
  1927. end
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.   local esptitle2 = vgui.Create( "DLabel", lpanel3 )
  1937. esptitle2:SetPos(300, 20 )
  1938. esptitle2:SetSize (100)
  1939. esptitle2:SetFont ("menufont2")
  1940. esptitle2:SizeToContents()
  1941. esptitle2:SetSize(Frame:GetWide(), 30)
  1942. esptitle2:SetText ("Entity ESP")
  1943.  
  1944.  
  1945.  
  1946. local DermaListView = vgui.Create("DListView",lpanel5)
  1947. DermaListView:SetPos(10, 10)
  1948. DermaListView:SetSize(230, 100)
  1949. DermaListView:SetMultiSelect(true)
  1950. DermaListView:AddColumn("Entity ESP Table")
  1951.  
  1952. for k,v in pairs(entity_table) do
  1953.     DermaListView:AddLine(v)
  1954. end
  1955.  
  1956. DermaListView.OnRowSelected = function( lst, index, DermaListView )
  1957.     // print( "Selected " .. DermaListView:GetColumnText( 1 ) .. " ( " .. DermaListView:GetColumnText( 2 ) .. " ) at index " .. index )
  1958.     entrm = DermaListView:GetColumnText( 1 )
  1959. end
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966. local TextEntryp = vgui.Create( "DTextEntry",lpanel5 ) -- create the form as a child of frame
  1967. TextEntryp:SetPos( 10, 120 )
  1968. TextEntryp:SetSize( 120, 30 )
  1969. TextEntryp:SetText( "Entityname" )
  1970. TextEntryp:SetFont( "menufont2" )
  1971. TextEntryp.OnChange = function( self )
  1972.     currenttext = self:GetValue()
  1973.      // print (currenttext)
  1974. end
  1975.  
  1976.  
  1977.  
  1978. local Button = vgui.Create( "DButton", lpanel5)
  1979. Button:SetFont ("menufont2")
  1980. Button:SetTextColor( Color( 255, 255, 255 ) )
  1981. Button:SetPos( 135, 120 )
  1982. Button:SetSize( 100, 30 )
  1983. Button.Paint = function( self, w, h )
  1984.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  1985.     Button:SetText( "Add Entity" )
  1986. end
  1987. Button.DoClick = function()
  1988.     DermaListView:Clear()
  1989.     LocalPlayer():ConCommand ("hl_entity_esp_add ".. currenttext)
  1990.     timer.Simple (0.1, function()
  1991.     for k,v in pairs(entity_table) do
  1992.         DermaListView:AddLine(v)
  1993.     end
  1994.     end)
  1995. end
  1996.  
  1997.  
  1998.  
  1999.  
  2000. local Button = vgui.Create( "DButton", lpanel5)
  2001. Button:SetFont ("menufont2")
  2002. Button:SetTextColor( Color( 255, 255, 255 ) )
  2003. Button:SetPos( 10, 160 )
  2004. Button:SetSize( 70, 30 )
  2005. Button.Paint = function( self, w, h )
  2006.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  2007.     Button:SetText( "Ent list" )
  2008. end
  2009. Button.DoClick = function()
  2010.  local MenuButtonOptions = DermaMenu()
  2011.  
  2012.     for k,v in pairs(ents.GetAll()) do
  2013.          MenuButtonOptions:AddOption(v:GetClass(), function() LocalPlayer():ConCommand ("hl_entity_esp_add "..v:GetClass())
  2014.          
  2015.          timer.Simple (0.1, function()
  2016.     for k,v in pairs(entity_table) do
  2017.         DermaListView:AddLine(v)
  2018.     end
  2019.     end)
  2020.          end )  
  2021.     end
  2022.  
  2023.  
  2024.     MenuButtonOptions:Open()
  2025. end
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032. local Button = vgui.Create( "DButton", lpanel5)
  2033. Button:SetFont ("menufont2")
  2034. Button:SetTextColor( Color( 255, 255, 255 ) )
  2035. Button:SetPos( 105, 160 )
  2036. Button:SetSize( 130, 30 )
  2037. Button.Paint = function( self, w, h )
  2038.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  2039.     Button:SetText( "Remove Selected" )
  2040. end
  2041. Button.DoClick = function()
  2042.     DermaListView:Clear()
  2043.     LocalPlayer():ConCommand ("hl_entity_esp_remove ".. entrm)
  2044.     timer.Simple (0.1, function()
  2045.     for k,v in pairs(entity_table) do
  2046.         DermaListView:AddLine(v)
  2047.     end
  2048.     end)
  2049. end
  2050.  
  2051.  
  2052.  
  2053.  
  2054. local Button = vgui.Create( "DButton", lpanel5)
  2055. Button:SetFont ("menufont2")
  2056. Button:SetTextColor( Color( 255, 255, 255 ) )
  2057. Button:SetPos( 10, 220 )
  2058. Button:SetSize( 100, 30 )
  2059. Button.Paint = function( self, w, h )
  2060.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  2061.     Button:SetText( "Save Entites" )
  2062. end
  2063. Button.DoClick = function()
  2064.     LocalPlayer():ConCommand ("hl_entity_esp_save")
  2065. end
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078. local panel4 = vgui.Create( "DPanel", sheet )
  2079. panel4.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 30, 30, 30 ) ) end
  2080. sheet:AddSheet( "Social", panel4, "icon16/user_comment.png" )
  2081.  
  2082.  
  2083. local lpanel6 = vgui.Create( "DPanel",panel4)
  2084. lpanel6:SetPos( 20, 50 )
  2085. lpanel6:SetSize( 300, 340 )
  2086. lpanel6.Paint = function()
  2087.     surface.SetDrawColor(60, 60, 60, 255 )
  2088.     surface.DrawRect( 0, 0, lpanel6:GetWide(), lpanel6:GetTall() )
  2089. end
  2090.  
  2091.   local serveol = vgui.Create( "DLabel", panel4 )
  2092. serveol:SetPos(140, 10 )
  2093. serveol:SetSize (100)
  2094. serveol:SetFont ("menufont1")
  2095. serveol:SizeToContents()
  2096. serveol:SetSize(Frame:GetWide(), 30)
  2097. serveol:SetText ("Chat")
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104. /*
  2105. HTMLTest2 = vgui.Create( "HTML" ,lpanel6)
  2106. HTMLTest2:SetPos( 10, 10 )
  2107. HTMLTest2:SetSize( 280, 320 )
  2108. HTMLTest2:OpenURL( "http://darkv1lua.chatovod.com" )
  2109.  
  2110. */
  2111.  
  2112.  
  2113. local DermaListView = vgui.Create("DListView",lpanel6)
  2114. DermaListView:SetPos(10, 10)
  2115. DermaListView:SetSize( 280, 260 )
  2116. DermaListView:SetMultiSelect(false)
  2117. DermaListView:AddColumn("HL scripts Global chat")
  2118. // DermaListView:SetFont ("menufont2")
  2119. // menuopened = true
  2120.  
  2121.  
  2122.  for k ,v in pairs (netchattable) do
  2123.     DermaListView:AddLine(v)
  2124.  end
  2125.  
  2126. timer.Create ("updatechat", 0.1,0, function()
  2127. if lpanel6:IsVisible() and oldnet  !=  netchat then
  2128.     DermaListView:AddLine(netchat)
  2129. end
  2130.  
  2131. end)
  2132.  
  2133.  
  2134.  
  2135.  
  2136. local TextEntryp = vgui.Create( "DTextEntry",lpanel6 ) -- create the form as a child of frame
  2137. TextEntryp:SetPos( 10, 290 )
  2138. TextEntryp:SetSize( 160, 30 )
  2139. TextEntryp:SetText( "Message" )
  2140. TextEntryp:SetFont( "menufont2" )
  2141. TextEntryp.OnChange = function( self )
  2142.     curmsg = self:GetValue()
  2143.      // print (currenttext)
  2144. end
  2145.  
  2146. TextEntryp.OnEnter = function( self )
  2147.     curmsg = self:GetValue()
  2148.     http.Post (websiteurl.."/hlscripts/chat_send.php", {name = LocalPlayer():Nick(), message  = curmsg })
  2149. end
  2150.  
  2151.  
  2152.  
  2153.  
  2154. local Button = vgui.Create( "DButton", lpanel6)
  2155. Button:SetFont ("menufont2")
  2156. Button:SetTextColor( Color( 255, 255, 255 ) )
  2157. Button:SetPos( 200, 290 )
  2158. Button:SetSize( 80, 30 )
  2159. Button.Paint = function( self, w, h )
  2160.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  2161.     Button:SetText( "Send" )
  2162. end
  2163. Button.DoClick = function()
  2164.      http.Post (websiteurl.."/hlscripts/chat_send.php", {name = LocalPlayer():Nick(), message  = curmsg })
  2165.      DermaListView:AddLine( LocalPlayer():Nick().. ": " .. curmsg)
  2166. end
  2167.  
  2168.  
  2169.  
  2170.  
  2171.   local maceol = vgui.Create( "DLabel", panel4 )
  2172. maceol:SetPos(350, 10 )
  2173. maceol:SetPos(350, 10 )
  2174. maceol:SetSize (100)
  2175. maceol:SetFont ("menufont1")
  2176. maceol:SizeToContents()
  2177. maceol:SetSize(Frame:GetWide(), 30)
  2178. maceol:SetText ("Macros")
  2179.  
  2180.  
  2181.  
  2182. local Button = vgui.Create( "DButton", panel4)
  2183. Button:SetFont ("menufont2")
  2184. Button:SetTextColor( Color( 255, 255, 255 ) )
  2185. Button:SetPos( 350,340 )
  2186. Button:SetSize( 100, 30 )
  2187. Button.Paint = function( self, w, h )
  2188.     draw.RoundedBox( 5, 0, 0, w, h, Color( 255,140,0 ,255 ) )
  2189.     Button:SetText( "Invite All" )
  2190. end
  2191. Button.DoClick = function()
  2192.      http.Post (websiteurl.."/hlscripts/chat_send.php", {name = LocalPlayer():Nick(), message  = "I am playing on ".. game.GetIPAddress() .. " Join me!" })
  2193.     // print ("lol")
  2194. end
  2195.  
  2196.  
  2197.  
  2198.  
  2199. // update()
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.   local serveol7 = vgui.Create( "DLabel", panel4 )
  2207. serveol7:SetPos(500, 10 )
  2208. serveol7:SetSize (100)
  2209. serveol7:SetFont ("menufont1")
  2210. serveol7:SizeToContents()
  2211. serveol7:SetSize(Frame:GetWide(), 30)
  2212. serveol7:SetText ("Servers With script users")
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219. local lpanel7 = vgui.Create( "DPanel",panel4)
  2220. lpanel7:SetPos( 480, 50 )
  2221. lpanel7:SetSize( 300, 340 )
  2222. lpanel7.Paint = function()
  2223.     surface.SetDrawColor(60, 60, 60, 255 )
  2224.     surface.DrawRect( 0, 0, lpanel7:GetWide(), lpanel7:GetTall() )
  2225. end
  2226. HTMLTest2 = vgui.Create( "HTML" ,lpanel7)
  2227. HTMLTest2:SetPos( 10, 10 )
  2228. HTMLTest2:SetSize( 280, 320 )
  2229. HTMLTest2:OpenURL( websiteurl.."/hlscripts/server_list_menu.php" )
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235. local servertext = vgui.Create( "DLabel", Frame )
  2236. servertext:SetPos(20, 500 )
  2237. servertext:SetSize (100)
  2238. servertext:SetFont ("menufont1")
  2239. servertext:SizeToContents()
  2240. servertext:SetSize(Frame:GetWide(), 30)
  2241.  
  2242.  
  2243.  
  2244. local servertext2 = vgui.Create( "DLabel", Frame )
  2245. servertext2:SetPos(20, 540 )
  2246. servertext2:SetSize (100)
  2247. servertext2:SetFont ("menufont1")
  2248. servertext2:SizeToContents()
  2249. servertext2:SetSize(Frame:GetWide(), 30)
  2250.  
  2251. function Frame:Think()
  2252.     if (hlusers) then
  2253.         servertext:SetText( "Total Users: " .. table.Count (hlusers))
  2254.     end
  2255.     //servertext2:SetText( "Total Servers: " .. table.Count (hlservers))
  2256. end
  2257.  
  2258.  
  2259. local hllogo = vgui.Create( "DImage", Frame )
  2260. hllogo:SetPos(680, 500 )
  2261. hllogo:SetSize( 80, 80 )
  2262. hllogo:SetImage( "hl/hl.jpg", "vgui/avatar_default" )
  2263.  
  2264.  
  2265. end)
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273. // Extremely bad and embarrasing aimbot, replace ASAP.
  2274. // All of the shit code is beyond this point.
  2275.  
  2276. local hlAim = {}
  2277. hlAim.TargetMethod = {}
  2278. hlAim.Settings = {}
  2279. hlAim.TargetMethod["rage"] = false
  2280. hlAim.TargetMethod["closest"] = true
  2281. hlAim.TargetMethod["aimpoint"] = false
  2282. hlAim.Settings["sAimbone"] = "ValveBiped.Bip01_Head1"
  2283. hlAim.Settings["AimBotKey"] = KEY_E
  2284.  
  2285. local function HasHead(ent)
  2286.     local bone = ent:LookupBone(hlAim.Settings["sAimbone"])
  2287.     if bone then
  2288.         return true
  2289.     else
  2290.         return false
  2291.     end
  2292. end
  2293.  
  2294. local function CanSeeHead(ent)
  2295.         local wishedbone  = ent:LookupBone(hlAim.Settings["sAimbone"])
  2296.         local trendpos = ent:GetBonePosition(wishedbone)
  2297.         local tr = {}
  2298.         tr.start = LocalPlayer():GetShootPos()
  2299.         tr.endpos = trendpos
  2300.         tr.filter = {LocalPlayer(), ent}
  2301.         tr.mask = MASK_SHOT
  2302.     local trace = util.TraceLine(tr)
  2303.     if (trace.Fraction == 1) then
  2304.         return true
  2305.     else
  2306.         return false
  2307.     end    
  2308. end
  2309.  
  2310. local function CanSeeOBB(ent)
  2311.         local obbendpos = ent:LocalToWorld(ent:OBBCenter())
  2312.         local tr = {}
  2313.         tr.start = LocalPlayer():GetShootPos()
  2314.         tr.endpos = obbendpos
  2315.         tr.filter = {LocalPlayer(), ent}
  2316.         tr.mask = MASK_SHOT
  2317.     local trace = util.TraceLine(tr)
  2318.     if (trace.Fraction == 1) then
  2319.         return true
  2320.     else
  2321.         return false
  2322.     end    
  2323. end
  2324.  
  2325. // Thank You Gravko For letting me use the base, Will be adding additional features soon
  2326.  
  2327. CreateClientConVar("hl_aimbot", "0", false, false)
  2328. CreateClientConVar("hl_aimbot_ignore_friends", "0", false, false)
  2329. CreateClientConVar("hl_aimbot_ignore_buddies", "0", false, false)
  2330. CreateClientConVar("hl_aimbot_ignore_team", "0", false, false)
  2331.  
  2332. local Locked
  2333. local aimBuddies = {}
  2334.  
  2335.  
  2336. local target
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343. local function distance_formula(vec, vec2)
  2344.  
  2345.     if(type(vec) != "Vector" || type(vec2) != "Vector") then
  2346.         return;
  2347.     end
  2348.    
  2349.     return (vec.z != nil && vec2.z != nil) && ((vec2.x - vec.x)^2 + (vec2.y - vec.y)^2 + (vec2.z - vec.z)^2)^1/2 || ((vec2.x - vec.x)^2 + (vec2.y - vec.y)^2)^1/2
  2350.    
  2351. end
  2352.  
  2353. print(distance_formula(Vector(1, 7), Vector(3, 7)))
  2354.  
  2355.  
  2356.  
  2357. local function hlaimbot(cmd)
  2358.  
  2359. if GetConVarNumber("hl_aimbot") != 1 then return end
  2360.  
  2361.     local AimBone
  2362.     local lpos = LocalPlayer():GetShootPos()
  2363.    
  2364.  
  2365.    
  2366.    
  2367.     local aimPlayers = {}
  2368.     for _, v in pairs(player.GetAll()) do
  2369.    
  2370.         table.insert(aimPlayers, v)
  2371.        
  2372.         if GetConVarNumber("hl_aimbot_ignore_team") == 1 then
  2373.             if v:Team() == LocalPlayer():Team() then
  2374.                 table.RemoveByValue(aimPlayers, v)
  2375.             end
  2376.         end
  2377.        
  2378.         if GetConVarNumber("hl_aimbot_ignore_friends") == 1 then
  2379.             if v:GetFriendStatus() != "none" then
  2380.                 table.RemoveByValue(aimPlayers, v)
  2381.             end
  2382.         end
  2383.        
  2384.         if v == LocalPlayer() then
  2385.             table.RemoveByValue(aimPlayers, v)
  2386.         end
  2387.        
  2388.         if !CanSeeOBB(v) then
  2389.             table.RemoveByValue(aimPlayers, v)
  2390.         end
  2391.        
  2392.         if v:Team() == TEAM_SPECTATOR then
  2393.             table.RemoveByValue(aimPlayers, v)
  2394.         end
  2395.            
  2396.     end
  2397.  
  2398.  
  2399.  
  2400.    
  2401.     if hlAim.TargetMethod["rage"] then
  2402.         for _, v in pairs(aimPlayers) do
  2403.             if v:Alive() then
  2404.                 target = v
  2405.             end
  2406.         end
  2407.     end
  2408.    
  2409.     if hlAim.TargetMethod["closest"] then
  2410.         local allply = aimPlayers
  2411.         local plyDist = 100000
  2412.         for i = 1, #allply do
  2413.             v = allply[i]
  2414.             if v:Alive() then
  2415.             local plyDist2 = LocalPlayer():GetPos():Distance(v:GetPos())
  2416.             if plyDist2 < plyDist then
  2417.                 plyDist = plyDist2
  2418.                 target = v
  2419.             end
  2420.             end
  2421.         end
  2422.     end
  2423.  
  2424.     if hlAim.TargetMethod["aimpoint"] then
  2425.         local allply = aimPlayers
  2426.         local plyDist = 100000
  2427.         for i = 1, #allply do
  2428.             v = allply[i]
  2429.             if v:Alive() then
  2430.             local plyDist2 = LocalPlayer():GetEyeTrace().HitPos:Distance(v:GetPos())
  2431.             if plyDist2 < plyDist then
  2432.                 plyDist = plyDist2
  2433.                 target = v
  2434.             end
  2435.             end
  2436.         end
  2437.     end
  2438.  
  2439.  
  2440. for _, b in pairs(aimPlayers) do
  2441.     if !HasHead(target) then
  2442.         AimBone = target:LocalToWorld(target:OBBCenter())
  2443.         else
  2444.         AimBone = target:GetBonePosition(target:LookupBone("ValveBiped.Bip01_Head1"))
  2445.     end
  2446. end
  2447.  
  2448.  
  2449.  
  2450.    
  2451.             if input.IsKeyDown(hlAim.Settings["AimBotKey"]) then
  2452.                 if GetConVarNumber("hl_aimbot_ignore_team") == 1 and target:Team() == LocalPlayer():Team() then return end
  2453.                 if GetConVarNumber("hl_aimbot_ignore_friends") == 1 and target:GetFriendStatus() != "none" then return end
  2454.                 if !AimBone then return end
  2455.                
  2456.                 cmd:SetViewAngles((AimBone - lpos):Angle())
  2457.             end
  2458. end
  2459.  
  2460.  
  2461.  
  2462. cvars.AddChangeCallback("hl_aimbot", function()
  2463.         if GetConVarNumber("hl_aimbot") == 1 then
  2464.                 hook.Add("CreateMove", "aimbothl", hlaimbot)
  2465.         else
  2466.                 hook.Remove("aimbothl")
  2467.         end
  2468. end)
  2469.  
  2470.  
  2471. local ents = ents
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477. local function gethead(ent)
  2478.         if ent:LookupBone("ValveBiped.Bip01_Head1") then
  2479.         local pos = ent:GetBonePosition(ent:GetHitBoxBone(0, 0))
  2480.                 return pos
  2481.         end
  2482.         return ent:LocalToWorld(ent:OBBCenter())
  2483. end
  2484.  
  2485. CreateClientConVar ("hl_aimbot_legit", "0",false,false)
  2486. CreateClientConVar ("hl_aimbot_legit_speed", "0",true,false)
  2487. CreateClientConVar ("hl_aimbot_legit_fov", "60",true,false)
  2488. CreateClientConVar ("hl_aimbot_legit_key", "15",true,false)
  2489. CreateClientConVar ("hl_aimbot_legit_autoshoot", "0",true,false)
  2490.  
  2491. local function aimbot(ucmd)
  2492.  
  2493.         local myang = LocalPlayer():GetAngles()
  2494.         local aimbotfov = GetConVarNumber("hl_aimbot_legit_fov")
  2495.         local aimbotspeed = GetConVarNumber("hl_aimbot_legit_speed")
  2496.         // local aimbotkey_cvar = GetConVarNumber("hl_aimbot_legit_key")
  2497.        
  2498.             if input.IsKeyDown(15) or input.IsMouseDown(15) or aim == true then            
  2499.                 local ply = LocalPlayer()
  2500.                 local target = nil;
  2501.                 for k, ent in next, player.GetAll() do
  2502.                         if (!IsValid(ent) || ent:InVehicle() || ent == LocalPlayer() || !ent:Alive() || ent:IsNPC() || ent:Team() == TEAM_SPECTATOR) then
  2503.                                 continue
  2504.                         end
  2505.  
  2506.                         local ang = (ent:GetPos() - LocalPlayer():GetPos()):Angle()
  2507.                         local angdiffy = math.abs(math.NormalizeAngle(myang.y - ang.y ))
  2508.                         local angdiffp = math.abs(math.NormalizeAngle(myang.p - ang.p ))
  2509.                
  2510.                         if (angdiffy < aimbotfov and angdiffp < aimbotfov) then
  2511.                                 target = ent
  2512.                         surface.DrawCircle( 0, 0, aimbotfov, 0, 255, 0, 255 )
  2513.                        
  2514.                         end
  2515.                 end
  2516.                 if (target != nil) then
  2517.                     if(GetConVarNumber("hl_aimbot_legit") == 1) then
  2518.                         local angle = (gethead(target) - LocalPlayer():GetShootPos()):Angle()
  2519.                         angle.p = math.NormalizeAngle(angle.p)
  2520.                         angle.y = math.NormalizeAngle(angle.y)
  2521.                         ucmd:SetViewAngles(Lerp(aimbotspeed, ucmd:GetViewAngles(), angle))
  2522.                     if(GetConVarNumber("hl_aimbot_legit_autoshoot") == 1) then
  2523.                         ucmd:SetButtons(bit.bor(ucmd:GetButtons(),IN_ATTACK))
  2524.                         timer.Simple(0.05,function()
  2525.                         ucmd:RemoveKey(IN_ATTACK)
  2526.                         end)
  2527.                     end
  2528.                    
  2529.                     if(GetConVarNumber("hl_aimbot_legit") == 0) then
  2530.                         hook.Remove("CreateMove", "bot", aimbot)
  2531.                 end
  2532.             end
  2533.         end
  2534.     end
  2535. end
  2536. hook.Add("CreateMove", "bot", aimbot)
  2537.  
  2538.  
  2539. aimbotnorecoil_cvar = CreateClientConVar ("hl_norecoil", "1", true,false)
  2540.  
  2541. local pmt = FindMetaTable("Player");
  2542.  
  2543. local orecoil = orecoil || pmt.SetEyeAngles;
  2544.  
  2545. function pmt.SetEyeAngles(self, ang)
  2546.     if (aimbotnorecoil_cvar:GetBool() && string.find(string.lower(debug.getinfo(2).short_src),"/weapons/")) then
  2547.         return;
  2548.     end
  2549.     orecoil(self, ang);
  2550. end
  2551. -- Made by hl, Many thanks to Gravko for the help! Gravko credits for aimbot base!
  2552. -- Deligit hooking system and optimiziation of esp and xray a great help-
  2553.  
  2554. surface.PlaySound ("startup1.wav")
  2555. surface.PlaySound ("HL1/fvox/bell.wav")
  2556. MsgC (Color( 255, 171, 0 ), [[
  2557.                  ?MMMI                  
  2558.             MMMMMMMNNNNNNNN            
  2559.          OMMMMNNN.  . ONNNNNNN          
  2560.         MMMMN.            .DDDD+        
  2561.       NMMNN                  DDD8      
  2562.      NMNN      DDDDDD         D888      
  2563.     MNNN         8888.         ,OOO    
  2564.    .NNN           8OOO          OZOO    
  2565.    NNNO           OOZZ.          $ZZ    
  2566.    NNN           ZZZ$$$          777    
  2567.   .NDD          Z$$$7777         :II=  
  2568.    DDD         $$77 III?         ,??~  
  2569.    DD8        $77I.  ??++        =++    
  2570.    D888      77II.    ===.       ~~~    
  2571.    =88O     7II?      ~~~~~::   ::::    
  2572.     8OOZ   7I??.       ::::,.. ,,,,    
  2573.      OZ$$              .      ,,,,      
  2574.       $$7I?                  ....      
  2575.        :I?++=             ......        
  2576.          +==~~::,,    ........          
  2577.             ::,,............            
  2578.                 ........                
  2579.  
  2580. HL SCRIPT LOADED!
  2581.  
  2582. ]])
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588. ----------------- Menu code---------------
  2589. ------- Credits Gmod wiki for help and code snippets--------
  2590.   concommand.Add ("hl_menu",function ()
  2591.  
  2592.  surface.PlaySound ("HL1/fvox/beep.wav")
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598. local frame = vgui.Create( "DFrame" )
  2599. frame:SetSize( 500, 400 )
  2600. frame:Center()
  2601. frame:SetTitle( "HL Scripts ?²" )
  2602. frame:MakePopup()
  2603. frame.Paint = function()
  2604.     surface.SetDrawColor( 255, 115, 0, 150 )
  2605.     surface.DrawRect( 0, 0, frame:GetWide(), frame:GetTall() )
  2606.     surface.SetDrawColor( 255, 255, 255, 255 )
  2607.     surface.DrawOutlinedRect( 0, 0, frame:GetWide(), frame:GetTall() )
  2608. end
  2609.  
  2610.  
  2611.  
  2612.  
  2613. local sheet = vgui.Create( "DPropertySheet", frame )
  2614. sheet:Dock( FILL )
  2615. sheet.Paint = function()
  2616.     surface.SetDrawColor( 255, 115, 0, 150 )
  2617.     surface.DrawRect( 0, 0, sheet:GetWide(), sheet:GetTall() )
  2618. end
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625. local panel1 = vgui.Create( "DPanel", sheet )
  2626. panel1.Paint = function( self, w, h ) draw.RoundedBox( 8, 0, 0, w, h, Color(0, 0, 0 ) ) end
  2627. sheet:AddSheet( "Visuals", panel1, "icon16/eye.png" )
  2628.  
  2629. local hllogo = vgui.Create( "DImage", Frame )   -- Add image to Frame
  2630. hllogo:SetParent( panel1 )
  2631. hllogo:SetPos( 340, 200 )   -- Move it into frame
  2632. hllogo:SetSize( 125, 125 )  -- Size it to 150x150
  2633. hllogo:SetImage( "hl2.jpg" )
  2634.  
  2635.  
  2636.  
  2637. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2638. SheetItemTwo:SetParent( panel1 )
  2639. SheetItemTwo:SetText( "ESP" )
  2640. SheetItemTwo:SetPos (30,20)
  2641. SheetItemTwo:SetConVar( "hl_esp" )
  2642. SheetItemTwo:SizeToContents()
  2643. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2644. DermaImage:SetParent( panel1 )
  2645. DermaImage:SetPos( 10, 19 )
  2646. DermaImage:SetImage( "icon16/eye.png" )
  2647. DermaImage:SizeToContents()
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2654. SheetItemTwo:SetParent( panel1 )
  2655. SheetItemTwo:SetText( "Entity finder" )
  2656. SheetItemTwo:SetPos (30,40)
  2657. SheetItemTwo:SetConVar( "hl_entity" )
  2658. SheetItemTwo:SizeToContents()
  2659. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2660. DermaImage:SetParent( panel1 )
  2661. DermaImage:SetPos( 10, 39 )
  2662. DermaImage:SetImage( "icon16/magnifier.png" )
  2663. DermaImage:SizeToContents()
  2664.  
  2665. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2666. SheetItemTwo:SetParent( panel1 )
  2667. SheetItemTwo:SetText( "X-Ray" )
  2668. SheetItemTwo:SetPos (30,60)
  2669. SheetItemTwo:SetConVar( "hl_xray" )
  2670. SheetItemTwo:SizeToContents()
  2671. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2672. DermaImage:SetParent( panel1 )
  2673. DermaImage:SetPos( 10, 59 )
  2674. DermaImage:SetImage( "icon16/shape_ungroup.png" )
  2675. DermaImage:SizeToContents()
  2676.  
  2677.  
  2678.  
  2679. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2680. SheetItemTwo:SetParent( panel1 )
  2681. SheetItemTwo:SetText( "Admin Alert" )
  2682. SheetItemTwo:SetPos (30,80)
  2683. SheetItemTwo:SetConVar( "hl_adminalert" )
  2684. SheetItemTwo:SizeToContents()
  2685. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2686. DermaImage:SetParent( panel1 )
  2687. DermaImage:SetPos( 10, 79 )
  2688. DermaImage:SetImage( "icon16/exclamation.png" )
  2689. DermaImage:SizeToContents()
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2696. SheetItemTwo:SetParent( panel1 )
  2697. SheetItemTwo:SetText( "Rainbow physgun" )
  2698. SheetItemTwo:SetPos (30,100)
  2699. SheetItemTwo:SetConVar( "hl_rainbow" )
  2700. SheetItemTwo:SizeToContents()
  2701. DermaImage:SetParent( panel1 )
  2702. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2703. DermaImage:SetPos( 10, 99 )
  2704. DermaImage:SetImage( "icon16/color_wheel.png" )
  2705. DermaImage:SizeToContents()
  2706.  
  2707.  
  2708.  
  2709.  
  2710. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2711. SheetItemTwo:SetParent( panel1 )
  2712. SheetItemTwo:SetText( "Crosshair 1" )
  2713. SheetItemTwo:SetPos (30,120)
  2714. SheetItemTwo:SetConVar( "hl_crosshair" )
  2715. SheetItemTwo:SizeToContents()
  2716.  
  2717. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2718. DermaImage:SetParent( panel1 )
  2719. DermaImage:SetPos( 10, 119 )
  2720. DermaImage:SetImage( "icon16/bullet_green.png" )
  2721. DermaImage:SizeToContents()
  2722.  
  2723.  
  2724.  
  2725. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2726. SheetItemTwo:SetParent( panel1 )
  2727. SheetItemTwo:SetText( "Crosshair 2" )
  2728. SheetItemTwo:SetPos (30,140)
  2729. SheetItemTwo:SetConVar( "hl_crosshair2" )
  2730. SheetItemTwo:SizeToContents()
  2731. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2732. DermaImage:SetParent( panel1 )
  2733. DermaImage:SetPos( 10, 139 )
  2734. DermaImage:SetImage( "icon16/bullet_red.png" )
  2735. DermaImage:SizeToContents()
  2736.  
  2737.  
  2738.  
  2739.  
  2740. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2741. SheetItemTwo:SetParent( panel1 )
  2742. SheetItemTwo:SetText( "Watermark" )
  2743. SheetItemTwo:SetPos (30,160)
  2744. SheetItemTwo:SetConVar( "hl_watermark" )
  2745. SheetItemTwo:SizeToContents()
  2746. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2747. DermaImage:SetParent( panel1 )
  2748. DermaImage:SetPos( 10, 159 )
  2749. DermaImage:SetImage( "icon16/text_smallcaps.png" )
  2750. DermaImage:SizeToContents()
  2751.  
  2752.  
  2753.  
  2754. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2755. SheetItemTwo:SetParent( panel1 )
  2756. SheetItemTwo:SetText( "Render Target Spy CAM" )
  2757. SheetItemTwo:SetPos (30,180)
  2758. SheetItemTwo:SetConVar( "hl_rendertargetspy" )
  2759. SheetItemTwo:SizeToContents()
  2760. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2761. DermaImage:SetParent( panel1 )
  2762. DermaImage:SetPos( 10, 179 )
  2763. DermaImage:SetImage( "icon16/camera.png" )
  2764. DermaImage:SizeToContents()
  2765.  
  2766.  
  2767.  
  2768. local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , frame )
  2769. SheetItemTwo:SetParent( panel1 )
  2770. SheetItemTwo:SetText( "HUD" )
  2771. SheetItemTwo:SetPos (30,200)
  2772. SheetItemTwo:SetConVar( "hl_hud" )
  2773. SheetItemTwo:SizeToContents()
  2774.  
  2775.  
  2776.  
  2777. local panel2 = vgui.Create( "DPanel", sheet )
  2778. panel2.Paint = function( self, w, h ) draw.RoundedBox( 8, 0, 0, w, h, Color( 0, 0, 0 ) ) end
  2779. sheet:AddSheet( "Aim", panel2, "icon16/arrow_in.png" )
  2780.  
  2781.  
  2782.  
  2783. local SheetItemTwo = vgui.Create( "DCheckBoxLabel", frame)
  2784. SheetItemTwo:SetParent( panel2 )
  2785. SheetItemTwo:SetPos( 30,20 )
  2786. SheetItemTwo:SetText( "Aimbot" )
  2787. SheetItemTwo:SetConVar( "hl_aimbot" )
  2788. SheetItemTwo:SizeToContents()
  2789. DermaImage = vgui.Create( "DImageButton", frame )
  2790. DermaImage:SetParent( panel2 )
  2791. DermaImage:SetPos( 10, 19 )
  2792. DermaImage:SetImage( "icon16/arrow_in.png" )
  2793. DermaImage:SizeToContents()
  2794.  
  2795.  
  2796.  
  2797.  
  2798. local SheetItemTwo = vgui.Create( "DCheckBoxLabel", frame )
  2799. SheetItemTwo:SetParent( panel2 )
  2800. SheetItemTwo:SetPos( 30,40)
  2801. SheetItemTwo:SetText( "Aimbot Ignore Team" )
  2802. SheetItemTwo:SetConVar( "hl_aimbot_ignore_team" )
  2803. SheetItemTwo:SizeToContents()
  2804. DermaImage = vgui.Create( "DImageButton", frame )
  2805. DermaImage:SetParent( panel2 )
  2806. DermaImage:SetPos( 10, 39 )
  2807. DermaImage:SetImage( "icon16/group_delete.png" )
  2808. DermaImage:SizeToContents()
  2809.  
  2810.  
  2811. local SheetItemTwo = vgui.Create( "DCheckBoxLabel", frame )
  2812. SheetItemTwo:SetParent( panel2 )
  2813. SheetItemTwo:SetPos( 30,60 )
  2814. SheetItemTwo:SetText( "Aimbot Ignore Friends" )
  2815. SheetItemTwo:SetConVar( "hl_aimbot_ignore_friends" )
  2816. SheetItemTwo:SizeToContents()
  2817. DermaImage = vgui.Create( "DImageButton",frame )
  2818. DermaImage:SetParent( panel2 )
  2819. DermaImage:SetPos( 10, 59 )
  2820. DermaImage:SetImage( "icon16/user_delete.png" )
  2821. DermaImage:SizeToContents()
  2822.  
  2823.  
  2824.  
  2825. local SheetItemTwo = vgui.Create( "DCheckBoxLabel",frame )
  2826. SheetItemTwo:SetParent( panel2 )
  2827. SheetItemTwo:SetPos( 30,80 )
  2828. SheetItemTwo:SetText( "Aimbot Ignore Buddies" )
  2829. SheetItemTwo:SetConVar( "hl_aimbot_ignore_buddies" )
  2830. SheetItemTwo:SizeToContents()
  2831. DermaImage = vgui.Create( "DImageButton", frame )
  2832. DermaImage:SetParent( panel2 )
  2833. DermaImage:SetPos( 10, 79 )
  2834. DermaImage:SetImage( "icon16/user_delete.png" )
  2835. DermaImage:SizeToContents()
  2836.  
  2837.  
  2838.  
  2839. local hllogo = vgui.Create( "DImage", Frame )   -- Add image to Frame
  2840. hllogo:SetParent( panel2 )
  2841. hllogo:SetPos( 340, 200 )   -- Move it into frame
  2842. hllogo:SetSize( 125, 125 )  -- Size it to 150x150
  2843. hllogo:SetImage( "hl2.jpg" )
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852. local panel3 = vgui.Create( "DPanel", sheet )
  2853. panel3.Paint = function( self, w, h ) draw.RoundedBox( 8, 0, 0, w, h, Color( 0, 0, 0 ) ) end
  2854. sheet:AddSheet( "Misc", panel3, "icon16/wand.png" )
  2855.  
  2856.  
  2857. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  2858. CheckBoxThing:SetParent( panel3 )
  2859. CheckBoxThing:SetPos( 30,20 )
  2860. CheckBoxThing:SetText( "Auto-jump (Bhop)" )
  2861. CheckBoxThing:SetConVar( "hlbhop" )
  2862. CheckBoxThing:SizeToContents()
  2863.  
  2864. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  2865. CheckBoxThing:SetParent( panel3 )
  2866. CheckBoxThing:SetPos( 30,40 )
  2867. CheckBoxThing:SetText( "Flashlight Spammer" )
  2868. CheckBoxThing:SetConVar( "hl_flashspam" )
  2869. CheckBoxThing:SizeToContents()
  2870. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2871. DermaImage:SetParent( panel3 )
  2872. DermaImage:SetPos( 10, 39 )
  2873. DermaImage:SetImage( "icon16/asterisk_orange.png" )
  2874. DermaImage:SizeToContents()
  2875.  
  2876.  
  2877. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2878. DermaImage:SetParent( panel3 )
  2879. DermaImage:SetPos( 10, 19 )
  2880. DermaImage:SetImage( "icon16/arrow_up.png" )
  2881. DermaImage:SizeToContents()
  2882.  
  2883.  
  2884. local hllogo = vgui.Create( "DImage", Frame )   -- Add image to Frame
  2885. hllogo:SetParent( panel3 )
  2886. hllogo:SetPos( 340, 200 )   -- Move it into frame
  2887. hllogo:SetSize( 125, 125 )  -- Size it to 150x150
  2888. hllogo:SetImage( "hl2.jpg" )
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894. local DermaButton = vgui.Create( "DButton" , frame)
  2895. DermaButton:SetParent( panel3 )
  2896. DermaButton:SetText( "Music" )
  2897. DermaButton:SetPos( 140, 240 )
  2898. DermaButton:SetSize( 90, 30 )
  2899. DermaButton.DoClick = function ()
  2900.     RunConsoleCommand( "hl_music" )
  2901. end
  2902.  
  2903. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2904. DermaImage:SetParent (panel3)
  2905. DermaImage:SetPos( 140, 240)
  2906. DermaImage:SetImage( "icon16/sound_mute.png" )
  2907. DermaImage.DoClick = function ()
  2908.     RunConsoleCommand ("stopsound")
  2909.     end
  2910. DermaImage:SizeToContents()
  2911.  
  2912.  
  2913.  
  2914.  
  2915. local DermaButton = vgui.Create( "DButton" , DermaPanel )
  2916. DermaButton:SetParent( panel3 )
  2917. DermaButton:SetText( "Add waypoint" )
  2918. DermaButton:SetPos( 30, 80 )
  2919. DermaButton:SetSize( 90, 30 )
  2920. DermaButton.DoClick = function ()
  2921.     RunConsoleCommand( "hl_add_waypoint" )
  2922. end
  2923.  
  2924.  
  2925. local DermaButton = vgui.Create( "DButton", DermaPanel  )
  2926. DermaButton:SetParent( panel3 )
  2927. DermaButton:SetText( "Remove waypoint" )
  2928. DermaButton:SetPos( 30, 120 )
  2929. DermaButton:SetSize( 90, 30 )
  2930. DermaButton.DoClick = function ()
  2931.     RunConsoleCommand( "hl_remove_waypoint" )
  2932. end
  2933.  
  2934.  
  2935.  
  2936. local DermaButton = vgui.Create( "DButton", DermaPanel )
  2937. DermaButton:SetParent( panel3 )
  2938. DermaButton:SetText( "180" )
  2939. DermaButton:SetPos( 30, 160)
  2940. DermaButton:SetSize( 90, 30 )
  2941. DermaButton.DoClick = function ()
  2942.     RunConsoleCommand( "hl_180" )
  2943. end
  2944.  
  2945.  
  2946. local DermaButton = vgui.Create( "DButton", DermaPanel )
  2947. DermaButton:SetParent( panel3 )
  2948. DermaButton:SetText( "Local chatroom" )
  2949. DermaButton:SetPos( 30, 240 )
  2950. DermaButton:SetSize( 90, 30 )
  2951. DermaButton.DoClick = function ()
  2952.     RunConsoleCommand( "hl_localchat" )
  2953. end
  2954.  
  2955.  
  2956. local DermaButton = vgui.Create( "DButton" , DermaPanel)
  2957. DermaButton:SetParent( panel3 )
  2958. DermaButton:SetText( "Help " )
  2959. DermaButton:SetPos( 30, 200 )
  2960. DermaButton:SetSize( 90, 30 )
  2961. DermaButton.DoClick = function ()
  2962.     RunConsoleCommand( "hl_donate" )
  2963. end
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969. local DermaButton = vgui.Create( "DButton", DermaPanel )
  2970. DermaButton:SetParent( panel3 )
  2971. DermaButton:SetText( "Duplicate Weapon" )
  2972. DermaButton:SetPos( 140, 200 )
  2973. DermaButton:SetSize( 90, 30 )
  2974. DermaButton.DoClick = function ()
  2975.     RunConsoleCommand( "hl_wepdupe" )
  2976. end
  2977.  
  2978.  
  2979.  
  2980.  
  2981. local DermaButton = vgui.Create( "DButton", DermaPanel )
  2982. DermaButton:SetParent( panel3 )
  2983. DermaButton:SetText( "About" )
  2984. DermaButton:SetPos( 140,160 )
  2985. DermaButton:SetSize( 90, 30 )
  2986. DermaButton.DoClick = function ()
  2987.     RunConsoleCommand( "hl_about" )
  2988. end
  2989.  
  2990.  
  2991.  
  2992.  
  2993. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  2994. DermaImage:SetParent (panel3)
  2995. DermaImage:SetPos( 280, 32 )
  2996. DermaImage:SetImage( "icon16/application_osx_terminal.png" )
  2997. DermaImage:SizeToContents()
  2998.  
  2999. local DLabel = vgui.Create( "DLabel", Panel )
  3000. DLabel:SetParent (panel3)
  3001. DLabel:SetPos( 232, 30)
  3002. DLabel:SetText( "Run Lua" )
  3003.  
  3004. local DLabel = vgui.Create( "DLabel", Panel )
  3005. DLabel:SetParent (panel3)
  3006. DLabel:SetPos( 232.5, 58)
  3007. DLabel:SetText( "Chatspam" )
  3008.  
  3009. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  3010. CheckBoxThing:SetParent( panel3 )
  3011. CheckBoxThing:SetPos( 30,60 )
  3012. CheckBoxThing:SetText( "Chat Spammer" )
  3013. CheckBoxThing:SetConVar( "hl_chatspammer_nr" )
  3014. CheckBoxThing:SizeToContents()
  3015.  
  3016. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  3017. DermaImage:SetParent( panel3 )
  3018. DermaImage:SetPos( 10, 59)
  3019. DermaImage:SetImage( "icon16/comments.png" )
  3020. DermaImage:SizeToContents()
  3021.  
  3022.  
  3023.  
  3024. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  3025. DermaImage:SetParent (panel3)
  3026. DermaImage:SetPos( 280, 60 )
  3027. DermaImage:SetImage( "icon16/comments_add.png" )
  3028. DermaImage:SizeToContents()
  3029.  
  3030.  
  3031. local DermaText = vgui.Create( "DTextEntry", DermaPanel )
  3032. DermaText:SetParent (panel3)
  3033. DermaText:SetPos( 300,28 )
  3034. DermaText:SetTall( 20 )
  3035. DermaText:SetWide( 120 )
  3036. DermaText:SetEnterAllowed( true )
  3037. DermaText.OnEnter = function ()
  3038.     RunConsoleCommand ("hl_openscript", DermaText:GetValue())
  3039.         surface.PlaySound ("npc/scanner/scanner_scan2.wav")
  3040.         chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "LUA ENTERED")
  3041. end
  3042.  
  3043. local DermaText = vgui.Create( "DTextEntry", DermaPanel )
  3044. DermaText:SetParent (panel3)
  3045. DermaText:SetPos( 300,58 )
  3046. DermaText:SetTall( 20 )
  3047. DermaText:SetWide( 120 )
  3048. DermaText:SetEnterAllowed( true )
  3049. DermaText.OnEnter = function ()
  3050.   RunConsoleCommand ("hl_chatspammer_nr_message", DermaText:GetValue())
  3051.         chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "CHAT MESSAGE CONFIRMED")
  3052.         surface.PlaySound ("npc/scanner/scanner_scan1.wav")
  3053. end
  3054.  
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075. local panel4 = vgui.Create( "DPanel", sheet )
  3076. panel4.Paint = function( self, w, h ) draw.RoundedBox( 8, 0, 0, w, h, Color( 0, 0, 0 ) ) end
  3077. sheet:AddSheet( "Chat", panel4, "icon16/world_go.png" )
  3078.  
  3079. HTMLTEST = vgui.Create("HTML", DermaPanel)
  3080. HTMLTEST:SetParent( panel4 )
  3081. HTMLTEST:SetPos(10,10)
  3082. HTMLTEST:SetSize(450,300)
  3083. HTMLTEST:OpenURL(" http://darkv1lua.chatovod.com/")
  3084.  
  3085.  
  3086.  
  3087. end)
  3088.  
  3089.  
  3090.  
  3091. concommand.Add ("hl_help" ,function ()
  3092. MsgC (Color( 255, 171, 0 ),[[
  3093.  
  3094.                  ?MMMI                  
  3095.             MMMMMMMNNNNNNNN            
  3096.          OMMMMNNN.  . ONNNNNNN          
  3097.         MMMMN.            .DDDD+        
  3098.       NMMNN                  DDD8      
  3099.      NMNN      DDDDDD         D888      
  3100.     MNNN         8888.         ,OOO    
  3101.    .NNN           8OOO          OZOO    
  3102.    NNNO           OOZZ.          $ZZ    
  3103.    NNN           ZZZ$$$          777    
  3104.   .NDD          Z$$$7777         :II=  
  3105.    DDD         $$77 III?         ,??~  
  3106.    DD8        $77I.  ??++        =++    
  3107.    D888      77II.    ===.       ~~~    
  3108.    =88O     7II?      ~~~~~::   ::::    
  3109.     8OOZ   7I??.       ::::,.. ,,,,    
  3110.      OZ$$              .      ,,,,      
  3111.       $$7I?                  ....      
  3112.        :I?++=             ......        
  3113.          +==~~::,,    ........          
  3114.             ::,,............            
  3115.                 ........                
  3116.  
  3117.                                        
  3118.                    ---------------------------------
  3119.                    -----LIST OF CONSOLE COMMANDS----
  3120.                    ---------------------------------
  3121. hl_menu -- Opens the menu
  3122. hl_xray -- toggles the general xray
  3123. hl_entity -- toggles the Entity finder/esp (printers,money,weapons)
  3124. hl_180 -- Do a 180 flip
  3125. hlbhop -- Toggles bunny hop
  3126. hl_chat-- Toggles the autospam default message is (ooc) hl is cool!
  3127. hl_music -- Toggles a hl2 song
  3128. hl_adminalert -- Toggles the admin alert
  3129. hlide_adminalert_distance -- Admin alert distance
  3130. hl_chatspammermer - Toggle the chatspam on and off default message is "default message"
  3131. hl_chatspammermer_msg -- You can change the chatspam message via the menu press enter on the chatspam input or do hl_chatspammer yourmessagehere
  3132. hl_flashspam -- Toggles the Flashlight spammer!
  3133. hl_rainbow - Toggles the rainbow physgun, It is clientside only so YOU only see this!
  3134. hl_unload -- Unloads the script! (Exits the script May be buggy)
  3135. hl_aimbot -- Toggles the aimbot, Hold E to activate
  3136. hl_aimbot_ignore_buddies -- Toggles the aimbot to ignore buddies
  3137. hl_aimbot_ignore_friends -- Toggles the aimbot to ignore friends
  3138. hl_aimbot_ignore_team -- Toggles the aimbot to ignore teammates
  3139. hl_rendertargetspy -- Toggles the render target spy camera, Server must have render target camera for this to work!
  3140. hl_crosshair 1 -- Toggles the first crosshair
  3141. hl_crosshair 2 -- toggles the second crosshair
  3142. hl_help -- Prints help message
  3143. hl_globalchat - Access a global chatroom to speak to other users of lua scripts!
  3144. hl_localchat -- Speak to other hls scripts V1 and shittyscripts users on the same server.
  3145. ]])
  3146. end )
  3147.  
  3148. if hl then
  3149.         rawset(_G, "hl", nil)
  3150. end
  3151.  
  3152. local hl = {} // make local table
  3153.  
  3154. hl.g = table.Copy(_G); // copy _G
  3155.  
  3156. function hl.Copy(t, lookup_table)
  3157.     if (t == nil) then return nil end
  3158.     local copy = {}
  3159.     setmetatable(copy, getmetatable(t))
  3160.         for i,v in pairs(t) do
  3161.             if ( !istable(v) ) then
  3162.                      copy[i] = v
  3163.                 else
  3164.                     lookup_table = lookup_table or {}
  3165.                     lookup_table[t] = copy
  3166.                     if lookup_table[v] then
  3167.                         copy[i] = lookup_table[v]
  3168.                     else
  3169.                         copy[i] = hl.Copy(v,lookup_table) --
  3170.                     end
  3171.                 end
  3172.         end
  3173.     return copy
  3174. end
  3175.  
  3176. hl.new_gm_hooks                       = {};
  3177. hl.gm_hooks                           = {};                              
  3178. hl.old_gm_hooks                       = {};
  3179. hl.OrigFuncs                          = {};
  3180. hl.FakeFuncs                          = {};
  3181. hl.CmdHooks                           = {};
  3182. hl.Plys                                       = {} // table for valid players
  3183. hl.me                                         = hl.g.LocalPlayer()
  3184. hl.gm                                         = table.Copy(GAMEMODE)
  3185. hl.cm                                         = hl.Copy(hl.g.FindMetaTable("CUserCmd")) // we need these
  3186. hl.am                                         = hl.Copy(hl.g.FindMetaTable("Angle")) // we need these
  3187. hl.vm                                         = hl.Copy(hl.g.FindMetaTable("Vector")) // we need these
  3188. hl.wm                                         = hl.Copy(hl.g.FindMetaTable("Weapon")) // we need these
  3189. hl.em                                         = hl.Copy(hl.g.FindMetaTable("Entity")) // we need these
  3190. hl.pm                                         = hl.Copy(hl.g.FindMetaTable("Player")) // we need these
  3191. hl.r                                          = hl.Copy(hl.g.debug.getregistry()) // we need these
  3192. hl.ConCMD                                     = hl.Copy(concommand)
  3193. hl.odbginf                            = debug.getinfo;
  3194. hl.ogmt                                       = getmetatable;
  3195. hl.shouldbhop                         = CreateClientConVar("hlbhop", "1", true, true)
  3196. hl.xrei                                       = CreateClientConVar("hl_xray", 0, false, false)
  3197. hl.adminwarning                       = CreateClientConVar("hl_adminalert", "1", true, false)
  3198.  hl.espon                     = CreateClientConVar("hl_esp", "1", false, false)
  3199.  
  3200.  
  3201.  
  3202. hl.g.surface.CreateFont(
  3203.         "hlfont", {
  3204.             font = "Default",
  3205. size = 15,                  
  3206. weight = 250,
  3207.         }
  3208. )
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217. function hl.DetourFunc(func, newfunc) // luv from deligit to my nigga Function <3
  3218.     hl.g.table.insert(hl.OrigFuncs, func);
  3219.     hl.g.table.insert(hl.FakeFuncs, newfunc);
  3220. end
  3221.  
  3222. function hl.CopyTable(t, lookup_table)
  3223.     if (t == nil) then return nil end
  3224.     local copy = {}
  3225.     setmetatable(copy, getmetatable(t))
  3226.         for i,v in hl.g.pairs(t) do
  3227.             if ( !istable(v) ) then
  3228.                      copy[i] = v
  3229.                 else
  3230.                     lookup_table = lookup_table or {}
  3231.                     lookup_table[t] = copy
  3232.                     if lookup_table[v] then
  3233.                         copy[i] = lookup_table[v]
  3234.                     else
  3235.                         copy[i] = hl.CopyTable(v,lookup_table) --
  3236.                     end
  3237.                 end
  3238.         end
  3239.     return copy
  3240. end
  3241.  
  3242. setmetatable(_G, {
  3243.         ['__index'] = function(self, k)
  3244.                 if k == "hl" then
  3245.                         return hl;
  3246.         end
  3247.     end,
  3248.     ['__newindex'] = function(self, k, v)
  3249.                 hl.g.rawset(self, k, v);
  3250.                 if k == "GAMEMODE" then
  3251.                         for k,v in hl.g.pairs(GAMEMODE) do
  3252.                                 hl.old_gm_hooks[k] = v;
  3253.             end
  3254.                         local GMTbl = GAMEMODE;
  3255.                         if !(getmetatable(GMTbl)) then
  3256.                                 setmetatable(GMTbl, {
  3257.                                         ['__newindex'] = function(self, k, v)
  3258.                                                 hl.old_gm_hooks[k] = v;
  3259.                                         end,
  3260.                                         ['__call'] = function(self, k, id, v)
  3261.                                                 if (not hl.gm_hooks[k]) then hl.gm_hooks[k] = {}; end
  3262.                                                 hl.gm_hooks[k][id] = v
  3263.                                                         if (not hl.new_gm_hooks[k]) then
  3264.                                                                 hl.new_gm_hooks[k] = function(GM, ...)
  3265.                                                                         if (hl.old_gm_hooks[k]) then
  3266.                                                                                 hl.old_gm_hooks[k](GM, ...);
  3267.                                                                         end
  3268.                                                                         for k,v in hl.g.pairs(hl.gm_hooks[k]) do
  3269.                                                                                 v(...);
  3270.                                                                         end
  3271.                                                                 end
  3272.                                                                 hl.DetourFunc(hl.old_gm_hooks[k], hl.new_gm_hooks[k]);
  3273.                                                         end    
  3274.                                                 hl.g.rawset(self, k, hl.new_gm_hooks[k]);
  3275.                                         end,
  3276.                                         ['__index'] = function(self, k)
  3277.                                                 local returnval = hl.old_gm_hooks[k] or rawget(self, k);
  3278.                                                 return returnval
  3279.                                         end,
  3280.                                 });
  3281.             end
  3282.         end
  3283.     end,
  3284. });
  3285.  
  3286. function hl.Hook(typ, func)
  3287.         if hl.gm[typ] and GAMEMODE[typ] then
  3288.                 GAMEMODE[typ] = function(...)
  3289.                         hl.gm[typ](...)
  3290.                         func(...)
  3291.                 end
  3292.         end
  3293. end
  3294.  
  3295. local ndbginf = function(func, ...)
  3296.         local args = {...};
  3297.         local targ = func;
  3298.         local arg = args[1] or false;
  3299.         for i, fakefunc in hl.g.pairs(hl.FakeFuncs) do
  3300.                 if (func == fakefunc) then
  3301.                         targ = hl.OrigFuncs[i];
  3302.                         break;
  3303.                 end
  3304.         end
  3305.         local tbl = arg and hl.odbginf(targ, arg) or hl.odbginf(targ);
  3306.         if (tbl.func) then tbl.func = func; end
  3307.         return(tbl)
  3308. end
  3309.  
  3310. local ngmt = function(tbl, ...)
  3311. if (hl.gdebug.traceback() and (tbl == _G or tbl == GAMEMODE)) then return nil; end
  3312.         return hl.ogmt(tbl, ...);
  3313. end
  3314.  
  3315. hl.DetourFunc(debug.getinfo,   ndbginf);
  3316. debug.getinfo   = ndbginf;
  3317.  
  3318. function hl.GetPlys() // faster than calling player.GetAll all the time
  3319.         hl.Plys = {}
  3320.         local humans = hl.g.player.GetAll()
  3321.         for i = 1, #humans do
  3322.                 local v = humans[i]
  3323.                 if (!IsValid(v) || v == hl.me || !v:Alive() || v:Health() < 1) then continue end
  3324.                 hl.Plys[i] = v
  3325.                 hl.Plys[i] = v
  3326.         end
  3327.         hl.g.timer.Simple(2, hl.GetPlys) // better than using hooks
  3328. end
  3329.  
  3330.  hl.GetPlys()
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  hl.Hook("DrawOverlay", function(ucmd)
  3336.         local humans = hl.g.player.GetAll()
  3337.         if hl.espon:GetBool() then
  3338.         for k,v in next, humans do
  3339.                 if (!IsValid(v) || v == hl.me || !v:Alive() || v:Health() < 1 || v:Name() == nil) then continue end
  3340.                 local c = v:LocalToWorld( v:OBBCenter() ):ToScreen()
  3341.                -- hl.g.draw.SimpleTextOutlined( v:Name(), "hlhud", c.x, c.y + 20, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3342.                -- hl.g.draw.SimpleTextOutlined( v:Health(), "hlhud", c.x, c.y - 10, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3343.                -- hl.g.draw.SimpleTextOutlined( team.GetName( v:Team()), "hlhud", c.x, c.y, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3344.                -- hl.g.draw.SimpleTextOutlined( v:GetUserGroup(), "hlhud", c.x, c.y + 10, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3345.                 -- hl.g.draw.SimpleTextOutlined( hl.g.math.Round( v:GetPos():Distance(LocalPlayer():GetPos())), "hlhud", c.x, c.y - 20, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0))
  3346.        
  3347.     hl.g.draw.SimpleTextOutlined( v:Name(), "hlfont", c.x , c.y - 25, Color(255,255,255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0, 0 , 0 ))
  3348.        
  3349.  
  3350.         hl.g.draw.SimpleTextOutlined( v:Health(), "hlfont", c.x , c.y  - 45, Color(255,255,255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0, 0 , 0 ))
  3351.          
  3352.          hl.g.draw.SimpleTextOutlined( v:GetUserGroup(), "hlfont", c.x , c.y - 35, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color( 0, 0 , 0 ))
  3353.  
  3354.          hl.g.draw.RoundedBox( 3, c.x - 10 , c.y - 65, 15,  5, (team.GetColor( v:Team() )))
  3355.         hl.g.draw.SimpleTextOutlined( math.Round( v:GetPos():Distance(LocalPlayer():GetPos())), "hlfont", c.x , c.y  - 55, Color(255,255,255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0, 0 , 0 ))
  3356.  
  3357.        
  3358.         end
  3359.     end
  3360. end)
  3361.  
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  -------------- ESP POSISTIONING ON THIS VERSION IS SCREWED UP DONT UPLOAD WITH THIS ACTIVE UNTIL THE ESP IS FULLY FIXED ALSO EXPERIMENTAL METHODS OF DOING THINGS ARE HERE MUST DO SURVEYS/OPINIONS BEFORE USING THIS VERSION!
  3367. ---hl.Hook("DrawOverlay", function(ucmd)
  3368.        --- local humans = hl.g.player.GetAll()
  3369.        ---- for k,v in next, humans do
  3370.             ----    if (!IsValid(v) || v == hl.me || !v:Alive() || v:Health() < 1 || v:Name() == nil) then continue end
  3371.             -----    local c = v:LocalToWorld( v:OBBCenter() ):ToScreen()
  3372.                
  3373.                 -------------- ESP POSISTIONING ON THIS VERSION IS SCREWED UP DONT UPLOAD UNTIL THE ESP IS FULLY FIXED ALSO EXPERIMENTAL METHODS OF DOING THINGS ARE HERE MUST DO SURVEYS/OPINIONS BEFORE USING THIS VERSION!
  3374.                
  3375.                 --- hl.g.draw.RoundedBox( 6, c.x - 26, c.y - 100, 50,  70, Color( 255, 255, 255, 100 ) ) --- need to get peoples opinions before i can use this
  3376.                
  3377.                 ----hl.g.draw.SimpleTextOutlined( hl.g.math.Round( v:GetPos():Distance(LocalPlayer():GetPos())), "hlhud", c.x - 20, c.y - 90, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0))
  3378.                
  3379.                 ---hl.g.draw.WordBox( 8, c.x - 26, c.y - 100, v:Health(), "hlhud", team.GetColor( v:Team() ), Color(255,255,255,255) ) -- maybe good idea??????????????????? wordboxes look good but are big and cant make any smaller,.,
  3380.                
  3381.                 ----hl.g.draw.WordBox( 8, c.x - 26, c.y - 100, ( team.GetName( v:Team())), "hlhud", team.GetColor( v:Team() ), Color(255,255,255,255) )
  3382.                
  3383.                
  3384.                 ---- hl.g.draw.SimpleTextOutlined( team.GetName( v:Team()), "hlhud", c.x - 20 , c.y - 80 , team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3385.                
  3386.                -----  hl.g.draw.SimpleTextOutlined( v:Health(), "hlhud", c.x - 20, c.y  - 70, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3387.                
  3388.                ----  hl.g.draw.SimpleTextOutlined( v:GetUserGroup(), "hlhud", c.x - 20, c.y - 60, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3389.                
  3390.                 ---- hl.g.draw.SimpleTextOutlined( v:Name(), "hlhud", c.x - 20, c.y  - 50, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  3391.                
  3392.                  
  3393.  
  3394.       ----  end
  3395. ---- end)
  3396.  
  3397. hl.Hook("CreateMove", function(data, ucmd)
  3398.         if (ucmd:KeyDown(2) && !hl.me:IsOnGround() && hl.shouldbhop:GetBool()) then
  3399.         ucmd:SetButtons( bit.band( ucmd:GetButtons(), bit.bnot(2) ) );
  3400.         end
  3401. end)
  3402.  
  3403. local pm = FindMetaTable("Player");
  3404.  
  3405. local ogethands = hl.pm.GetHands; -- Note: Only for c_ viewmodels
  3406.  
  3407. function pm.GetHands(...)
  3408.         return false && ogethands(...);
  3409. end
  3410.  
  3411. function hl.AdminAlert()
  3412.         if hl.adminwarning:GetBool() then
  3413.         for k,v in next, hl.Plys do
  3414.                         local amdminipos = v:LocalToWorld(v:OBBCenter()):ToScreen()
  3415.                         local admindist = hl.g.math.floor((LocalPlayer():GetPos():Distance( v:GetPos()))/40)
  3416.                         if v:GetUserGroup() != "user" and v != LocalPlayer() then
  3417.                                 hl.g.draw.DrawText( "An admin is nearby!", "DermaLarge", ScrW() * 0.5, ScrH() * 0.7, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER )
  3418.                                 hl.g.surface.PlaySound ("vo/trainyard/female01/cit_bench01.wav")
  3419.                                 hl.g.surface.SetDrawColor(255,0,0)
  3420.                                 hl.g.surface.DrawLine(ScrW() * .5, ScrH() * .5, amdminipos.x, amdminipos.y)
  3421.                         end
  3422.                 end
  3423.         end
  3424. end
  3425.  
  3426. local chamsmat = hl.g.CreateMaterial("z", "VertexLitGeneric", {
  3427.         ["$ignorez"] = 1,
  3428.         ["$model"] = 1,
  3429.         ["$basetexture"] = "models/debug/debugwhite",
  3430. });
  3431.  
  3432. local chamsmat2 = hl.g.CreateMaterial("y", "vertexlitgeneric", {
  3433.         ["$ignorez"] = 0,
  3434.         ["$model"] = 1,
  3435.         ["$basetexture"] = "models/debug/debugwhite",
  3436. });
  3437.  
  3438. hl.xraymat = hl.g.CreateMaterial(hl.g.util.CRC("hl_xraymat"), "VertexLitGeneric", {
  3439.         ["$basetexture"] = "models/debug/debugwhite"
  3440. })
  3441.  
  3442. hl.Hook("HUDPaint", function()
  3443.         local allprops = hl.g.ents.FindByClass("prop_physics")
  3444.         for i = 1, #allprops do
  3445.                 local v = allprops[i]
  3446.                 if !hl.em.IsValid(v) then continue end
  3447.                 if !hl.xrei:GetBool() then
  3448.                         hl.em.SetNoDraw(v, false)
  3449.                         continue
  3450.                 end
  3451.                 hl.g.cam.Start3D()
  3452.                         hl.g.render['SuppressEngineLighting'](true)
  3453.                         hl.g.render['MaterialOverride'](hl.xraymat)
  3454.                         hl.g.render.SetColorModulation(255,145,0)
  3455.                         v:SetColor(Color(255,255,255))
  3456.                         hl.g.render.SetBlend(0.10)
  3457.                         hl.em.DrawModel(v)
  3458.                         hl.em.SetNoDraw(v, true)
  3459.                         hl.g.render['SuppressEngineLighting'](false)
  3460.                        
  3461.                         hl.em.DrawModel(v)
  3462.                 hl.g.cam.End3D()
  3463.         end
  3464.         if !ShowSpec then return end
  3465.         local spectatePlayers = {}
  3466.         local x = 0
  3467.         for k,v in hl.g.next, hl.Plys do
  3468.             if v:GetObserverTarget() == LocalPlayer() then
  3469.                 hl.g.table.insert(spectatePlayers, v:Name())
  3470.                         end
  3471.         end
  3472.         if #spectatePlayers == 0 then return end
  3473.         local textLength = surface.GetTextSize(hl.g.table.concat(spectatePlayers) ) / 3
  3474.         hl.g.draw.RoundedBox(1, ScrW() - 180, ScrH() - ScrH() + 15, 150, 30 + textLength, Color(0,0,0,150))
  3475.         hl.g.draw.SimpleText("Spectators", "TabLarge", ScrW() - 140, ScrH() - ScrH() + 18, Color(130, 0, 255, 255))
  3476.         hl.g.draw.SimpleText("Spectators", "TabLarge", ScrW() - 140, ScrH() - ScrH() + 16, Color(0, 255, 25, 255))
  3477.         for k,v in hl.g.next, spectatePlayers do
  3478.         hl.g.draw.SimpleText(v, "TabLarge", ScrW() - 140, ScrH() - ScrH() + 37 + x, Color(130, 0, 255, 255))
  3479.                 hl.g.draw.SimpleText(v, "TabLarge", ScrW() - 140, ScrH() - ScrH() + 35 + x, Color(75, 255, 25, 255))
  3480.         x = x + 15
  3481.     end
  3482. end)
  3483.  
  3484. // ?
  3485.  
  3486.  
  3487. chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "HL SCRIPT ONLINE...")
  3488. chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ENTER HL_MENU INTO THE CONSOLE")
  3489. chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ALL SYSTEMS ONLINE")
  3490.  
  3491.  
  3492. cvars.AddChangeCallback("hl_xray", function(convar_name, value_old, value_new)
  3493.         if GetConVarNumber("hl_xray") == 1 then
  3494.             surface.PlaySound ("npc/sniper/reload1.wav")
  3495.                 chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "X-RAY IS TURNED", Color( 13, 255, 134 ), "  ON")
  3496.         elseif GetConVarNumber("hl_xray") == 0 then
  3497.                 chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "X-RAY IS TURNED", Color( 255,110,0 ), "  OFF" )
  3498.             surface.PlaySound ("vehicles/APC/apc_shutdown.wav")
  3499.         end
  3500. end)
  3501.  
  3502.  cvars.AddChangeCallback("hlbhop", function(convar_name, value_old, value_new)
  3503.         if GetConVarNumber("hlbhop") == 1 then
  3504.             surface.PlaySound ("ambient/machines/thumper_startup1.wav")
  3505.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AUTOJUMP IS TURNED", Color( 13, 255, 134 ), "  ON")
  3506.         elseif GetConVarNumber("hlbhop") == 0 then
  3507.                 chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AUTOJUMP IS TURNED", Color( 255,110,0 ), "  OFF" )
  3508.             surface.PlaySound ("buttons/combine_button5.wav")
  3509.         end
  3510. end)
  3511.  
  3512.   cvars.AddChangeCallback("hl_entity", function(convar_name, value_old, value_new)
  3513.         if GetConVarNumber("hl_entity") == 1 then
  3514.             surface.PlaySound ("buttons/combine_button1.wav")
  3515.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ENTITY FINDER IS TURNED", Color( 13, 255, 134 ), "  ON")
  3516.         elseif GetConVarNumber("hl_entity") == 0 then
  3517.         chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ENTITY FINDER IS TURNED", Color( 255,110,0 ), "  OFF!")
  3518.             surface.PlaySound ("buttons/combine_button2.wav")
  3519.         end
  3520. end)
  3521.  
  3522.  
  3523.    cvars.AddChangeCallback("hl_adminalert", function(convar_name, value_old, value_new)
  3524.         if GetConVarNumber("hl_adminalert") == 1 then
  3525.             surface.PlaySound ("buttons/combine_button1.wav")
  3526.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ADMIN ALERT IS TURNED", Color( 13, 255, 134 ), "  ON")
  3527.         elseif GetConVarNumber("hl_adminalert") == 0 then
  3528.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ADMIN ALERT IS TURNED",Color( 255,110,0 ), "  OFF")
  3529.             surface.PlaySound ("buttons/combine_button2.wav")
  3530.         end
  3531. end)
  3532.  
  3533.  
  3534.  
  3535.     cvars.AddChangeCallback("hl_chatspammer_nr", function(convar_name, value_old, value_new)
  3536.         if GetConVarNumber("hl_chatspammer_nr") == 1 then
  3537.             surface.PlaySound ("buttons/combine_button1.wav")
  3538.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AUTOMATIC CHAT SPAM IS TURNED", Color( 13, 255, 134 ), "  ON")
  3539.         elseif GetConVarNumber("hl_chatspammer_nr") == 0 then
  3540.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AUTOMATIC CHAT SPAM IS TURNED", Color( 255,110,0 ), "  OFF")
  3541.             surface.PlaySound ("buttons/combine_button2.wav")
  3542.         end
  3543. end)
  3544.  
  3545.  
  3546.  
  3547.  
  3548.      cvars.AddChangeCallback("hl_flashspam", function(convar_name, value_old, value_new)
  3549.         if GetConVarNumber("hl_flashspam") == 1 then
  3550.             surface.PlaySound ("buttons/combine_button1.wav")
  3551.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "FLASHLIGHT SPAMMER IS TURNED", Color( 13, 255, 134 ), "  ON")
  3552.         elseif GetConVarNumber("hl_flashspam") == 0 then
  3553.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "FLASHLIGHT SPAMMER IS TURNED", Color( 255,110,0 ), "  OFF")
  3554.             surface.PlaySound ("buttons/combine_button2.wav")
  3555.         end
  3556. end)
  3557.  
  3558.  
  3559.       cvars.AddChangeCallback("hl_rainbow", function(convar_name, value_old, value_new)
  3560.         if GetConVarNumber("hl_rainbow") == 1 then
  3561.             surface.PlaySound ("ambient/energy/whiteflash.wav")
  3562.                 chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "REACTIVE COLOUR PHYSGUN IS TURNED", Color( 13, 255, 134 ), "  ON")
  3563.         elseif GetConVarNumber("hl_rainbow") == 0 then
  3564.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "REACTIVE COLOUR PHYSGUN IS TURNED", Color( 255,110,0 ), "  OFF")
  3565.             surface.PlaySound ("npc/roller/code2.wav")
  3566.         end
  3567. end)
  3568.  
  3569.  
  3570.  
  3571.        cvars.AddChangeCallback("hl_hud", function(convar_name, value_old, value_new)
  3572.         if GetConVarNumber("hl_hud") == 1 then
  3573.             surface.PlaySound ("npc/scanner/combat_scan2.wav")
  3574.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ON SCREEN HUD IS TURNED", Color( 13, 255, 134 ), "  ON")
  3575.         elseif GetConVarNumber("hl_hud") == 0 then
  3576.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ON SCREEN HUD IS TURNED", Color( 255,110,0 ), "  OFF")
  3577.             surface.PlaySound ("npc/scanner/combat_scan5.wav")
  3578.         end
  3579. end)
  3580.  
  3581.  
  3582.  
  3583.         cvars.AddChangeCallback("hl_watermark", function(convar_name, value_old, value_new)
  3584.         if GetConVarNumber("hl_watermark") == 1 then
  3585.             surface.PlaySound ("npc/scanner/combat_scan2.wav")
  3586.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "WATERMARK IS TURNED", Color( 13, 255, 134 ), "  ON")
  3587.         elseif GetConVarNumber("hl_watermark") == 0 then
  3588.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ON SCREEN HUD IS TURNED", Color( 255,110,0 ), "  OFF")
  3589.             surface.PlaySound ("npc/scanner/combat_scan5.wav")
  3590.         end
  3591. end)
  3592.  
  3593.  
  3594.          cvars.AddChangeCallback("hl_crosshair", function(convar_name, value_old, value_new)
  3595.         if GetConVarNumber("hl_crosshair") == 1 then
  3596.             surface.PlaySound ("npc/roller/mine/rmine_blip3.wav")
  3597.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ASSISTANCE CROSSHAIR IS TURNED", Color( 13, 255, 134 ), "  ON")
  3598.         elseif GetConVarNumber("hl_crosshair") == 0 then
  3599.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ASSISTANCE CROSSHAIR IS TURNED", Color( 255,110,0 ), "  OFF")
  3600.             surface.PlaySound ("npc/roller/mine/combine_mine_deactivate1.wav")
  3601.         end
  3602. end)
  3603.  
  3604.  
  3605.  
  3606.  
  3607.          cvars.AddChangeCallback("hl_crosshair2", function(convar_name, value_old, value_new)
  3608.         if GetConVarNumber("hl_crosshair2") == 1 then
  3609.             surface.PlaySound ("npc/roller/mine/rmine_blip3.wav")
  3610.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "2ND ASSISTANCE CROSSHAIR IS TURNED", Color( 13, 255, 134 ), "  ON")
  3611.         elseif GetConVarNumber("hl_crosshair2") == 0 then
  3612.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "2ND ASSISTANCE CROSSHAIR IS TURNED", Color( 255,110,0 ), "  OFF")
  3613.             surface.PlaySound ("npc/roller/mine/combine_mine_deactivate1.wav")
  3614.         end
  3615. end)
  3616.  
  3617.  
  3618.  
  3619.  
  3620.          cvars.AddChangeCallback("hl_esp", function(convar_name, value_old, value_new)
  3621.         if GetConVarNumber("hl_esp") == 1 then
  3622.             surface.PlaySound ("npc/roller/mine/rmine_blip3.wav")
  3623.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ESP IS TURNED", Color( 13, 255, 134 ), "  ON")
  3624.         elseif GetConVarNumber("hl_esp") == 0 then
  3625.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "ESP IS TURNED", Color( 255,110,0 ), "  OFF")
  3626.             surface.PlaySound ("npc/roller/mine/combine_mine_deactivate1.wav")
  3627.         end
  3628. end)
  3629.  
  3630.  
  3631.          cvars.AddChangeCallback("hl_aimbot", function(convar_name, value_old, value_new)
  3632.         if GetConVarNumber("hl_aimbot") == 1 then
  3633.             surface.PlaySound ("weapons/ar2/ar2_reload_rotate.wav")
  3634.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT IS TURNED", Color( 13, 255, 134 ), "  ON")
  3635.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "HOLD THE E KEY TO ACTIVATE THE AIMBOT")
  3636.            
  3637.            
  3638.  
  3639.         elseif GetConVarNumber("hl_aimbot") == 0 then
  3640.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT IS TURNED", Color( 255,110,0 ), "  OFF")
  3641.             surface.PlaySound ("npc/overwatch/radiovoice/off4.wav")
  3642.         end
  3643. end)
  3644.  
  3645.  
  3646.          cvars.AddChangeCallback("hl_aimbot_ignore_buddies", function(convar_name, value_old, value_new)
  3647.         if GetConVarNumber("hl_aimbot_ignore_buddies") == 1 then
  3648.             surface.PlaySound ("npc/turret_floor/active.wav")
  3649.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT WILL NOW IGNORE BUDDIES")
  3650.         elseif GetConVarNumber("hl_aimbot_ignore_buddies") == 0 then
  3651.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT WILL NOW TARGET BUDDIES")
  3652.             surface.PlaySound ("npc/attack_helicopter/aheli_damaged_alarm1.wav")
  3653.         end
  3654. end)
  3655.  
  3656.  
  3657.          cvars.AddChangeCallback("hl_aimbot_ignore_friends", function(convar_name, value_old, value_new)
  3658.         if GetConVarNumber("hl_aimbot_ignore_friends") == 1 then
  3659.             surface.PlaySound ("npc/turret_floor/active.wav")
  3660.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT WILL NOW IGNORE FRIENDS")
  3661.         elseif GetConVarNumber("hl_aimbot_ignore_friends") == 0 then
  3662.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT WILL NOW TARGET FRIENDS")
  3663.             surface.PlaySound ("npc/attack_helicopter/aheli_damaged_alarm1.wav")
  3664.         end
  3665. end)
  3666.  
  3667.          cvars.AddChangeCallback("hl_aimbot_ignore_team", function(convar_name, value_old, value_new)
  3668.         if GetConVarNumber("hl_aimbot_ignore_team") == 1 then
  3669.             surface.PlaySound ("npc/turret_floor/active.wav")
  3670.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT WILL NOW IGNORE TEAMMATES")
  3671.         elseif GetConVarNumber("hl_aimbot_ignore_team") == 0 then
  3672.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "AIMBOT WILL NOW TARGET TEAMMATES")
  3673.             surface.PlaySound ("npc/attack_helicopter/aheli_damaged_alarm1.wav")
  3674.         end
  3675. end)
  3676.  
  3677.  
  3678.          cvars.AddChangeCallback("hl_rendertargetspy", function(convar_name, value_old, value_new)
  3679.         if GetConVarNumber("hl_rendertargetspy") == 1 then
  3680.             surface.PlaySound ("npc/combine_gunship/ping_search.wav")
  3681.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "RENDER TARGET SPY CAM IS NOW", Color( 13, 255, 134 ), "  ON")
  3682.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "SERVER MUST HAVE RENDER TARGET SPY CAMERA FOR THIS FEATURE TO ACTIVATE.")
  3683.         elseif GetConVarNumber("hl_rendertargetspy") == 0 then
  3684.             chat.AddText( Color( 0, 0, 0 ) ,"[" ,  Color( 255, 145, 0),"?",  Color (0,0,0), "]" , Color (255,255,255), "RENDER TARGET SPY CAM IS", Color( 255,110,0 ), "  OFF")
  3685.             surface.PlaySound ("npc/combine_gunship/gunship_ping_search.wav")
  3686.         end
  3687. end)
  3688.  
  3689.  
  3690.  
  3691. hl.Hook("RenderScreenspaceEffects", function()
  3692.         if hl.xrei:GetBool() then
  3693.        
  3694.                 for k,v in hl.g.next, hl.Plys do
  3695.                 if(!hl.em.IsValid(v) || hl.em.Health(v) < 1 || v == hl.me || hl.em.IsDormant(v)) then continue; end
  3696.                         hl.g.cam.Start3D();
  3697.                                 hl.g.render.MaterialOverride(chamsmat);
  3698.                                 hl.g.render.SetColorModulation(1,1,1);
  3699.                                 hl.em.DrawModel(v);
  3700.                                 hl.g.render.SetColorModulation(1,1,1);
  3701.                                 hl.g.render.MaterialOverride(chamsmat2);
  3702.                                 hl.em.DrawModel(v);
  3703.                         hl.g.cam.End3D();
  3704.                 end
  3705.         end
  3706. end)
  3707.  
  3708. hl.ConCMD['Add']("hl_openscript", function( ply, cmd, args )
  3709.         local lua = hl.g.file.Read( args[1] )
  3710.         hl.g.RunString( lua )
  3711. end )
  3712.  
  3713. hl.ConCMD['Add']("showspecs", function(ply, command, args)
  3714.     ShowSpec = !ShowSpec
  3715. end)
  3716.  
  3717. hl.ConCMD['Add']("hl_180", function()
  3718.         LocalPlayer():SetEyeAngles( LocalPlayer():EyeAngles() + Angle( -2 * LocalPlayer():EyeAngles().p,180, 0) )
  3719. end)
  3720.  
  3721. hl.ConCMD['Add']("hl_music", function()
  3722.         hl.g.surface.PlaySound("music/HL2_song23_SuitSong3.mp3")
  3723. end)
  3724.  
  3725.  local espCvar = CreateClientConVar("hl_entity", 1, false, false)
  3726.  
  3727. cvars.AddChangeCallback( "hl_entity", function( cvar, old, new )
  3728.     enableESP = tobool( new )
  3729. end, "updatevalue" )
  3730.  
  3731. local enableESP = espCvar:GetBool()
  3732.  
  3733. local lookup = {
  3734.     money_printer  = true,
  3735.     spawned_weapon = true,
  3736.     spawned_money = true,
  3737.    
  3738. }
  3739.  
  3740. local itemOffset = Vector( 8, -10, 30 )
  3741. local swepOffset = Vector( 3, 0, 20 )
  3742. local moneyOffset = Vector( 3, 0, 10 )
  3743.  
  3744.  
  3745. local itemColor = Color( 255, 255, 0 )
  3746. local swepColor = Color( 255, 0, 0 )
  3747. local moneyColor = Color( 0, 255, 0 )
  3748.  
  3749.  
  3750. hook.Add( "HUDPaint", "ESP", function()
  3751.     if ( not enableESP ) then return end
  3752.    
  3753.     local pos, ent
  3754.     local entTable = ents.GetAll()
  3755.    
  3756.     for i = 1, #entTable do
  3757.         ent = entTable[ i ]
  3758.         if ( not IsValid( ent ) )           then continue end
  3759.         if ( not lookup[ ent:GetClass() ] ) then continue end
  3760.  
  3761.         if ( ent:GetClass() == "money_printer" ) then
  3762.         ------ new wordboxes!----
  3763.        
  3764.             pos = ( ent:GetPos() + itemOffset ):ToScreen()
  3765.            -- draw.SimpleTextOutlined( "Money Printer", "Trebuchet18", pos.x, pos.y, itemColor, 0,0,1, color_black )
  3766.             draw.WordBox (2, pos.x,pos.y, "Money Printer", "Trebuchet18",  Color(128,128,128,100), Color(255,0,0,255))
  3767.            
  3768.            
  3769.         elseif ( ent:GetClass() == "spawned_weapon" ) then
  3770.        
  3771.             pos = ( ent:GetPos() + swepOffset ):ToScreen()
  3772.             ---draw.SimpleTextOutlined( "Weapon", "Trebuchet18", pos.x, pos.y, swepColor, 0,0,1, color_black )
  3773.             draw.WordBox (2, pos.x,pos.y, "Weapon", "Trebuchet18",  Color(128,128,128,100), Color(255,230,0,255))
  3774.            
  3775.         elseif ( ent:GetClass() == "spawned_money" ) then
  3776.        
  3777.             pos = ( ent:GetPos() + moneyOffset ):ToScreen()
  3778.             ---draw.SimpleTextOutlined( "Money", "Trebuchet18", pos.x, pos.y, moneyColor, 0,0,1, color_black )
  3779.             draw.WordBox (2, pos.x,pos.y, "Money", "Trebuchet18",  Color(128,128,128,100), Color(0,255,40,255))
  3780.            
  3781.            
  3782.             end
  3783.         end
  3784.    
  3785. end )
  3786.  
  3787. concommand.Add( "hl_about", function()
  3788.     Derma_Message( "This addon was made by Dark. A remake of darks scripts v1!", "About", "OK" )
  3789.  
  3790.  end)
  3791.  
  3792.  
  3793.  
  3794.  
  3795.  
  3796.  
  3797. concommand.Add( "hl_about", function()
  3798.     Derma_Message( "This addon was made by hl.", "About", "OK" )
  3799.     surface.PlaySound ("notify.wav")
  3800.  end)
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  concommand.Add ("hl_donate", function ()
  3808.  
  3809. local frame = vgui.Create( "DFrame" )
  3810. frame:SetTitle( "View the advertisment then click skip ad, Thank you!" )
  3811. frame:SetSize( ScrW() * 0.75, ScrH() * 0.75 )
  3812. frame:Center()
  3813.  
  3814. frame.Paint = function()
  3815.     surface.SetDrawColor( 34, 123, 149, 255 )
  3816.     surface.DrawRect( 0, 0, frame:GetWide(), frame:GetTall() )
  3817.     surface.SetDrawColor( 255, 255, 255, 255 )
  3818.     surface.DrawOutlinedRect( 0, 0, frame:GetWide(), frame:GetTall() )
  3819. end
  3820.  
  3821. frame:MakePopup()
  3822.  
  3823. local html = vgui.Create( "HTML", frame )
  3824. html:Dock( FILL )
  3825. html:OpenURL( " http://adf.ly/13250485/thank-you-for-helping" )
  3826. end)
  3827.  
  3828.  
  3829.  concommand.Add ("hl_donate", function ()
  3830.  
  3831. local frame = vgui.Create( "DFrame" )
  3832. frame:SetTitle( "View the advertisment then click skip ad, Thank you!" )
  3833. frame:SetSize( ScrW() * 0.75, ScrH() * 0.75 )
  3834. frame:Center()
  3835.  
  3836. frame.Paint = function()
  3837.     surface.SetDrawColor( 34, 123, 149, 255 )
  3838.     surface.DrawRect( 0, 0, frame:GetWide(), frame:GetTall() )
  3839.     surface.SetDrawColor( 255, 255, 255, 255 )
  3840.     surface.DrawOutlinedRect( 0, 0, frame:GetWide(), frame:GetTall() )
  3841. end
  3842.  
  3843. frame:MakePopup()
  3844.  
  3845. local html = vgui.Create( "HTML", frame )
  3846. html:Dock( FILL )
  3847. html:OpenURL( " http://adf.ly/13250485/thank-you-for-helping" )
  3848. end)
  3849.  
  3850.  
  3851.  
  3852.  
  3853.  
  3854.  
  3855. hl.g.notification.AddProgress("lol", "HL SCRIPTS ONLINE")
  3856. hl.g.timer.Simple(5, function() hl.g.notification.Kill("lol") end)
  3857.  
  3858. ----- Chat spammer -----
  3859.  
  3860.  
  3861. --- This is a big f you to Nrgaming, Banning people for clientside lua scripts even though you have sv_allowcslua 1 and are clearly aware of the value
  3862. --- If you continue doing this I'm just going to keep bringing out updates with even more insulting messages towards you.
  3863. --- If you have a problem with my script, I don't mind you disabling lua on your server and then doing this but you allow clientside lua then ban people for it.
  3864. -- Extremely unethical and wrong to do.
  3865.  
  3866.  
  3867. CreateClientConVar("hl_chatspammer_nr_message", "Default message", false, false)
  3868. CreateClientConVar("hl_chatspammer_nr", "0", false, false)
  3869. hook.Add("Think", "hl_chatspammer_hook", function()
  3870. if GetConVarNumber("hl_chatspammer_nr") != 1 then return end
  3871.      RunConsoleCommand("say", tostring(GetConVarString("hl_chatspammer_nr_message")))
  3872.  
  3873. end)
  3874.  
  3875. ---- flashlight spammer----
  3876. CreateClientConVar("hl_flashspam", "0", true, false)
  3877. hook.Add("Think", "hlflash", function()
  3878. if GetConVarNumber("hl_flashspam") != 1 then return end
  3879.      RunConsoleCommand("impulse", "100")
  3880. end)
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886. ---------watermark---------------
  3887. CreateClientConVar ("hl_watermark","1", true ,false )
  3888. hook.Add("HUDPaint", "watermark",function()
  3889.     if GetConVarNumber("hl_watermark") != 1 then return end
  3890.         surface.DrawRect( 0, 0, 100, 25 )
  3891.         draw.SimpleTextOutlined( "? HL SCRIPTS", "trebuchet18", 5,  5,  Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 255, 155 , 0 ))
  3892. end)
  3893.  
  3894.  
  3895.  
  3896.  
  3897. surface.CreateFont( "hlhud2", {
  3898.     font = "trebuchet18",
  3899.     size = 30,
  3900.     weight = 500,
  3901.      } )
  3902.  
  3903. -------- HUD must be updated to show more info, possibly admin stuff too.------------------
  3904. RunConsoleCommand ("hl_hud","1")
  3905. RunConsoleCommand ("hl_watermark","1")
  3906. CreateClientConVar ("hl_hud","1", true ,false )
  3907. hook.Add("HUDPaint", "huddesign",function()
  3908.     if GetConVarNumber("hl_hud") != 1 then return end
  3909.         local showvel = math.floor(LocalPlayer():GetVelocity():Length())
  3910.  
  3911.  
  3912. local lp = LocalPlayer()
  3913. local wep = LocalPlayer():GetActiveWeapon()
  3914.  
  3915. --Layer: 1
  3916. draw.RoundedBox(4, ScrW()/3.1, ScrH()/1.04, ScrW()/2.91, ScrH()/27, Color(0, 0, 0, 220))
  3917.  
  3918. --Layer: 2
  3919. draw.DrawText("SPEED: "..showvel, "hlhud2", ScrW()/2.18, ScrH()/1.04, Color(255, 155, 0, 225))
  3920.  
  3921.  
  3922.  
  3923.                
  3924.                
  3925.                
  3926.  
  3927.         ---local coolglow = Material("models/props_combine/combine_fenceglow")
  3928.        ----  surface.SetMaterial(coolglow)
  3929.         --- surface.SetDrawColor(Color(41, 128, 185, 255))
  3930.         --- surface.DrawTexturedRect(300, ScrH()-105, 340, 100, Color(41, 128, 185, 255))
  3931.            
  3932. end)
  3933.  
  3934.  
  3935. ---- workshop crosshairs modified until I figure out a more efficent method----
  3936. CreateClientConVar ("hl_crosshair","1", true ,false )
  3937. hook.Add("HUDPaint", "crosshair",function()
  3938.     if GetConVarNumber("hl_crosshair") != 1 then return end
  3939.         local x = ScrW() / 2
  3940.     local y = ScrH() / 2
  3941.     surface.SetDrawColor( 0, 255, 0, 255 )
  3942.     local gap = 5
  3943.     local length = gap + 15
  3944.  
  3945.  
  3946.         surface.DrawLine( x - length, y, x - gap, y )
  3947.         surface.DrawLine( x + length, y, x + gap, y )
  3948.         surface.DrawLine( x, y - length, x, y - gap )
  3949.         surface.DrawLine( x, y + length, x, y + gap )
  3950.  
  3951.        
  3952. end)
  3953. CreateClientConVar ("hl_crosshair2","0", true ,false )
  3954. hook.Add("HUDPaint", "crosshair2",function()
  3955.     if GetConVarNumber("hl_crosshair2") != 1 then return end
  3956.         local x = ScrW() / 2
  3957.     local y = ScrH() / 2
  3958.     surface.SetDrawColor( 255, 0, 0, 255 )
  3959.     local gap = 2
  3960.     local length = gap + 15
  3961.  
  3962.  
  3963.         surface.DrawLine( x - length, y, x - gap, y )
  3964.         surface.DrawLine( x + length, y, x + gap, y )
  3965.         surface.DrawLine( x, y - length, x, y - gap )
  3966.         surface.DrawLine( x, y + length, x, y + gap )
  3967.        
  3968. end)
  3969.  
  3970.  
  3971.  
  3972. ---surface.DrawLine good method  i hope
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978.  
  3979. CreateClientConVar ("hl_rendertargetspy","0", true ,false )
  3980. hook.Add("HUDPaint", "rendertarget",function()
  3981. if GetConVarNumber("hl_rendertargetspy") != 1 then return end
  3982. local lp = LocalPlayer()
  3983. local wep = LocalPlayer():GetActiveWeapon()
  3984.  
  3985. local Texture1 = Material("models/rendertarget")
  3986. surface.SetMaterial(Texture1)
  3987. surface.SetDrawColor(Color(41, 128, 185, 255))
  3988. surface.DrawTexturedRect(20, 215, 300, 240, Color(41, 128, 185, 255))
  3989.  
  3990.  
  3991.  end)
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998. // Thank you for the help  Gravko :) Hopefully this will stop him.
  3999. function ConVarExists( sn )
  4000. MsgC( Color( 255, 0, 0 ), "Blocked!\n" )
  4001. end
  4002.  
  4003. local realNS = net.Start
  4004.  
  4005. function net.Send( nstr )
  4006.     if nstr == "Iamscriptinglikeascriptkiddy" then
  4007.         chat.AddText("Blocked net.send")
  4008.     else
  4009.         return realNS( nstr )
  4010.     end
  4011. end
  4012.  
  4013.  
  4014. local shitAim = {}
  4015. shitAim.TargetMethod = {}
  4016. shitAim.Settings = {}
  4017. shitAim.TargetMethod["rage"] = false
  4018. shitAim.TargetMethod["closest"] = true
  4019. shitAim.TargetMethod["aimpoint"] = false
  4020. shitAim.Settings["sAimbone"] = "ValveBiped.Bip01_Head1"
  4021. shitAim.Settings["AimBotKey"] = KEY_E
  4022.  
  4023. local function HasHead(ent)
  4024.     local bone = ent:LookupBone(shitAim.Settings["sAimbone"])
  4025.     if bone then
  4026.         return true
  4027.     else
  4028.         return false
  4029.     end
  4030. end
  4031.  
  4032. local function CanSeeHead(ent)
  4033.         local wishedbone  = ent:LookupBone(shitAim.Settings["sAimbone"])
  4034.         local trendpos = ent:GetBonePosition(wishedbone)
  4035.         local tr = {}
  4036.         tr.start = LocalPlayer():GetShootPos()
  4037.         tr.endpos = trendpos
  4038.         tr.filter = {LocalPlayer(), ent}
  4039.         tr.mask = MASK_SHOT
  4040.     local trace = util.TraceLine(tr)
  4041.     if (trace.Fraction == 1) then
  4042.         return true
  4043.     else
  4044.         return false
  4045.     end    
  4046. end
  4047.  
  4048. local function CanSeeOBB(ent)
  4049.         local obbendpos = ent:LocalToWorld(ent:OBBCenter())
  4050.         local tr = {}
  4051.         tr.start = LocalPlayer():GetShootPos()
  4052.         tr.endpos = obbendpos
  4053.         tr.filter = {LocalPlayer(), ent}
  4054.         tr.mask = MASK_SHOT
  4055.     local trace = util.TraceLine(tr)
  4056.     if (trace.Fraction == 1) then
  4057.         return true
  4058.     else
  4059.         return false
  4060.     end    
  4061. end
  4062.  
  4063. // Thank You Gravko For letting me use the base, Will be adding additional features soon
  4064.  
  4065. CreateClientConVar("hl_aimbot", "0", false, false)
  4066. CreateClientConVar("hl_aimbot_ignore_friends", "0", false, false)
  4067. CreateClientConVar("hl_aimbot_ignore_buddies", "0", false, false)
  4068. CreateClientConVar("hl_aimbot_ignore_team", "0", false, false)
  4069.  
  4070. local Locked
  4071. local aimBuddies = {}
  4072.  
  4073.  
  4074. local target
  4075.  
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081. local function distance_formula(vec, vec2)
  4082.  
  4083.     if(type(vec) != "Vector" || type(vec2) != "Vector") then
  4084.         return;
  4085.     end
  4086.    
  4087.     return (vec.z != nil && vec2.z != nil) && ((vec2.x - vec.x)^2 + (vec2.y - vec.y)^2 + (vec2.z - vec.z)^2)^1/2 || ((vec2.x - vec.x)^2 + (vec2.y - vec.y)^2)^1/2
  4088.    
  4089. end
  4090.  
  4091. print(distance_formula(Vector(1, 7), Vector(3, 7)))
  4092.  
  4093.  
  4094.  
  4095. local function shitaimbot(cmd)
  4096.  
  4097. if GetConVarNumber("hl_aimbot") != 1 then return end
  4098.  
  4099.     local AimBone
  4100.     local lpos = LocalPlayer():GetShootPos()
  4101.    
  4102.  
  4103.    
  4104.    
  4105.     local aimPlayers = {}
  4106.     for _, v in pairs(player.GetAll()) do
  4107.    
  4108.         table.insert(aimPlayers, v)
  4109.        
  4110.         if GetConVarNumber("hl_aimbot_ignore_team") == 1 then
  4111.             if v:Team() == LocalPlayer():Team() then
  4112.                 table.RemoveByValue(aimPlayers, v)
  4113.             end
  4114.         end
  4115.        
  4116.         if GetConVarNumber("hl_aimbot_ignore_friends") == 1 then
  4117.             if v:GetFriendStatus() != "none" then
  4118.                 table.RemoveByValue(aimPlayers, v)
  4119.             end
  4120.         end
  4121.        
  4122.         if v == LocalPlayer() then
  4123.             table.RemoveByValue(aimPlayers, v)
  4124.         end
  4125.        
  4126.         if !CanSeeOBB(v) then
  4127.             table.RemoveByValue(aimPlayers, v)
  4128.         end
  4129.        
  4130.         if v:Team() == TEAM_SPECTATOR then
  4131.             table.RemoveByValue(aimPlayers, v)
  4132.         end
  4133.            
  4134.     end
  4135.  
  4136.  
  4137.  
  4138.    
  4139.     if shitAim.TargetMethod["rage"] then
  4140.         for _, v in pairs(aimPlayers) do
  4141.             if v:Alive() then
  4142.                 target = v
  4143.             end
  4144.         end
  4145.     end
  4146.    
  4147.     if shitAim.TargetMethod["closest"] then
  4148.         local allply = aimPlayers
  4149.         local plyDist = 100000
  4150.         for i = 1, #allply do
  4151.             v = allply[i]
  4152.             if v:Alive() then
  4153.             local plyDist2 = LocalPlayer():GetPos():Distance(v:GetPos():ToScreen())
  4154.             if plyDist2 < plyDist then
  4155.                 plyDist = plyDist2
  4156.                 target = v
  4157.             end
  4158.             end
  4159.         end
  4160.     end
  4161.  
  4162.     if shitAim.TargetMethod["aimpoint"] then
  4163.         local allply = aimPlayers
  4164.         local plyDist = 100000
  4165.         for i = 1, #allply do
  4166.             v = allply[i]
  4167.             if v:Alive() then
  4168.             local plyDist2 = LocalPlayer():GetEyeTrace().HitPos:Distance(v:GetPos())
  4169.             if plyDist2 < plyDist then
  4170.                 plyDist = plyDist2
  4171.                 target = v
  4172.             end
  4173.             end
  4174.         end
  4175.     end
  4176.  
  4177.  
  4178. for _, b in pairs(aimPlayers) do
  4179.     if !HasHead(target) then
  4180.         AimBone = target:LocalToWorld(target:OBBCenter())
  4181.         else
  4182.         AimBone = target:GetBonePosition(target:LookupBone("ValveBiped.Bip01_Head1"))
  4183.     end
  4184. end
  4185.  
  4186.  
  4187.  
  4188.    
  4189.             if input.IsKeyDown(shitAim.Settings["AimBotKey"]) then
  4190.                 if GetConVarNumber("hl_aimbot_ignore_team") == 1 and target:Team() == LocalPlayer():Team() then return end
  4191.                 if GetConVarNumber("hl_aimbot_ignore_friends") == 1 and target:GetFriendStatus() != "none" then return end
  4192.                 if !AimBone then return end
  4193.                
  4194.                 cmd:SetViewAngles((AimBone - lpos):Angle())
  4195.             end
  4196. end
  4197.  
  4198.  
  4199.  
  4200. cvars.AddChangeCallback("hl_aimbot", function()
  4201.         if GetConVarNumber("hl_aimbot") == 1 then
  4202.                 hook.Add("CreateMove", "aimbotshit", shitaimbot)
  4203.         else
  4204.                 hook.Remove("aimbotshit")
  4205.         end
  4206. end)
  4207.  
  4208.  
  4209. local ents = ents
  4210.  
  4211.  
  4212.  
  4213.  
  4214. CreateClientConVar ("hl_rainbow", "0", true, false )
  4215. hook.Add("Think","hlrainbow",function()
  4216. if GetConVarNumber ("hl_rainbow") != 1 then return end
  4217.     LocalPlayer():SetWeaponColor(VectorRand())
  4218. end)
  4219.  
  4220.  
  4221. hook.Add( "OnPlayerChat", "HelloCommand", function( typer, strText, bTeam, bDead )
  4222.     strText = string.lower( strText )
  4223.     if ( strText == "hlsend" ) then
  4224.    
  4225.      //  if ( string.find(strtText, "hlsend")) then
  4226.  
  4227.         print( typer, "hl acknowledge" )
  4228.        
  4229.         RunConsoleCommand ("say" ,"/radio hlACK")
  4230.         chat.AddText( Color( 100, 100, 255 ), typer, ",sent a message! ")
  4231.             surface.PlaySound ("rx.wav")
  4232.         return true
  4233.     end
  4234.  
  4235. end )
  4236.  
  4237.  
  4238.  
  4239. concommand.Add( "hl_ping_rp", function()
  4240.     RunConsoleCommand ("say" ,"/radio hlsend")
  4241.     surface.PlaySound ("tx.wav")
  4242.  
  4243.  end)
  4244.  
  4245.  
  4246.  RunConsoleCommand ("say", "/channel 75")
  4247.  
  4248. //local GAD_Chat = CreateClientConVar( "hl_adblock_chat", 1, true, false )
  4249. //local GAD_Sound = CreateClientConVar( "hl_adblock_sound", 1, true, false )
  4250.  
  4251. //function MOTDgd.GetIfSkip()
  4252.      //   if GAD_Chat:GetBool() then
  4253.     //        chat.AddText( Color( 255, 0, 0 ), "Ad ", Color( 29, 0, 255 ), "removed by ", Color( 0, 255, 255 ), "GAD BLOCK! (Credits to Hackcraft!)" )
  4254.     //    end
  4255.     //    if GAD_Sound:GetBool() then
  4256.     //        surface.PlaySound( table.Random({
  4257.    //         "ambient/levels/citadel/portal_beam_shoot1.wav",
  4258.     //        "ambient/levels/citadel/portal_beam_shoot2.wav",
  4259.   //          "ambient/levels/citadel/portal_beam_shoot3.wav",
  4260.    //         "ambient/levels/citadel/portal_beam_shoot4.wav",
  4261.    //         "ambient/levels/citadel/portal_beam_shoot5.wav",
  4262.    //         "ambient/levels/citadel/portal_beam_shoot6.wav"
  4263. //}))
  4264. //        end
  4265. //        return true
  4266. //end
  4267.  
  4268.  
  4269.  //
  4270.  //local function channelchanger (
  4271.  
  4272. // if gamemode.Get("hlrp") then
  4273. // RunConsoleCommand ("say" ,"/channel 75")
  4274. // else return end
  4275.  
  4276. // end)
  4277.  
  4278. concommand.Add ("hl_globalchat", function ()
  4279. local frame = vgui.Create( "DFrame" )
  4280. frame.Paint = function()
  4281.     surface.SetDrawColor( 34, 123, 149, 255 )
  4282.     surface.DrawRect( 0, 0, frame:GetWide(), frame:GetTall() )
  4283.     surface.SetDrawColor( 255, 255, 255, 255 )
  4284.     surface.DrawOutlinedRect( 0, 0, frame:GetWide(), frame:GetTall() )
  4285. end
  4286. frame:SetTitle( "hl's scripts global chat" )
  4287. frame:SetSize( ScrW() * 0.75, ScrH() * 0.75 )
  4288. frame:Center()
  4289. frame:MakePopup()
  4290.  
  4291. local html = vgui.Create( "HTML", frame )
  4292. html:Dock( FILL )
  4293. html:OpenURL( "http://hlv1lua.chatovod.com/" )
  4294. end)
  4295.  
  4296.  
  4297.  
  4298.  
  4299. RunConsoleCommand( "say", "/channel 75" )
  4300.  
  4301.  
  4302.  
  4303. local chat_scripts = {}
  4304. chat_scripts["DS"] = { Color(72,72,72,255), "D", Color(255,255,0,255), "S" }
  4305. chat_scripts["JS"] = { Color(255,0,0,255), "J", Color(29,0,255,255), "S" }
  4306. chat_scripts["AW"] = { Color(255,191,0,255), "A", Color(255,93,0,255), "W" }
  4307. chat_scripts["SS"] = { Color(255,0,0,255), "S", Color(255,255,255,255), "S" }
  4308.  
  4309. local current_script = "DS" -- DS, JS, AW, SS
  4310. local console_command = "hl_localchat"
  4311. local add_wp_concommand = "hl_add_waypoint"
  4312. local remove_wp_concommand = "hl_remove_waypoint"
  4313.  
  4314. // To do
  4315. // Live wp remove list update, if someone else removes a waypoint, your menu will update!
  4316. // Waypoint text colour in chat to to be colour of the waypoint.
  4317. // Turn refresh scale from concommand to function.
  4318. // Radio for hlrp, plain encrypted chat for everything else
  4319. // Chat message added by Nick()
  4320. // Fix visual 3d2d glitch
  4321.  
  4322.  
  4323. local message_s
  4324. local encryption_num = 9
  4325. --local hl_chat = {}
  4326. local scale_size = CreateClientConVar( "scale_size", "1.4", true, false )
  4327. local note_in_chat = CreateClientConVar( "note_in_chat", 1, true, false )
  4328. local note_in_sound = CreateClientConVar( "note_in_sound", 1, true, false )
  4329. local time_stamp_chat = CreateClientConVar( "time_stamp_chat", 1, true, false )
  4330.  
  4331. local scale_s = scale_size:GetFloat()
  4332. local back_arrow = Material( "icon16/arrow_right.png" )
  4333. local delete_png = Material( "icon16/delete.png" )
  4334. local settings_png = Material( "icon16/wrench.png" )
  4335. local tick_png = Material( "icon16/tick.png" )
  4336.  
  4337. --[[        waypoint stuff      ]]--
  4338. local text
  4339. local TextWidth
  4340. local waypoints = {}
  4341. local wayp_n = "Name"
  4342. local ChosenColor = Color( 255,255,255,255 )
  4343. local cango = true
  4344. local que = {}
  4345. --waypoints["Base"] = { Vector( 5000, 400, 500 ), Color(255,255,255,255) }
  4346. --[WP] 0, 0, 0, 255, 255, 255, 255, Base of epicness
  4347. --[WP] 500, 50, 300, 255, 0, 255, 255, hackin
  4348. --[[         waypoint stuff end         ]]--
  4349.  
  4350.  
  4351. --[[ fast functions ]]--
  4352. local function wp_added_msg( name )
  4353.     chat.AddText( Color(0,255,63), "Public waypoint '" .. name .. "' has been added!" )
  4354.     surface.PlaySound( "npc/turret_floor/active.wav" )
  4355. end
  4356. local function wp_removed_msg( name )
  4357.     chat.AddText( Color(255,255,0), "Public waypoint '" .. name .. "' has been removed!" )
  4358.     surface.PlaySound( "physics/concrete/concrete_block_impact_hard1.wav" )
  4359. end
  4360. local function wp_remove_failed_msg( name )
  4361.     chat.AddText( Color( 255,0,0 ), "Failed to remove waypoint '", name, "' ... retrying!" )
  4362. //  surface.PlaySound( "physics/metal/metal_barrel_impact_hard7.wav" ) -- would have sound, but then it plays two sounds right after each other if it doesn't fail second time round.
  4363. end
  4364. local function chat_msg_added()
  4365.  
  4366.     if note_in_sound:GetBool() then
  4367.         LocalPlayer():EmitSound( "Friends/message.wav", 75, 125, 0.5, CHAN_AUTO )
  4368.     end
  4369.     if note_in_chat:GetBool() then
  4370.         chat.AddText( Color(255,255,0), "New message! hl_localchat in console to see!" )  
  4371.     end
  4372.    
  4373. end
  4374.  
  4375.  
  4376. --[[
  4377.     Rest of code
  4378. ]]--
  4379.  
  4380. --Scaled Derma font
  4381. surface.CreateFont( "Hc_chat", {
  4382.     font = "DermaDefault",
  4383.     size = 13 * scale_s,
  4384.     weight = 500 * 1.6,
  4385.     blursize = 0,
  4386.     scanlines = 0,
  4387.     antialias = true,
  4388.     underline = false,
  4389.     italic = false,
  4390.     strikeout = false,
  4391.     symbol = false,
  4392.     rotary = false,
  4393.     shadow = false,
  4394.     additive = false,
  4395.     outline = false,
  4396. } )
  4397.  
  4398. --Waypoint font
  4399. surface.CreateFont( "Waypoint_big", {
  4400.     font = "DermaLarge",
  4401.     size = 600,
  4402.     weight = 5000,
  4403.     antialias = true,
  4404. } )
  4405.  
  4406. --[[ add waypoint ]]--
  4407. local function add_waypoint( way_table )
  4408.  
  4409.     local tab_info = string.Explode( "? ", way_table )
  4410.    
  4411.         waypoints[tab_info[8]] = {} -- Strings will override existing strings if they exist
  4412.         local table_add_v = Vector( tab_info[1], tab_info[2], tab_info[3] )
  4413.         local table_add_c = Color(tab_info[4],tab_info[5],tab_info[6],tab_info[7])
  4414.        
  4415.         --print( table_add_v )
  4416.         --print( tab_info[1] )
  4417.  
  4418.         table.insert( waypoints[tab_info[8]], table_add_v )
  4419.         table.insert( waypoints[tab_info[8]], table_add_c )
  4420.        
  4421.         wp_added_msg(tab_info[8])
  4422.        
  4423. end
  4424.  
  4425.  
  4426. --[[ Send "encrypted" message  to other members of the chat.]]--
  4427.  
  4428. local function send_en_mesg()
  4429.  
  4430.     local en_sentence = ""
  4431.  
  4432.     -- encrypted
  4433.     for i=1, string.len( message_s ) do
  4434.    
  4435.         local en_word = string.byte( message_s, i, i )
  4436.         en_sentence = en_sentence .. string.char( en_word + encryption_num )
  4437.  
  4438.     end
  4439.        
  4440.     message_s = ""
  4441.     RunConsoleCommand( "say", "/radio " .. current_script .. " " .. string.reverse( en_sentence )   )
  4442.  
  4443. end
  4444.  
  4445. --Allows settings derma to call this frame
  4446. local Hc_frame = vgui.Create( "DFrame" )
  4447.  
  4448.    
  4449.         --[[ Settings Derma ]]--
  4450.        
  4451. local function Hc_settings_chat()
  4452.  
  4453.  
  4454.     surface.CreateFont( "Hc_chat", {
  4455.         font = "DermaDefault",
  4456.         size = 13 * scale_s,
  4457.         weight = 500 * 1.6,
  4458.         blursize = 0,
  4459.         scanlines = 0,
  4460.         antialias = true,
  4461.         underline = false,
  4462.         italic = false,
  4463.         strikeout = false,
  4464.         symbol = false,
  4465.         rotary = false,
  4466.         shadow = false,
  4467.         additive = false,
  4468.         outline = false,
  4469.     } )
  4470.  
  4471.  
  4472.         local Hc_frame_s = vgui.Create( "DFrame" )
  4473.         Hc_frame_s:SetSize( 420 * scale_s, 250 * scale_s )
  4474.         Hc_frame_s:Center()
  4475.         Hc_frame_s:MakePopup()
  4476.         Hc_frame_s:SetVisible( true )
  4477.         Hc_frame_s:SetTitle( "" )
  4478.         Hc_frame_s:SetDraggable( true )
  4479.         Hc_frame_s:ShowCloseButton( false )
  4480.         function Hc_frame_s:Paint( w, h )
  4481.             draw.RoundedBox( 0, 0, 0, 420 * scale_s, 250 * scale_s, Color( 182, 182, 182, 220 ) )
  4482.            
  4483.             surface.SetFont( "Hc_chat" )
  4484.             surface.SetTextColor( 255, 255, 255, 200 )
  4485.             surface.SetTextPos( 40 * scale_s, 55 * scale_s )
  4486.             surface.DrawText( "Chat notifications" )
  4487.            
  4488.             surface.SetTextPos( 40 * scale_s, 85 * scale_s )
  4489.             surface.DrawText( "Sound notifications" )
  4490.            
  4491.             surface.SetTextPos( 40 * scale_s, 115 * scale_s )
  4492.             surface.DrawText( "Timestamps" )
  4493.            
  4494.         end
  4495.  
  4496.         -- Settings
  4497.         local se2_DButton = vgui.Create( "DButton", Hc_frame_s )
  4498.         se2_DButton:SetPos( 375 * scale_s, 220 * scale_s)
  4499.         se2_DButton:SetText( "" )
  4500.         se2_DButton:SetSize( 30 * scale_s, 20 * scale_s )
  4501.         se2_DButton.DoClick = function()
  4502.             Hc_frame:ToggleVisible()
  4503.             Hc_frame_s:ToggleVisible()
  4504.             --Hc_frame_s:Close()
  4505.         end
  4506.         function se2_DButton:Paint( w, h )
  4507.             surface.SetDrawColor( 255, 255, 255, 255 )
  4508.             surface.SetMaterial( back_arrow )
  4509.             se2_DButton:DrawTexturedRect()
  4510.         end
  4511.        
  4512.         local sc_ESlider = vgui.Create( "Slider", Hc_frame_s )
  4513.         sc_ESlider:SetText( "Scale" )
  4514.         sc_ESlider:SetPos( 5 * scale_s, 10 * scale_s )
  4515.         sc_ESlider:SetSize( 335 * scale_s, 20 * scale_s )
  4516.         sc_ESlider:SetMin( 1 )
  4517.         sc_ESlider:SetMax( 3 )
  4518.         sc_ESlider:SetValue( math.Round(scale_s, 1) )
  4519.         sc_ESlider:SetDecimals( 1 )
  4520.         sc_ESlider:SetConVar( "scale_size" )  
  4521.        
  4522.         local ap_DButton = vgui.Create( "DButton", Hc_frame_s )
  4523.         ap_DButton:SetPos( 333 * scale_s, 10 * scale_s)
  4524.         ap_DButton:SetSize( 80 * scale_s, 20 * scale_s )
  4525.         ap_DButton:SetFont( "Hc_chat" )
  4526.         ap_DButton:SetText( "Apply Scale" )
  4527.         ap_DButton.DoClick = function()
  4528.             scale_s = scale_size:GetFloat()
  4529.             --print( scale_s )
  4530.             Hc_frame_s:Close()
  4531.             Hc_settings_chat()
  4532.             RunConsoleCommand( "refresh_scale" )
  4533.         end
  4534.        
  4535.         --[[ chat notification ]]--
  4536.         local nic_button = vgui.Create( "DButton", Hc_frame_s ) --note_in_chat
  4537.         nic_button:SetPos( 10 * scale_s, 50 * scale_s)
  4538.         nic_button:SetSize( 20 * scale_s, 20 * scale_s )
  4539.         nic_button:SetFont( "Hc_chat" )
  4540.         nic_button:SetText( "" )
  4541.         nic_button.DoClick = function()
  4542.             if note_in_chat:GetBool() then
  4543.                 RunConsoleCommand( "note_in_chat", "0" )
  4544.             else
  4545.                 RunConsoleCommand( "note_in_chat", "1" )
  4546.             end
  4547.         end
  4548.         function nic_button:Paint( w, h )
  4549.         surface.SetDrawColor( 255, 255, 255, 255 )
  4550.         draw.RoundedBox( 4,0,0,w,h,  Color( 255, 255, 255, 255 ) )
  4551.             if note_in_chat:GetBool() then
  4552.             surface.SetMaterial( tick_png )
  4553.             nic_button:DrawTexturedRect()
  4554.         end
  4555.         end
  4556.        
  4557.        
  4558.         --[[ sound notification ]]--
  4559.         local nic_button = vgui.Create( "DButton", Hc_frame_s ) --note_in_chat
  4560.         nic_button:SetPos( 10 * scale_s, 80 * scale_s)
  4561.         nic_button:SetSize( 20 * scale_s, 20 * scale_s )
  4562.         nic_button:SetFont( "Hc_chat" )
  4563.         nic_button:SetText( "" )
  4564.         nic_button.DoClick = function()
  4565.             if note_in_sound:GetBool() then
  4566.                 RunConsoleCommand( "note_in_sound", "0" )
  4567.             else
  4568.                 RunConsoleCommand( "note_in_sound", "1" )
  4569.             end
  4570.         end
  4571.         function nic_button:Paint( w, h )
  4572.         surface.SetDrawColor( 255, 255, 255, 255 )
  4573.         draw.RoundedBox( 4,0,0,w,h,  Color( 255, 255, 255, 255 ) )
  4574.             if note_in_sound:GetBool() then
  4575.             surface.SetMaterial( tick_png )
  4576.             nic_button:DrawTexturedRect()
  4577.         end
  4578.         end
  4579.        
  4580.         --[[ sound notification ]]--
  4581.         local nic_button = vgui.Create( "DButton", Hc_frame_s ) --note_in_chat
  4582.         nic_button:SetPos( 10 * scale_s, 110 * scale_s)
  4583.         nic_button:SetSize( 20 * scale_s, 20 * scale_s )
  4584.         nic_button:SetFont( "Hc_chat" )
  4585.         nic_button:SetText( "" )
  4586.         nic_button.DoClick = function()
  4587.             if time_stamp_chat:GetBool() then
  4588.                 RunConsoleCommand( "time_stamp_chat", "0" )
  4589.             else
  4590.                 RunConsoleCommand( "time_stamp_chat", "1" )
  4591.             end
  4592.         end
  4593.         function nic_button:Paint( w, h )
  4594.         surface.SetDrawColor( 255, 255, 255, 255 )
  4595.         draw.RoundedBox( 4,0,0,w,h,  Color( 255, 255, 255, 255 ) )
  4596.             if time_stamp_chat:GetBool() then
  4597.             surface.SetMaterial( tick_png )
  4598.             nic_button:DrawTexturedRect()
  4599.         end
  4600.         end
  4601.        
  4602.        
  4603.        
  4604. end
  4605.  
  4606. --[[ Derma ]]--
  4607.  
  4608. Hc_frame:SetSize( 420 * scale_s, 250 * scale_s )
  4609. Hc_frame:Center()
  4610. Hc_frame:MakePopup()
  4611. Hc_frame:SetVisible( false )
  4612. Hc_frame:SetTitle( "" )
  4613. Hc_frame:SetDraggable( true )
  4614. Hc_frame:ShowCloseButton( false )
  4615. function Hc_frame:Paint( w, h )
  4616.     draw.RoundedBox( 0, 0, 0, 420 * scale_s, 250 * scale_s, Color( 182, 182, 182, 150 ) )
  4617.     draw.RoundedBox( 0, 10 * scale_s, 10 * scale_s, 400 * scale_s, 200 * scale_s, Color( 109, 109, 109, 150 ) )
  4618.    
  4619.     surface.SetFont( "Hc_chat" )
  4620.     surface.SetTextColor( 255, 255, 255, 75 )
  4621.     surface.SetTextPos( 115 * scale_s, 238 * scale_s )
  4622.     surface.DrawText( "hl Localchat" )
  4623. end
  4624.  
  4625. -- Hc_richtext
  4626. local Hc_richtext = vgui.Create( "RichText", Hc_frame )
  4627. Hc_richtext:SetPos( 10 * scale_s, 10 * scale_s )
  4628. Hc_richtext:SetSize( 400 * scale_s, 200 * scale_s )
  4629.  
  4630. function Hc_richtext:PerformLayout()
  4631.  
  4632.     self:SetFontInternal( "Hc_chat" )
  4633.     self:SetFGColor( Color( 255, 255, 255 ) )
  4634.  
  4635. end
  4636.  
  4637.     -- TextEntry
  4638.     local TextEntry = vgui.Create( "DTextEntry", Hc_frame ) -- create the form as a child of frame
  4639.     TextEntry:SetPos( 10 * scale_s, 220 * scale_s )
  4640.     TextEntry:SetSize( 350 * scale_s, 20 * scale_s )
  4641.     TextEntry:SetText( "" )
  4642.     TextEntry:SetFont( "Hc_chat" )
  4643.     TextEntry:SetTextColor( color_white )
  4644.     TextEntry:SetDrawBorder( false )
  4645.     TextEntry:SetDrawBackground( false )
  4646.     TextEntry:SetCursorColor( color_white )
  4647.     TextEntry:SetHighlightColor( Color(0, 161, 255) )
  4648.     TextEntry:RequestFocus()
  4649.     TextEntry.OnTextChanged = function(self)
  4650.     -- 115 Character Cap
  4651.     local current_txt = self:GetValue()
  4652.         if string.len(current_txt) > 115 then
  4653.             self:SetText(self.OldText)
  4654.             self:SetValue(self.OldText)
  4655.             self:SetCaretPos(115)
  4656.             surface.PlaySound ("common/wpn_denyselect.wav")
  4657.         else
  4658.             self.OldText = current_txt
  4659.         end
  4660.     end
  4661.     -- Send Message
  4662.     TextEntry.OnEnter = function( self )
  4663.         message_s = self:GetValue()
  4664.         send_en_mesg()
  4665.         TextEntry:SetText( "" )
  4666.         TextEntry:RequestFocus()
  4667.     end
  4668.     function TextEntry:Paint( w, h )
  4669.         draw.RoundedBox( 0, 0, 0, w, h, Color( 109, 109, 109, 150 ) )
  4670.         derma.SkinHook( "Paint", "TextEntry", self, w, h )
  4671.     end
  4672.    
  4673.     -- Close
  4674.     local cl_DButton = vgui.Create( "DButton", Hc_frame )
  4675.     cl_DButton:SetPos( 390 * scale_s, 220 * scale_s )
  4676.     cl_DButton:SetText( "" )
  4677.     cl_DButton:SetSize( 20 * scale_s, 20 * scale_s )
  4678.     cl_DButton.DoClick = function()
  4679.         Hc_frame:ToggleVisible()
  4680.     end
  4681.     function cl_DButton:Paint( w, h )
  4682.         surface.SetDrawColor( 255, 255, 255, 255 )
  4683.         surface.SetMaterial( delete_png )
  4684.         cl_DButton:DrawTexturedRect()
  4685.     end
  4686.    
  4687.     -- Settings
  4688.     local se_DButton = vgui.Create( "DButton", Hc_frame )
  4689.     se_DButton:SetPos( 365 * scale_s, 220 * scale_s)
  4690.     se_DButton:SetText( "" )
  4691.     se_DButton:SetSize( 20 * scale_s, 20 * scale_s )
  4692.     se_DButton.DoClick = function()
  4693.         Hc_frame:ToggleVisible()
  4694.         Hc_settings_chat()
  4695.     end
  4696.     function se_DButton:Paint( w, h )
  4697.         surface.SetDrawColor( 255, 255, 255, 255 )
  4698.         surface.SetMaterial( settings_png )
  4699.         se_DButton:DrawTexturedRect()
  4700.     end
  4701.    
  4702. local function add_chatbox_text(script, text, ply)
  4703.    
  4704.     if time_stamp_chat:GetBool() then
  4705.                 Hc_richtext:InsertColorChange( 0,255,255, 255 )
  4706.                 Hc_richtext:AppendText( os.date("[%H:%M]") )
  4707.             end
  4708.                
  4709.             -- Special chat box message
  4710.             local col = GAMEMODE:GetTeamColor( ply )
  4711.             Hc_richtext:InsertColorChange( chat_scripts[script][1].r, chat_scripts[script][1].g, chat_scripts[script][1].b, chat_scripts[script][1].a )
  4712.             Hc_richtext:AppendText( chat_scripts[script][2] )
  4713.             Hc_richtext:InsertColorChange( chat_scripts[script][3].r, chat_scripts[script][3].g, chat_scripts[script][3].b, chat_scripts[script][3].a  )
  4714.             Hc_richtext:AppendText( chat_scripts[script][4] )
  4715.             Hc_richtext:InsertColorChange( 72,72,72, 255 )
  4716.             Hc_richtext:AppendText( " - " )
  4717.             Hc_richtext:InsertColorChange( col.r, col.g, col.b, 255 )
  4718.             Hc_richtext:AppendText( ply:Nick() )
  4719.             Hc_richtext:AppendText( ": " )
  4720.             Hc_richtext:InsertColorChange( 255,255,255, 255 )
  4721.             Hc_richtext:AppendText( string.reverse( text ) .. "\n" )
  4722.            
  4723.             -- Chat Message
  4724.            
  4725. //          if note_in_sound:GetBool() then
  4726. //          LocalPlayer():EmitSound( "Friends/message.wav", 75, 125, 0.5, CHAN_AUTO )
  4727. //          end
  4728. //          if note_in_chat:GetBool() then
  4729. //          chat.AddText( chat_notification_col, chat_notification )  
  4730. //          end
  4731.             chat_msg_added()
  4732.  
  4733. end
  4734.  
  4735. --[[ remove global waypoints ]]--
  4736. local function remove_waypoints( name )
  4737.     --[[
  4738.     for k, v in pairs( waypoints ) do
  4739.         if k == name then
  4740.         waypoints[name] = nil
  4741.         wp_removed_msg( name )
  4742. //      PrintTable( waypoints )
  4743.         end
  4744.     end
  4745.     ]]--
  4746.    
  4747.     if waypoints[name] != nil then
  4748.     waypoints[name] = nil
  4749.     wp_removed_msg( name )
  4750.     end
  4751.    
  4752. end
  4753.  
  4754. --[[ Chat listener + decrypter ]]--
  4755. hook.Add( "OnPlayerChat", "ping_pong", function( ply, strText, bTeam, bDead )
  4756.  
  4757.     local words = string.Explode( " ", strText )
  4758.        
  4759.         --See which script they are using
  4760.         if chat_scripts[words[1]] != nil then
  4761.        
  4762.             local to_read = string.TrimLeft( strText, words[1] .. " " )
  4763.             local de_sentence = ""
  4764.  
  4765.             for i=1, string.len( to_read ) do
  4766.                    
  4767.                 de_sentence = de_sentence .. string.char( string.byte( to_read, i, i ) - encryption_num )
  4768.  
  4769.             end
  4770.             add_chatbox_text(words[1], de_sentence, ply)
  4771.             return true
  4772.         end
  4773.        
  4774.         --Add waypoints
  4775.         if words[1] == "[WP]" then
  4776.        
  4777.             local to_read_wp = string.TrimLeft( strText, words[1] .. " " )
  4778.             local de_sentence_wp = ""
  4779.            
  4780.             for i=1, string.len( to_read_wp ) do
  4781.            
  4782.                 de_sentence_wp = de_sentence_wp .. string.char( string.byte( to_read_wp, i, i ) - encryption_num )
  4783.                
  4784.             end
  4785.             add_waypoint( string.reverse(de_sentence_wp) )
  4786.             return true
  4787.            
  4788.         end
  4789.        
  4790.         --Remove waypoints
  4791.         if words[1] == "[RWP]" then
  4792.        
  4793.             local to_read_rwp = string.TrimLeft( strText, words[1] .. " " )
  4794.             local de_sentence_rwp = ""
  4795.            
  4796.             for i=1, string.len( to_read_rwp ) do
  4797.            
  4798.                 de_sentence_rwp = de_sentence_rwp .. string.char( string.byte( to_read_rwp, i, i ) - encryption_num )
  4799.                
  4800.             end
  4801.             remove_waypoints( string.reverse(de_sentence_rwp) )
  4802.             return true
  4803.            
  4804.         end
  4805.            
  4806. end )
  4807.  
  4808. --Reset the scale of the chat derma, can't re-open or chat will vanish!
  4809. concommand.Add( "refresh_scale", function()
  4810.  
  4811.             Hc_frame:SetSize( 420 * scale_s, 250 * scale_s )
  4812.             Hc_frame:Center()
  4813.            
  4814.             Hc_richtext:SetPos( 10 * scale_s, 10 * scale_s )
  4815.             Hc_richtext:SetSize( 400 * scale_s, 200 * scale_s )
  4816.            
  4817.             TextEntry:SetPos( 10 * scale_s, 220 * scale_s )
  4818.             TextEntry:SetSize( 350 * scale_s, 20 * scale_s )
  4819.             TextEntry:SetFont( "Hc_chat" )
  4820.            
  4821.             cl_DButton:SetPos( 390 * scale_s, 220 * scale_s )
  4822.             cl_DButton:SetSize( 20 * scale_s, 20 * scale_s )
  4823.            
  4824.             se_DButton:SetPos( 365 * scale_s, 220 * scale_s)
  4825.             se_DButton:SetSize( 20 * scale_s, 20 * scale_s )
  4826.                    
  4827. end)
  4828.  
  4829. --[[ draw waypoints ]]--
  4830. local function waypoint_draw()
  4831.     for k, v in pairs( waypoints ) do
  4832. //          if waypoints[k][1] != nil then --return end
  4833.             local angles = LocalPlayer():EyeAngles()
  4834.             local position = Vector( waypoints[k][1].x, waypoints[k][1].y, waypoints[k][1].z )
  4835.             local distance = position:Distance(LocalPlayer():GetPos())
  4836.             local distance_m = math.Round(distance / 39.370)
  4837. //          if waypoints[k][2] != nil then --return end
  4838.             local textcolour = Color(waypoints[k][2].r, waypoints[k][2].g, waypoints[k][2].b, waypoints[k][2].a ) or Color( 0,0,0,0 )
  4839.            
  4840.             local text = k .. " " .. "[" .. distance_m .. "m]" --,2
  4841.             local TextWidth_wp = surface.GetTextSize(text)
  4842.             local xy = distance/10 + 100
  4843.  
  4844.             angles:RotateAroundAxis(angles:Forward(), 90);
  4845.             angles:RotateAroundAxis(angles:Right(), 90);
  4846.             angles:RotateAroundAxis(angles:Up(), 0);
  4847.            
  4848.             cam.Start3D2D( position, angles, 0.1)
  4849.                 cam.IgnoreZ(true)
  4850.                 draw.RoundedBox( 0, -xy/2, (-xy/2)*2, xy, xy, textcolour )
  4851.                 draw.WordBox(2, -TextWidth_wp*0.5, 0, text, "Waypoint_big", Color(0, 0, 0, 150), textcolour)
  4852.                 cam.IgnoreZ(false)
  4853.             cam.End3D2D()
  4854. //  end
  4855. //  end
  4856.     end
  4857. end
  4858. hook.Add("PostDrawOpaqueRenderables", "waypoint_draw", waypoint_draw) --PostDrawOpaqueRenderables
  4859.  
  4860. --[[ waypoint sender adder ]]--
  4861. local function add_dat_wp( argStr )
  4862.  
  4863.     local en_sentence = ""
  4864.    
  4865.     -- encrypted
  4866.     for i=1, string.len( argStr ) do
  4867.    
  4868.         local en_word = string.byte( argStr, i, i )
  4869.         en_sentence = en_sentence .. string.char( en_word + encryption_num )
  4870.  
  4871.     end
  4872.        
  4873.     -- 30 length without message, message can be 115.
  4874.     RunConsoleCommand( "say", "/radio " .. "[WP]" .. " " .. string.reverse( en_sentence )   )
  4875.     en_sentence = ""
  4876.     //wp_added_msg()
  4877.  
  4878.    
  4879. end
  4880.  
  4881. --[[ waypoint sender remover ]]--
  4882. local function remove_dat_wp( argStr )
  4883.  
  4884.     --que
  4885.     if argStr != nil then
  4886.     table.insert( que, argStr )
  4887.     end
  4888.    
  4889.     if cango and que != nil then
  4890.     --PrintTable( que )
  4891.     cango = false
  4892.  
  4893.     local rwp_en_sentence = ""
  4894.    
  4895.     -- encrypted
  4896.     for i=1, string.len( que[1] ) do
  4897.    
  4898.         local rwp_en_word = string.byte( que[1], i, i )
  4899.         rwp_en_sentence = rwp_en_sentence .. string.char( rwp_en_word + encryption_num )
  4900.  
  4901.     end
  4902.        
  4903.     -- 30 length without message, message can be 85.
  4904.     RunConsoleCommand( "say", "/radio " .. "[RWP]" .. " " .. string.reverse( rwp_en_sentence )  )
  4905.     rwp_en_sentence = ""
  4906.     timer.Simple( 2, function()
  4907.         if waypoints[que[1]] == nil then // fail safe
  4908.             table.remove( que, 1 )
  4909.         else
  4910.             wp_remove_failed_msg( que[1] )
  4911.         end
  4912.         cango = true
  4913.         if que[1] != nil then
  4914.         remove_dat_wp()
  4915.         end
  4916.     end)
  4917.  
  4918.     end
  4919.    
  4920. end
  4921.  
  4922. --[[ waypoint menu ]]--
  4923. concommand.Add( add_wp_concommand, function( ply, cmd, args, argStr )
  4924.  
  4925. local xScreenRes = 1366
  4926. local yScreenRes = 768
  4927. local wMod = ScrW() / xScreenRes    
  4928. local hMod = ScrH() / yScreenRes
  4929.  
  4930. local Frame = vgui.Create( "DFrame" )
  4931. Frame:SetTitle( "Waypoint hlV1" )
  4932. Frame:SetSize( wMod*400, hMod*320 )
  4933. Frame:Center()
  4934. Frame:MakePopup()
  4935. Frame.Paint = function( self, w, h ) -- 'function Frame:Paint( w, h )' works too
  4936.     draw.RoundedBox( 0, 0, 0, w, h, Color( 0, 0, 0, 150 ) ) -- Draw a red box instead of the frame
  4937. end
  4938.  
  4939. local wayp_Entry = vgui.Create( "DTextEntry", Frame )   -- create the form as a child of frame
  4940. wayp_Entry:SetPos( wMod*10, hMod*30 )
  4941. wayp_Entry:SetSize( wMod*380, hMod*30 )
  4942. wayp_Entry:SetText( wayp_n )
  4943. wayp_Entry.OnTextChanged = function(self)
  4944.     -- 115 Character Cap
  4945.         wayp_n = self:GetValue()
  4946.         if string.len(wayp_n) > 50 then
  4947.             self:SetText(self.OldText)
  4948.             self:SetValue(self.OldText)
  4949.             self:SetCaretPos(50)
  4950.             surface.PlaySound ("common/wpn_denyselect.wav")
  4951.         else
  4952.             self.OldText = wayp_n
  4953.         end
  4954.     end
  4955.  
  4956.  
  4957.  
  4958.  
  4959.  
  4960.  
  4961. local ColorPicker = vgui.Create( "DColorMixer", Frame )
  4962. ColorPicker:SetSize( wMod*380, hMod*200 )
  4963. ColorPicker:SetPos( wMod*10, hMod*70 )
  4964. ColorPicker:SetPalette( true )
  4965. ColorPicker:SetAlphaBar( true )
  4966. ColorPicker:SetWangs( true )
  4967. ColorPicker:SetColor( ChosenColor )
  4968.  
  4969. local Button = vgui.Create( "DButton", Frame )
  4970. Button:SetText( "Add waypoint" )
  4971. Button:SetTextColor( Color( 255, 255, 255 ) )
  4972. Button:SetPos( wMod*10, hMod*280 )
  4973. Button:SetSize( wMod*380, hMod*30 )
  4974. Button.Paint = function( self, w, h )
  4975.     draw.RoundedBox( 0, 0, 0, w, h, Color( 41, 128, 185, 250 ) ) -- Draw a blue button
  4976. end
  4977. Button.DoClick = function()
  4978.     ChosenColor = ColorPicker:GetColor()
  4979.     local stringyyy = math.Round(LocalPlayer():GetShootPos()[1]) .. "? " .. math.Round(LocalPlayer():GetShootPos()[2]) .. "? " .. math.Round(LocalPlayer():GetShootPos()[3] + 50)
  4980.     .. "? " .. (ChosenColor.r) .. "? " .. (ChosenColor.g) .. "? " .. (ChosenColor.b) .. "? " .. (ChosenColor.a) .. "? "
  4981.     .. wayp_n
  4982.     add_dat_wp( stringyyy )
  4983.     --print( stringyyy )
  4984. end
  4985.  
  4986.  
  4987. end)
  4988.  
  4989. --Toggle the chat derma rather than re-open because that would cause the chat to blank.
  4990. concommand.Add( console_command, function()
  4991.    
  4992.     Hc_frame:ToggleVisible()
  4993.    
  4994. end)
  4995.  
  4996.  
  4997. --[[ remove waypoints ]]--
  4998.  
  4999. concommand.Add( remove_wp_concommand, function()
  5000.  
  5001. local xScreenRes = 1366
  5002. local yScreenRes = 768
  5003. local wMod = ScrW() / xScreenRes    
  5004. local hMod = ScrH() / yScreenRes
  5005.  
  5006. local Frame = vgui.Create( "DFrame" )
  5007. Frame:SetTitle( "Waypoint remover" )
  5008. Frame:SetSize( wMod*400, hMod*320 )
  5009. Frame:Center()
  5010. Frame:MakePopup()
  5011. Frame.Paint = function( self, w, h ) -- 'function Frame:Paint( w, h )' works too
  5012.     draw.RoundedBox( 0, 0, 0, w, h, Color( 0, 0, 0, 150 ) ) -- Draw a red box instead of the frame
  5013. end
  5014.  
  5015. local WP_LIST = vgui.Create( "DListView", Frame )
  5016. WP_LIST:SetPos( wMod*10, hMod*30 )
  5017. WP_LIST:SetSize( wMod*380, hMod*240 )
  5018. WP_LIST:SetMultiSelect( true )
  5019. WP_LIST:AddColumn( "Waypoint" )
  5020. --AppList:AddColumn( "Pos" )
  5021.  
  5022. for k, v in pairs( waypoints ) do
  5023. //if waypoints[k][1] != nil then
  5024. WP_LIST:AddLine( k )
  5025. --AppList:AddLine( "gg" )
  5026. //end
  5027. end
  5028.  
  5029. local Button = vgui.Create( "DButton", Frame )
  5030. Button:SetText( "Remove waypoint(s)" )
  5031. Button:SetTextColor( Color( 255, 255, 255 ) )
  5032. Button:SetPos( wMod*10, hMod*280 )
  5033. Button:SetSize( wMod*380, hMod*30 )
  5034. Button.Paint = function( self, w, h )
  5035.     draw.RoundedBox( 0, 0, 0, w, h, Color( 41, 128, 185, 250 ) ) -- Draw a blue button
  5036. end
  5037. Button.DoClick = function()
  5038.  
  5039.     for k, line in pairs( WP_LIST:GetSelected()) do
  5040.  
  5041.         remove_dat_wp( line:GetValue(1) )
  5042.         WP_LIST:RemoveLine( line:GetID() )
  5043.  
  5044.     end
  5045.    
  5046. end
  5047.  
  5048.  
  5049. end)
  5050.  
  5051. // mpgh exploits that are free to use
  5052.  
  5053. concommand.Add("hl_wepdupe", function()
  5054.    
  5055.  
  5056.     timer.Simple( 0.4744, function()
  5057.         RunConsoleCommand("say", "/drop")  
  5058.     end)
  5059.    
  5060.     timer.Simple( 1.4135, function()
  5061.         RunConsoleCommand("say", "/sleep")  
  5062.     end)
  5063.    
  5064.     timer.Simple( 7, function()
  5065.         RunConsoleCommand("say", "/sleep")  
  5066.     end)
  5067.    
  5068. end)
  5069.  
  5070. local ag_toggle = 0
  5071. local hook_toggle = 0
  5072. function GenAmmo()
  5073. lastgun = LocalPlayer():GetActiveWeapon():GetClass()
  5074. if hook_toggle == 0 then
  5075. hook.Add("CreateMove", "lolammo", function(cmd)
  5076. RunConsoleCommand("hlrp", "drop")
  5077. RunConsoleCommand("use", lastgun)
  5078. if ag_toggle == 0 then
  5079. cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_USE))
  5080. ag_toggle = 1
  5081. else
  5082. cmd:SetButtons(bit.band(cmd:GetButtons(), bit.bnot(IN_USE)))
  5083. ag_toggle = 0
  5084. end
  5085. end)
  5086. hook_toggle = 1
  5087. else
  5088. hook.Remove("CreateMove", "lolammo")
  5089. hook_toggle = 0
  5090. end
  5091. end
  5092.  
  5093. concommand.Add("hl_ammodupe", GenAmmo)
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119. -- NOT DONE YET---  DO NOT TOUCH --- REMEMBER TO ADD ADDITONAL HOOKS/concommands here, hmm can't add any function that uses deligits detouring thing NEED FIX ASAP.
  5120. concommand.Add( "hl_unload", function()
  5121.  ---- surface.PlaySound("ambient/levels/labs/teleport_winddown1.wav") -- should i use this or custom sound? hmmm....,
  5122.  
  5123. RunConsoleCommand ("hl_esp","0")
  5124. RunConsoleCommand ("hl_hud","0")
  5125. RunConsoleCommand ("hl_xray","0")
  5126. RunConsoleCommand ("hl_entity","0")
  5127. RunConsoleCommand ("hl_watermark","0")
  5128. RunConsoleCommand ("hl_crosshair","0")
  5129. RunConsoleCommand ("hl_crosshair2","0")
  5130. RunConsoleCommand ("hl_flashspam","0")
  5131.   concommand.Remove( "hl_entity" )
  5132.   concommand.Remove( "hl_xray" )
  5133.   concommand.Remove( "hl_about" )
  5134.    concommand.Remove( "hl_menu" )
  5135.    concommand.Remove ("hl_esp")
  5136.  concommand.Remove ("hl_openscript")
  5137.  concommand.Remove ("hl_180")
  5138.  concommand.Remove ("hl_help")
  5139.  concommand.Remove ("hlbhop")
  5140.  concommand.Remove ("hl_adminalert")
  5141.  concommand.Remove ("hlide_adminalert_distance")
  5142.  concommand.Remove ("hl_chatspammer")
  5143.  concommand.Remove ("hl_chatspammer_msg")
  5144.   concommand.Remove ("hl_crosshair")
  5145.     concommand.Remove ("hl_crosshair2")
  5146.  hook.Remove ( "Think", "hl_chatspammer_hook")
  5147.  hook.Remove ( "HUDPaint", "ESP")
  5148.  hook.Remove ("RenderScreenspaceEffects","hl.GetPlys")
  5149.  timer.Remove("hl.GetPlys")
  5150.  timer.Destroy("hl.GetPlys")
  5151.  hook.Remove ("Think","hlflash")
  5152.  concommand.Remove ("hl_flashspam")
  5153.  concommand.Remove ("hl_rainbow")
  5154.   hook.Remove ("Think","hlrainbow")
  5155.   hook.Remove ("HUDPaint", "crosshair2")
  5156.  hook.Remove ("HUDPaint", "crosshair")
  5157.  hook.Remove ("HUDPaint", "huddesign")
  5158.  hook.Remove ("HUDPaint", "watermark")
  5159.  concommand.Remove ("hl_hud")
  5160.   concommand.Remove ("hl_watermark")
  5161.     concommand.Remove ("hl_crosshair")
  5162.     concommand.Remove ("hl_crosshai2")
  5163.     concommand.Remove ("hl_ping_rp")
  5164.      chat.AddText( Color( 100, 255, 100 ) ,"hl NOTICE:" ,  Color( 0, 157, 209 ), "hl's scripts unloaded! Type lua_openscript_cl hlv1.lua to open it again!" )
  5165.   chat.AddText ( Color( 0, 157, 209 ), "The ESP will remain until you rejoin the server.")
  5166.     chat.AddText ( Color( 0, 157, 209 ), "Do not reload the script too many times or you can crash the script!")
  5167.  end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement