+ // if we want the player in a certain team for campaign, force him there\r
+ if(cvar("g_campaign"))\r
+ if(clienttype(pl) == CLIENTTYPE_REAL) // only players, not bots\r
+ {\r
+ switch(cvar("g_campaign_forceteam"))\r
+ {\r
+ case 1:\r
+ SetPlayerColors(pl, COLOR_TEAM1 - 1);\r
+ LogTeamchange(pl.playerid, pl.team, 2);\r
+ return COLOR_TEAM1;\r
+ case 2:\r
+ SetPlayerColors(pl, COLOR_TEAM2 - 1);\r
+ LogTeamchange(pl.playerid, pl.team, 2);\r
+ return COLOR_TEAM2;\r
+ case 3:\r
+ SetPlayerColors(pl, COLOR_TEAM3 - 1);\r
+ LogTeamchange(pl.playerid, pl.team, 2);\r
+ return COLOR_TEAM3;\r
+ case 4:\r
+ SetPlayerColors(pl, COLOR_TEAM4 - 1);\r
+ LogTeamchange(pl.playerid, pl.team, 2);\r
+ return COLOR_TEAM4;\r
+ default:\r
+ break;\r
+ }\r
+ }\r
+\r