Hello
I had a similar requirement for respawning with gear you had on you at death. I couldn't find a script for this already distributed anywhere, so I made it myself.
If I'm not mistaken, the old Arma 2 method doesn't work with Arma 3's new gear system, as although you can still retrieve the weapon and magazine array's from a dead player, you can't retrieve any info for the new categories of gear, such as helmet, vest, assignedItems, etc... (returns <NULL>).
So what the following script does is it retrieves the player's kit every 5 seconds and stores it in a global variable, which then gets used by the respawn eventhandler and the polling script begins again.
I have only been able to do minor testing on this script, so if you guys can let me know how it holds up during game play, then that would be much appreciated.
The file is linked here.
This script is intended for dedicated server use (but not tested on one yet) and it should work on client hosted servers as well.
One problem with the script is that it doesn't store the magazine currently loaded into any of the weapons, so that get's lost at respawn.
If any one knows how to retrieve the currently loaded magazine, then please let me know and I'll fix it.