I think i c what youre saying....If youre between 2 points you want your weapon to work.
use this:
if (weaponfired) {
if (playerx in |<this is the number for as far left as its allowed>,<this is the number for far right>|) {
if (playery in |<this is min height that is allowed>,<this is max height allowed>) {you action here;
}
}
}
Of course, you replace the <>'s with values (normally numbers

).
Here is an example:
if (weaponfired) { // You use the weapon to shoot an arrow in the players direction.
if (playerx in |2,20|) { // The player is between the points of 2 and 20 on the x axis
if (playery in |10,30|) { // The player is between the points of 10 and 30 on the y axis
if (playerdarts>=1) {shootarrow playerdir;
}
}
}
}