Strange, did it crash during any of those glitches?

I just came up with what may be actually the best solution. I will still destroy the item in this way as it appears to be effective in that it removes the item from the player and then destroys it without issue.

I will then add code that tells the user to select a knife or the item in the slot they should have and that should be the same as the user pressing the button.

---------- Post added at 11:55 PM ---------- Previous post was at 11:43 PM ----------

The coming out of invis suggests something very interesting. I wonder if the real problem here is lag. In that you are given a weapon but the restriction for that weapon was not lifted in time. This would be solved with a timer.

For now I am forcing selection of the scout at spawn and the knife at teleport.

If the theory at the top is correct you should still be able to get the following glitches:
  • Left hand scout coming out of a teleport
  • Scout can vanish at spawn or left hand glitch at spawn

If you get any of those after the next update let me know and I will try a new method to patch this