In this article we present a class of codes with few weights arising from special type linear sets. We explicitly show the such codes, their weight enumerators and possible choices for generator matrices. particular, our construction yields three and, in some cases, almost MDS codes. The interest these relies on applications to authentication secret schemes, connections further objects as assoc...