Quote: "and the player found a submachine gun and he wants to leave the pistol to take the submachine gun "
Quote: "Watch this gameplay in the minute 5:56 when the player go to a table with weapons "
You said nothing about an enemy dropping their weapon before. This script is only for the Player
to pickup or drop their weapon. Just like in that CoD2 video you linked me. When an npc drops their weapon
and player picks it up this script is not attached. I'm not sure how you have this situation setup?
** WHERE'S MY eXplosys ? **