4 float TeamByColor(float color)
8 case COLOR_TEAM1: return 0;
9 case COLOR_TEAM2: return 1;
10 case COLOR_TEAM3: return 2;
11 case COLOR_TEAM4: return 3;
16 float GetPlayerColorForce(float i)
21 return stof(getplayerkey(i, "colors")) & 15;
24 float GetPlayerColor(float i)
26 if not(playerslots[i].gotscores) // unconnected
27 return COLOR_SPECTATOR;
28 else if(stof(getplayerkey(i, "frags")) == FRAGS_SPECTATOR)
29 return COLOR_SPECTATOR;
31 return GetPlayerColorForce(i);
34 string GetPlayerName(float i)
36 return ColorTranslateRGB(getplayerkey(i, "name"));
39 vector GetTeamRGB(float color)
43 default: return '1 1 1';
44 case COLOR_TEAM1: return '1 0 0'; // red
45 case COLOR_TEAM2: return '0 0 1'; // blue
46 case COLOR_TEAM3: return '1 1 0'; // yellow
47 case COLOR_TEAM4: return '1 0 1'; // pink
51 string GetTeamName(float color)
55 default: return "Spectators";
56 case COLOR_TEAM1: return "Red Team";
57 case COLOR_TEAM2: return "Blue Team";
58 case COLOR_TEAM3: return "Yellow Team";
59 case COLOR_TEAM4: return "Pink Team";