7 #include "../client/main.qh"
8 #include "../common/teams.qh"
10 int GetPlayerColorForce(int i)
12 if (!teamplay) return 0;
13 else return stof(getplayerkeyvalue(i, "colors")) & 15;
16 int GetPlayerColor(int i)
18 if (!playerslots[i].gotscores) // unconnected
20 else if (stof(getplayerkeyvalue(i, "frags")) == FRAGS_SPECTATOR) return NUM_SPECTATOR;
21 else return GetPlayerColorForce(i);
24 string GetPlayerName(int i)
26 return ColorTranslateRGB(getplayerkeyvalue(i, "name"));