This sounds like a PC in need of repair but as there are no PC details, we await you to tell us more.
two problems every time my pc gets shut off or restarted the next time it boots without fail within 30 minutes my pc freezes every single time then i force retsarte and its fine but if i turn pc off again and on same thing freezes also middle of games my pc just turns off

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic