if(YourClanVariable == playersClan) //Obviously, you need to change this to the correct vars SetPlayerColor(playerid, ClanColor); //Again, change ClanColor to the wanted color