They can both be used. It depends on the context of the sentence and how you can use the prepositions "on", or "in". Some example sentences would be: "My mother was influential on the person that I am today.", "They were influential in the way that they spoke to me."
Hope this helps.