Not sure if this will work, try it out
package smileyChat{
function ServerCmdMessageSent(%cl, %msg){
%msg = stripMLControlChars(%msg);
%msg = strReplace(%msg, "8)", "<bitmap:Add-Ons/Script_Smiley_System/Smileys/cool.png>");
messageAll(' ', "<color:666666>" @ %cl.clanPrefix @ "<color:FFFF00>" @ %cl.name @ "<color:666666>" @ %cl.clanSuffix @ "<color:FFFFFF>" @ ": " @ %msg);
}
};
activatePackage(smileyChat);
Type 8) in the chat to get the cool smiley