The script I use simply puts all kick/ban information into a custom window. Since I have 2 bots that kick/ban for various reasons and multiple ops who also kick/ban as needed, I like to have a record of what's happening.

My script puts up a custom window that has all the information stored (who it was and their dns info, the time, and the reason). It tracks kicks, bans, and unbans.

Look up help on "Custom Windows" and "on *:kick" and "on *:ban" in mIRC's help. That will give you all you need for such a script.