Provides methods of moving players to a different team. You can use forwards and natives to add teams for different games. The Spectators team is added by default.
Sourcecolors (include file) - https://github.com/Ilusion9/sourcecolors-inc-sm
sm_move <#userid|name> <team>
sm_move <#userid|name> <spec|t|ct>
sm_move <#userid|name> <spec|allies|axis>
sm_move <#userid|name> <spec|red|blue>
sm_move <#userid|name> <spec|survivors|infected>
sm_move_no_immunity - Ignore immunity rules when moving a player to a different team?
sm_move_from_<team>_access
sm_move_to_<team>_access
sm_move_from_spec_access
sm_move_to_spec_access
sm_move_from_t_access
sm_move_to_t_access
sm_move_from_ct_access
sm_move_to_ct_access
sm_move_from_spec_access
sm_move_to_spec_access
sm_move_from_allies_access
sm_move_to_allies_access
sm_move_from_axis_access
sm_move_to_axis_access
sm_move_from_spec_access
sm_move_to_spec_access
sm_move_from_red_access
sm_move_to_red_access
sm_move_from_blue_access
sm_move_to_blue_access
sm_move_from_spec_access
sm_move_to_spec_access
sm_move_from_survivors_access
sm_move_to_survivors_access
sm_move_from_infected_access
sm_move_to_infected_access
/**
* Called before a team's name is rendered to a client.
*
* @param client Client's index (0 = server).
* @param identifier Team's identifier.
* @param buffer Buffer to store the team's name.
* @param maxlength Maximum length of the buffer.
*/
void PlayerMove_OnRenderTeamToClient(int client, const char[] identifier, char[] buffer, int maxlength);
/**
* Called before a client is moved to a different team.
*
* @param client Client's index.
* @param team Client's new team index.
* @param oldTeam Client's old team index.
* @param admin Admin's index (0 = server).
* @return Plugin_Handled to block the move, Plugin_Continue otherwise.
*/
Action PlayerMove_OnMoveClient(int client, int team, int oldTeam, int admin);
/**
* Called when a client is moved to a different team.
*
* @param client Client's index.
* @param team Client's new team index.
* @param oldTeam Client's old team index.
* @param admin Admin's index (0 = server).
*/
void PlayerMove_OnClientMoved(int client, int team, int oldTeam, int admin);
/**
* Adds a team to the move command.
*
* @param identifier Team's identifier.
* @param team Team's index.
* @param name Team's name.
*/
void PlayerMove_AddTeam(const char[] identifier, int team, const char[] name);
/**
* Removes a team from the move command.
*
* @param identifier Team's identifier.
*/
void PlayerMove_RemoveTeam(const char[] identifier);