Posts: 1622 Reputation: 50
36 / /
Joined: Jan 2006
RE: [Request] Always word
I think this is what you are after. Hope you like it.
code:function OnEvent_ChatWndSendMessage(ChatWnd,Message){//when you send a message
ChatWnd.SendMessage("qweqwe: "+Message)//prefix your message with qweqwe:
}
Don't forget the "return '';" otherwise the message'll be send without "qweqwe :" too.
code:function OnEvent_ChatWndSendMessage(ChatWnd,Message){//when you send a message
ChatWnd.SendMessage("qweqwe: "+Message)//prefix your message with qweqwe:
return "";
}
// SHOW COMMANDS INTO THE COMMAND BOX
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>logo_on</Name>';
commands+='<Description>Description...</Description>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>logo_off</Name>';
commands+='<Description>Description...</Description>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
}
This post was edited on 09-17-2006 at 02:00 PM by Huhu_Manix.