Errm.. I doubt a script can do that. If there were 2 separate things, one for normal custom emoticons and one for animated custom emoticons, it would probably already be in the Options, which it isn't
Or maybe I'm wrong, maybe a script could disable .gif (animated) and allow .png (normal), but a scripter can answer that