Split to another thread,
please refer to
the rules.
Also, please refer to KSI-GS and format your code properly if you're interested in receiving help.
The biggest problem (aside from your horrendous formatting) is that you are checking #p(1) rather than #p(2), which is the first parameter specified in setshootparams. #p(0) and #p(1) are coordinates.