2/5 you need to elaborate more on where you put the code and saving the as file. This isn't as much a tutorial as it is you just showing us what you did.
@nikitarama you could do what i did to make the enemies stop coming.
just add if(health<1)
{--timer for the powerups--=--any number higher then the timer--;}