-#ifndef TEAMPLAY_H
-#define TEAMPLAY_H
+#pragma once
string cache_mutatormsg;
string cache_lastmutatormsg;
// # of bots on those teams
float cb1, cb2, cb3, cb4;
+int redowned, blueowned, yellowowned, pinkowned;
+
//float audit_teams_time;
void TeamchangeFrags(entity e);
-void entcs_init();
-
void LogTeamchange(float player_id, float team_number, float type);
-void default_delayedinit();
+void default_delayedinit(entity this);
void ActivateTeamplay();
void InitGameplayMode();
-string GetClientVersionMessage();
+string GetClientVersionMessage(entity this);
-string getwelcomemessage(void);
+string getwelcomemessage(entity this);
void SetPlayerColors(entity pl, float _color);
// NOTE: Assumes CheckAllowedTeams has already been called!
float FindSmallestTeam(entity pl, float ignore_pl);
-float JoinBestTeam(entity pl, float only_return_best, float forcebestteam);
+int JoinBestTeam(entity this, bool only_return_best, bool forcebestteam);
//void() ctf_playerchanged;
-void SV_ChangeTeam(float _color);
void ShufflePlayerOutOfTeam (float source_team);
-#endif
+
+void setcolor(entity this, int clr);