Programming help newb counter

jayded70:
is there a way to return to initial 10000 making the program start over again after a specific button is pressed? Simulating a weapon system being reloaded and ready to fire again.

Or a timer will be best for this application?

if (the reset button is pressed)
{
  set the counter variable to 10000
}