Total Members Voted: 1
And not everyone has the name %1 so I'm not sure what point you're trying to make
If you type %1 in blockland in the chat, welcome message, etc. it will show the players name.
ServerCmdMessageSent(FindClientByName("%client.name"), <bitmap:Add-Ons/Client_Smiley_System/Smileys/cool.png>
I'm trying to make it where when someone says :) it gives the smiley instead...
function ServerCmdMessageSent(%cl, %msg){ %msg = stripMLControlChars(%msg); %msg = strReplace(%msg, ":)", "<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);}
Instead of overwriting the function and breaking things, you'd want to package it, parse through the string message and add the bitmap thay way.
packaging it will filter out the image tags, you'll need to basically remake the function without that one line of code
What is stopping you from putting it back in after it was removed
You should learn a bit more TS before trying to help others.
Code: [Select]function ServerCmdMessageSent(%cl, %msg){ %msg = stripMLControlChars(%msg); %msg = strReplace(%msg, ":)", "<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);}
So, use his/her code?