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