Use vec_dist to detect if a player has come close to a passable weapon. Search the AUMs, there are examples in there (I don't know the magazine numbers, though).