If he makes it in time, give him huge praise, over the top celebrate. If he has an accident, remain calm, point out where he peed and remind him that pee goes in the potty. Again, without punishment, you can have him help clean up the mess as well. Maybe point out that cleaning up takes away from play time/doing something he enjoys.
Have there been any changes to routine or habits? Or new people?