GetPlayerWeaponSlot won't give you the index of any items of the tf_wearable or tf_wearable_demoshield class. You'd need GetItemForLoadoutSlot for that, but that requires CTFPlayer GameData (a signature specifically).
__________________
Not currently working on SourceMod plugin development.