pawn Code:
HasPackWeapon[playerid] +=GetPlayerWeapon(playerid);
Ehr, that's weird. I understand what you're trying to do here, but it won't work like that. Suppose you have a baseball bat (id 5) and a pistol (id 22) in there. You'll end with a value of 27 for HasPackWeapon. Now, how will you decide which weapon to take out? There might as well be a silenced pistol (id 23) and a knife (id 4) in there.