Most servers that have a custom dying animation don't actually let the player die, they basically just freeze them and apply an anim, then use a timer for respawning (health is completely server sided in that case).
Yeah, and a lot of servers don't even use OnPlayerDeath for their death system. They are maybe just applying an animation OnPlayerTakeDamage when their health is like 4, which I did on my server.