it makes your hp 0 but you dont die just as we have the command /repair add a command where you gain full health+armour or just full health so you can continue training without respawning outside of lawfarm and re-entering again
That would still be a problem for the Role-Playing scenarios as the characters wouldn't really "die" or be "killed off" even after reaching 0 HP, also I am doubtful if that is even possible to script..
also I am doubtful if that is even possible to script.
I dont think it would cause any issue regarding the Role-play situation, the person can simply use in-game animations though it may have slight delay, it would still comprehend that the person is dead or lying on the ground acting as dead,furthermore role-play is diminishing from the server, I dont know any other group other than FBI that conducts role-plays, most of the Groups use law farm as a place for road block or driving.
As for the coding part we need developer's insight so that we can work on the idea together