Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local box = CreateClientConVar( "boxesp", "0", false, false )
- hook.Add("HUDPaint","",function()
- if(!box:GetBool()) then return; end
- for k, v in next, player.GetAll( ) do
- surface.SetFont ( "trebuchet18" )
- if v:GetFriendStatus() == "friend" then
- surface.SetDrawColor( Color( 0,255,0 ) )
- else
- surface.SetDrawColor( 255, 0, 0 )
- end
- if v:IsAdmin() then
- surface.SetDrawColor( Color( 255,0,255 ) )
- end
- if v:Health( ) >= 1 and v:IsValid() and v != LocalPlayer() then
- local pos = v:GetPos( );
- local pos, pos2 = (pos - Vector(0, 0, 5)):ToScreen(), ( pos + Vector(0, 0, 70 ) ):ToScreen();
- local h = pos.y - pos2.y;
- local w = h / 2.2;
- surface.DrawOutlinedRect( pos.x - w / 2, pos.y - h, w, h);
- surface.SetDrawColor(0, 0, 0, 0);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement