League of Legends can only set two states (state name change) after logging in to the client, one is online and the other is away. Setting the status to "away" means that you don't want to be invited to play games with other friends for the time being.
Click the green button shown in the figure to switch states.