To play a trick on someone in your dream indicates that you are not being honest with yourself. You are trying to divert attention elsewhere, other than yourself. Alternatively, the dream may be a metaphor for “turning tricks.” 

To dream that you have been tricked suggests that your plans are about to backfire.