The ULX Help and Support section of the forum isn't the best place to discuss how to do things in code.
First, I'd recommend searching our RELEASES section of the forum...many commands there, some might work in Jailbreak.
Second, search for keywords in our DEVELOPER'S CORNER of the forum. Many non-release but good code discussions there.
In fact, since this seems to be more a code discussion than a 'where do I find stuff for ULX' topic now, moving to dev corner.
I'm pretty sure I've seen the exact same give and respawn discussions here on the forum before, and am reasonably sure you might find other code examples.