local tex = surface.GetTextureID( "darkland/fw_vip" ) local function HUDPaint() if ( GAMEMODE.Name != "FortWars: VIP" ) then hook.Remove( "HUDPaint", "ShowVIP" ) return end local teams = {} for _, ply in pairs( player.GetAll() ) do teams[ ply:Team() ] = team.GetColor( ply:Team() ) end surface.SetTexture( tex ) for teamID, col in pairs( teams ) do local vip = GetGlobalEntity( "Team".. teamID .. "VIP" ) if ( ValidEntity( vip ) ) then surface.SetDrawColor( col.r, col.g, col.b, 255 ) local pos = ( vip:GetPos() + Vector( 0, 0, 70 ) ):ToScreen() surface.DrawTexturedRect( pos.x - 16, pos.y - 16, 32, 32 ) end end end hook.Add( "HUDPaint", "ShowVIP", HUDPaint )