I'm no scripting expert, but it would help if you were a little more specific.
If you mean armor that makes a mage unable to cast a spell, this can easily be done by making a piece of armor and applying an Auto-State to it with a "Can't Use Magic" state.