Exit Game Function?

Nice ideia…another i had this morning is create a button on my pause menu…check for the latest save and save minor things like ammo…or life…