Advertisement
LunaScripts

SWH

Jul 31st, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. for i = 1,150 do
  2. print "";
  3. end
  4. MsgC (Color( 182, 0, 255 ), "[SWH v1.0] ")
  5. MsgC (Color( 255, 255, 255 ), "Kiddy's simple wallhack has been loaded!\n")
  6. MsgC (Color( 182, 0, 255 ), "[SWH v1.0] ")
  7. MsgC (Color( 255, 255, 255 ), "It is recomended to bind a key to toggle the commands\n")
  8. MsgC (Color( 182, 0, 255 ), "[SWH v1.0] ")
  9. MsgC (Color( 255, 255, 255 ), "Admins will be in ")
  10. MsgC (Color( 255, 0, 255 ), "this ")
  11. MsgC (Color( 255, 255, 255 ), "color, and friends in ")
  12. MsgC (Color( 0, 255, 0 ), "this ")
  13. MsgC (Color( 255, 255, 255 ), "color\n ")
  14. print(" ")
  15.  
  16. CreateClientConVar ("swh_chams","1", false ,false )
  17. CreateClientConVar ("swh_name","1", false ,false )
  18. local ply = LocalPlayer()
  19.  
  20. hook.Add( "HUDPaint", "swhname", function()
  21. if GetConVarNumber("swh_name") != 1 then return end
  22. for k,v in pairs ( player.GetAll() ) do
  23. if v != ply and v:Alive() then
  24. local col = team.GetColor( v:Team() )
  25. local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
  26. local Name = ""
  27.  
  28. if v == LocalPlayer() then Name = "" else Name = v:Name() end
  29.  
  30. draw.DrawText(Name, "HudHintTextLarge", Position.x, Position.y, Color(255, 255, 255, 255 ), 1 )
  31.  
  32. end
  33. end
  34. end )
  35.  
  36. hook.Add("HUDPaint", "swhCHAMS",function()
  37. if GetConVarNumber("swh_chams") != 1 then return end
  38.  
  39. local v = player.GetAll()
  40.  
  41. for _,v in pairs( player.GetAll() ) do
  42.  
  43. if v != ply and v:Alive() then
  44. cam.Start3D()
  45.  
  46.  
  47. cam.IgnoreZ(true)
  48. render.MaterialOverride(Material("models/debug/debugwhite"))
  49. render.SuppressEngineLighting( true )
  50.  
  51. local col = team.GetColor( v:Team() )
  52.  
  53. render.SetColorModulation( col.r/255, col.g/255, col.b/255 )
  54. if v != ply and v:Alive() and v:IsAdmin() then render.SetColorModulation( 255, 0, 255 ) end
  55. if v != ply and v:Alive() and v:GetFriendStatus() == "friend" then render.SetColorModulation( 0, 255, 0 ) end
  56. v:DrawModel()
  57. render.SetColorModulation( 1, 1, 1 )
  58.  
  59. render.SuppressEngineLighting( false )
  60. render.MaterialOverride(0)
  61. cam.IgnoreZ(false)
  62.  
  63. cam.End3D()
  64.  
  65. end
  66. end
  67. end)
  68.  
  69. hook.Add("HUDPaint", "chamscheck",function()
  70. if GetConVarNumber("swh_chams") == 1 then draw.SimpleText( "Chams: ON", "DermaDefault", 35, 10, Color(0, 255, 0), 1, 1, 1) end
  71. if GetConVarNumber("swh_chams") != 1 then draw.SimpleText( "Chams: OFF", "DermaDefault", 35, 10, Color(255, 0, 0), 1, 1, 1) end
  72. end)
  73.  
  74. hook.Add("HUDPaint", "namecheck",function()
  75. if GetConVarNumber("swh_name") == 1 then draw.SimpleText( "Names: ON", "DermaDefault", 35, 25, Color(0, 255, 0), 1, 1, 1) end
  76. if GetConVarNumber("swh_name") != 1 then draw.SimpleText( "Names: OFF", "DermaDefault", 35, 25, Color(255, 0, 0), 1, 1, 1) end
  77. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement