http://www.divinityengine.net/index.php?title=FadeToBlackFadeToBlack(CHARACTER_Player1,500.0,0)
Remember, put a 0 at the end, not a 1. Also, is the timer actually in seconds, or is it miliseconds? If it's in seconds, it might take almost 10 minutes to fade out with 500 in there. Put it down to 5.0 to make sure.