I believe that the AMXX deathmatch plugin can remember the state of the weapon, like spawning me with m4a1 + silencer. Actually the silencer is not on but the game triggers my IN_ATTACT2 key to put it. If AMXX can track this, I'm sure that you can find a way by looking at the sources of the deathmatch plugin and the AMXX sources. This is where my knowage ends.