My first thought is to have three events.
+Player: On collision with "solid"
+Player: Platform: is on floor
- Ramp: set jumpthru disabled
+Player: Platform: is jumping
-Ramp: Set jumpthru enabled
+Player: Platform: is falling
-Ramp: Set jumpthru enabled
Try that, I did a quick test of it and it seems to work, but there also seems to be some minor issues.