I just remembered what i saw the other day in a thread, you were correct just you didn't specify where i should've checked wether the player is alive.
I added the check into fwHamPlayerSpawn instead of checking it in my function, makes so much more sense now after the last post.