How can I help someone with mental illness continue to take their medication?

Direct assistance. You can devise systems that are easy to use, including weekly pill boxes, and even electric alarm-pillboxes. You can also call the patient every time a med is due. But.... The most reliable system would involve a caregiver actually dispensing the medicine at the appropriate time.