Start dedicated server
join and execute on the client
[] spawn {sleep 5; player setpos (player modeltoworld [0,0,10]); player setdamage 1}
quickly select abort and wait on confirmation (quit? yes, no) dialog.
after 5 seconds player gets moved 10 metres in the air and killed
when you see yourself dying press yes to complete abort
rejoin the server and enjoy your body hanging in midair.