Well it is a creaturescript, onOutfit has the following prototype:
function onOutfit(cid, old, current)
After someone presses OK in the outfit window, your old and current outfit are no longer the same. In this case you are only worried about the current outfit, so you ought to check what...