Hello, I'm new to this forum. I started scripting not to long ago and at the moment I'm at a stump. What I'm trying to do is when the user types something (EX:/Test) The user recieves a message BUT ONLY THAT USER.
my code is:
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message =="/Test"&&Messenger.MyContacts.GetContact("emails@hotmail.com")){
var Message = "Testing";
ChatWnd.SendMessage(Message);
return '';
}
}
In my code the email address is different (Obviously) but anyways I can type /Test and it sends the messages but I can use the code on everyone not just that email. Help is appreciated.