you almost had it the right way would be
Darf ich meine Freunde haben die Nacht verbringen
what you said was
May I have my friends to stay overnight
to learn to write more German use the Monkey translate on this page for free
http://www.joeyray1.com/monkey-page.php