well the command is 'unassignvehicle unit'
so...
how about this:
make a trigger,
activation: none
mode: repeatedly
condition: !(player in mgname)
on activation: unassignvehicle player
so that should work...
just change the name from mgname to what ever the name of the mg is in the condition filed
cheers,
Phil