Ok I just had to change it to weaponsid >= 1. Again thank you very much for your help.
I have a new problem now. When a person picks up a gun and then drops it, weaponsid does not seem to go back to 0. So even if they do not have a gun it will still say they do.