Are you referring to a child, a 5 year old? Why would you be worried about him/her 'being mad' at you? The child is FIVE!
If the child is mad because he/she was scolded .. then why would you be worried about him/her being 'mad'? I don't understand? What's the point in behavioral management if you undermine your own disciplinary actions. That's just counterproductive, don't you think?
If you're worried about your 5 yr old 'being mad at you', there's more to it than this. I would consider myself a failure as a parent if my kids were NEVER mad at me! You are the parent; not the pal. Be strong, be loving, be consistent. If the child doesn't get his/her own way, too bad. Explain your reasoning to the child, and that's it. Are you going to be worried about angering your ten-yr old later? Or your 15 yr-old? If you don't stand your ground now, you will be in for tough times.
What comes to mind is getting down to his level and play the games he likes, join him in activities, make special time at night to read or tell stories. If this 'mad' has gone on for a long time it could be a symptom of a bigger problem. Sorry this happening, must be hard on you.
Why would you not want them mad at you? If you are being a good parent your are teaching him/her that life doesn't always go their way. You don't want a spoiled brat. Besides teaching him/her they can't have it all, you are also letting them learn how to deal with their anger. Tell him/her if they don't like your decision they can go up to their room and find something else to do. Or if the decision they are not happy about takes them away from their toys let them know if they are good after doing what needs to be done they can have a treat.
Why is the 5 yr. old mad? Is it because they didn't get their way? Let them be mad. They'll get over it. If you are letting a 5 yr. old run the household according to their temper you are in for a long and unhappy parenthood and potentially doing your child a disservice by failing to give them the discipline they need. Consider sending them to their room until they get over it. You have to be the boss not the child.
According to todays politically correct proponents (of which I am not), you should buy him a pony, give him a trophy and 3 lbs of chocolate. Then when he grows up to be a less than contributing adult, blame society.