GetPlayerIDFromName should be more forgiving, in some ways. For example right now if you search for the player Bob it will not find [CLAN]Bob, even though that's probably exactly who you want. On the other hand, if you do fix that the search shouldn't always return the first match, but the best match. Someone whose name is exactly Bob is a better match than [CLAN]Bob, even if they're later in the loop. And which is a better match [CLAN]Bob or Bobby?
GetPlayerIDFromNameshould be more forgiving, in some ways. For example right now if you search for the playerBobit will not find[CLAN]Bob, even though that's probably exactly who you want. On the other hand, if you do fix that the search shouldn't always return the first match, but the best match. Someone whose name is exactlyBobis a better match than[CLAN]Bob, even if they're later in the loop. And which is a better match[CLAN]BoborBobby?