tagging players

what command would tag a player p1, unless they have any of the tags p1, p2, p3, p4, p5, p6, p7 or another player already has the tag p1
Continue to help post