Thank you Arron, that will improve one of the current issues I have on my community server, You sir, deserve a cookie.
if ( self.Player:Team() == TEAM_CONNECTING ) then
color = Color( 100, 100, 100, 155 )
elseif ( self.Player:IsValid() ) then
//if ( team.GetName(self.Player:Team() ) == Unassigned) then
if ( tostring(self.Player:Team()) == tostring("1001") ) then
color = Color( 100, 100, 100, 255 )
else
tcolor = team.GetColor(self.Player:Team())
color = Color(tcolor.r,tcolor.g,tcolor.b,225)
end
elseif ( self.Player:IsAdmin() ) then
color = Color( 255, 155, 0, 255 )
end
if ( self.Player == LocalPlayer() ) then
tcolor = team.GetColor(self.Player:Team())
color = Color(tcolor.r,tcolor.g,tcolor.b,255)
end
if ( self.Open || self.Size != self.TargetSize ) then
draw.RoundedBox( 4, 18, 16, self:GetWide()-36, self:GetTall() - 16, color )
draw.RoundedBox( 4, 20, 16, self:GetWide()-40, self:GetTall() - 16 - 2, Color( 225, 225, 225, 150 ) )
surface.SetTexture( texGradient )
surface.SetDrawColor( 255, 255, 255, 100 )
surface.DrawTexturedRect( 20, 16, self:GetWide()-40, self:GetTall() - 16 - 2 )
end
draw.RoundedBox( 4, 18, 0, self:GetWide()-36, 24, color )
surface.SetTexture( texGradient )
surface.SetDrawColor( 255, 255, 255, 150 )
surface.DrawTexturedRect( 0, 0, self:GetWide()-36, 24 )
surface.SetTexture( self.texRating )
surface.SetDrawColor( 255, 255, 255, 255 )
surface.DrawTexturedRect( 20, 4, 16, 16 )
return true
The above code is my line(s) 42 to 88. I'm not sure if you tested this, but my version of the scoreboard has a "//if ( team.GetName(self.Player:Team() ) == Unassigned) then" line, about 4 lines down from line 42(the first line in code tags) That line is basically stating, if player not valid, set team to "Unassigned" which un-commenting that may fix the error, and may remove the gray label, in which you speak of.