Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static string addColourToName(string playerName)
- {
- string[] chars = convertToArray(playerName);
- string formatName = "";
- int b = 0;
- int c = 0;
- int n = 0;
- string endColor = "</color>";
- Loop:
- for (int i = b; i < playerName.Length; i++)
- {
- n++;
- formatName += $"{coloursUp[i - b]}{chars[i + b]}{endColor}";
- if (i > coloursUp.Count)
- { c++; break; }
- }
- if (n < playerName.Length)
- { b = (coloursUp.Count * c); goto Loop; }
- return formatName;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement