If I was is the standard past form, but when we want to refer to something that is not true and that is unlikely to happen (but not impossible to happen), we use** If I were**.
If I were rich, I would give you half of the money I have.
In this sentence, I'm not rich and probably I won't never be but if I were rich, then I would give you half of the money I have.