Looking for a certain kind of GZ/RZ script for my server

I am looking for an esx script that will allow me to setup your typical RP greenzone, unable to shooy, god mode so players cant kill from shooting outside of the zone etc… but I also need it to have redzones that when you die you respawn just outside the redzone, similar to 100k or die servers like 187 RP. I only want the respawning thing to work within the RZ though… once you leave the RZ normal RP rules will apply where dying will warrant a normal respawn at the hospital. I want players to have the RZ where they can go crazy without RDM being a problem. These can be a single script or individual scripts idc. I just need them to work as intended. Any and all help is appreciated.