Thank you both for your replies.
I tried the last code you wrote, PC Gamer, but unfortunately it did not work in TF2Classic.
There is an improvement though: I indeed have the primary weapon of Scout removed this time. But I don't have any weapon equipped in the primary slot, i.e. I only have the pistol and the bat.
The error I get in the server is pointing out to
m_bInitialized property even more explicitly this time:
And when I dump a network properties file using the
sm_dump_netprops command and look into that text file, there is indeed no property such as m_bInitialized.
I don't understand technically what "properties" and such definitions in sourcemod coding really mean, but at this point, I assume it is a restriction due to the differences of TF2 and TF2Classic? Is there an alternative way to achieve this?