Here's how you get it too work, but only the basics. If you need to see how to make it restart the level, post it.
Here's how to make it work: simple. When you walk into a coin, have it increase num_coin by 1. Of course, you will need to have num_coin and life as variables. Also, replace [] with the actors name. It should now work. If it doesn't, post what its doing.
-TGWP