1. He has written many books. (present perfect)
2. He has been writing many books. (present perfect progressive)
The real difference between these tenses is what we are focussing on - the present perfect focuses on the result of an action. For example, with sentence 1 'he has written many books' so therefore he is an accomplished author and familiar with the process.
Present perfect progressive focuses more on the doing of the action. Sometimes this indicates that the action isn't finished - as in he hasn't finished writing any of the books! For example, with sentence 2 'he has been writing many books' which is why he is tired.
It's a rather subtle difference, so it really depends on what you want to use each formation for.
~
My parents will kill me if I (failed) my exams. (not correct)
If I (was) tired after work tonight I won't play football (not correct)
It looks like you are practising the 1st conditional, expressing the possible future. You want to use this formation:
If + present simple, will + base
My parents will kill me if I fail my exams.
If I am tired after work tonight, I won't play football.
~
Hope this helps!