You CANNOT make an add-on through blender. You can make a model of the add-on. The add-on requires scripts, which cannot be done through blender. All blender does is models. The second link provided will help you make the model, but, with scripting, you have to figure that one out for yourself, just look at different weapon scripts, vehicle scripts, custom bricks etc...