if its rebooting while playing games etc then its most likely going to be a overheating issue, as thats the pc's fail safe once it hits a certain temperature.
get yourself a compressed air spray can and clean your case/fans/ everything out, if your graphics card has a fan then clean all that out as well.
this is well worth doing on a regular basis as its a major cause of over heating.