This is similar to a asymmetric random walk, but the general theory does not help in your case.
Lets call $A_z$ the event that the process $S_n$ does reach the value $z$ for some $n$.
The complementary event $\bar{A_z}$ can only happen if $S_n$ reaches the previous value ($z-1$) and then it jumps by two ($X$ takes the value 2 for the next try).
That is
$P(\bar{A_z}) = P(\bar{A_z} | A_{z-1}) P(A_{z-1}) $
Then, calling $a_z = P(\bar{a_z})$ (the probability we are interested in ), and $q=1-p$ (probability of a two-sized jump) we get the recursion
$a_z = q \; \left[ 1 - a_{z-1} \right] $
with the initial condition $a(0) = 0$
The explicit solution is
$\displaystyle a(z) = q \frac{1 -(-q)^{z}}{1+q} $
ADDED: If $X(n)$ can take 3 values instead of 2, with probs $p_1,p_2,p_3$ the reasoning is similar. There are 3 possible cases and the recursion is
$a_z = (p_2 + p_3) (1- a_{z-1}) + p_3 (1 - a_{z-2})$