Is here a mod that makes you instantly respawn when getting shot in the head (for a roleplay server)?
https://forum.cfx.re/t/release-rpdeath-hospital
Look at how this is written and copy/edit it to do what you need - not sure you can do it specifically if they are shot in the head though.