1) Place the "Flag Spawn" brick. You can find this in the Slayer tab of the brick menu.
2) Start a Slayer minigame and set the gamemode to "Capture the Flag". Be sure to create your teams.
3) Color the flags spawns the exact same color as the team colors.
4) Go capture some flags!