team_leave()

View on GitHub

Syntax

team_leave(player)
team_leave(team, player)

Removes the player from the team he is in. Returns true if the player left a team, otherwise false.

team_leave('Steve') -> Removes Steve from the team he is currently in for(team_list('admin'), team_leave('admin', _)) -> Remove all players from team ‘admin’