An easier way to do what Jazz said about finding if they have the weapon would be
PHP Code:
if (("Weapon Name") != null) {
// code here
}
or even
PHP Code:
if (findWeapon("Weapon Name") != null) {
// code here
}
though the findWeapon is technically unneeded.