Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i = 1,150 do
- print "";
- end
- MsgC (Color( 182, 0, 255 ), "[SWH v1.0] ")
- MsgC (Color( 255, 255, 255 ), "Kiddy's simple wallhack has been loaded!\n")
- MsgC (Color( 182, 0, 255 ), "[SWH v1.0] ")
- MsgC (Color( 255, 255, 255 ), "It is recomended to bind a key to toggle the commands\n")
- MsgC (Color( 182, 0, 255 ), "[SWH v1.0] ")
- MsgC (Color( 255, 255, 255 ), "Admins will be in ")
- MsgC (Color( 255, 0, 255 ), "this ")
- MsgC (Color( 255, 255, 255 ), "color, and friends in ")
- MsgC (Color( 0, 255, 0 ), "this ")
- MsgC (Color( 255, 255, 255 ), "color\n ")
- print(" ")
- CreateClientConVar ("swh_chams","1", false ,false )
- CreateClientConVar ("swh_name","1", false ,false )
- local ply = LocalPlayer()
- hook.Add( "HUDPaint", "swhname", function()
- if GetConVarNumber("swh_name") != 1 then return end
- for k,v in pairs ( player.GetAll() ) do
- if v != ply and v:Alive() then
- local col = team.GetColor( v:Team() )
- local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
- local Name = ""
- if v == LocalPlayer() then Name = "" else Name = v:Name() end
- draw.DrawText(Name, "HudHintTextLarge", Position.x, Position.y, Color(255, 255, 255, 255 ), 1 )
- end
- end
- end )
- hook.Add("HUDPaint", "swhCHAMS",function()
- if GetConVarNumber("swh_chams") != 1 then return end
- local v = player.GetAll()
- for _,v in pairs( player.GetAll() ) do
- if v != ply and v:Alive() then
- cam.Start3D()
- cam.IgnoreZ(true)
- render.MaterialOverride(Material("models/debug/debugwhite"))
- render.SuppressEngineLighting( true )
- local col = team.GetColor( v:Team() )
- render.SetColorModulation( col.r/255, col.g/255, col.b/255 )
- if v != ply and v:Alive() and v:IsAdmin() then render.SetColorModulation( 255, 0, 255 ) end
- if v != ply and v:Alive() and v:GetFriendStatus() == "friend" then render.SetColorModulation( 0, 255, 0 ) end
- v:DrawModel()
- render.SetColorModulation( 1, 1, 1 )
- render.SuppressEngineLighting( false )
- render.MaterialOverride(0)
- cam.IgnoreZ(false)
- cam.End3D()
- end
- end
- end)
- hook.Add("HUDPaint", "chamscheck",function()
- if GetConVarNumber("swh_chams") == 1 then draw.SimpleText( "Chams: ON", "DermaDefault", 35, 10, Color(0, 255, 0), 1, 1, 1) end
- if GetConVarNumber("swh_chams") != 1 then draw.SimpleText( "Chams: OFF", "DermaDefault", 35, 10, Color(255, 0, 0), 1, 1, 1) end
- end)
- hook.Add("HUDPaint", "namecheck",function()
- if GetConVarNumber("swh_name") == 1 then draw.SimpleText( "Names: ON", "DermaDefault", 35, 25, Color(0, 255, 0), 1, 1, 1) end
- if GetConVarNumber("swh_name") != 1 then draw.SimpleText( "Names: OFF", "DermaDefault", 35, 25, Color(255, 0, 0), 1, 1, 1) end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement