EDIT: You should really code more optimistically than pessimistically. What I mean by that is that you return after every if() to avoid faulty conditions, but you should just execute the following code when you check the inverted situation for the current if() condition.
That's kind of hard to explain, so here's an example:
Code:
if(is_user_alive( id ))return;
// code
Code:
if(!is_user_alive( id )){// code}
Thats how I used to code if statements. I have no idea why I changed.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.