I changed it to this.
function ulx.respawn( calling_ply, target_ply )
if (target_ply:Team() == TEAM_GUARD_DEAD) then
target_ply:Spawn()
target_ply:SetTeam(TEAM_GUARD)
ulx.fancyLogAdmin( calling_ply, true, "#A respawned #T", target_ply )
elseif (target_ply:Team() == TEAM_PRISONER_DEAD) then
target_ply:Spawn()
target_ply:SetTeam(TEAM_PRISONER)
ulx.fancyLogAdmin( calling_ply, true, "#A respawned #T", target_ply )
end
end
Now it sets the team to alive and teleports the player to a spawn point, but it does not spawn them.