It is simple to modify vertexes, there are many engine functions for it, but when you want to add or remove vertexes you must replace the mesh. Use the ent_getmesh and ent_setmesh functions and then create a new mesh with DirectX functions.
The documentation of the DirectX functions comes with the DirectX 9 SDK that you can download from the Microsoft website.