After looking back at my old codes and seeing that this has not been litterally used before..
PHP Code:
public OnPluginStart( )
{
RegConsoleCmd("joingame", JOINgAME);
RegConsoleCmd("jointeam", JOINgAME);
}
public Action:JOINgAME(client, args)
{
if (GetUserFlagBits(client)) { CS_SwitchTeam(client, 3); }
else { CS_SwitchTeam(client, 2); }
CS_RespawnPlayer(client);
return Plugin_Handled;
}
i guess it could be written into TF2. BUt anyways what it does is finds if the player has Admin flags, then simply sets them to CT team. I made this long ago just thought it might help out some plugin ideas or something.