Minecraft wiki entry for Command_blocks_and_functions, associated text: Using parameter [gamemode=creative], the player can affect those who are in Creative, or Survival with parameter [gamemode=survival].