Hey there, I like your script. xD
However, it messages to the user 'Congratulations' and not the %winner.
So instead of:
timer 1 305 msg %winner Congratulations, %winner -you have won the lottery!
use:
timer 1 305 //msg %winner Congratulations, %winner - you have won the lottery!
Two slashes recognizes $'s and vars.