What do you have calling this function?
As it stands now, you manually have to call this function using "ulx forcerespawn", and, the person that calls it has to be a prisoner, and specify players they want to be prisoner dead.
ulx forcerespawn "list,of,players"
(I'm not familiar with jailbreak, or even gamemode functions really, but it's obvious typical Glua so far)