try this:
Code:
SOUND toeter = "toeter_PP.wav";

var toetertje;

function horn() {
	
	toetertje = snd_loop(toeter,100,0);		
	while(key_h == 1) {wait(1);}
	snd_stop(toetertje);
}

on_h = horn();