to be able to respawn in a vehicle.
do the following
1) addeventhandler killed to the player
2)have the eventhandler run a script
3) have the following entries in your respawn script
INIT.sqsplayer addEventHandler ["killed", {_this exec "myrespawn.sqs"}]
myrespawn.sqsplayer removeAllEventHandlers "Killed"
_pos = getpos player
@alive player
player addEventHandler ["killed", {_this exec "myrespawn.sqs"}]
_veh = "cessna" createVehicle _pos
_veh addweapon "machinegun30"
_veh addmagazine "machinegun30"
_veh addmagazine "machinegun30"
player moveindriver _veh
_veh flyinheight 100
exit
allow the unit to respawn in the normal way, eg at a respawn marker.
He will be instantaneously moved into the plane on respawn