Adding a custom ending for a character in M.U.G.E.N is a matter of pointing the character's definition file at the right storyboard. Here's the basic process.
First, gather your ending files — typically a .def file along with the associated .sff and an audio file such as .mp3 or .midi. Next, open the character's DEF file and look for the arcade section.
In that section, you assign the ending by referencing its file. For example, you'd add a line like:
endingstoryboard = data/capend/ending.def
If you want the same ending used for more than one character, point each character to that shared file. If the ending is unique to a single character, you can instead place the ending file in that character's own folder and reference it simply as:
endingstoryboard = ending.def
Save your changes and the ending will play when the character completes arcade mode.