RE: [release] Only Allowed Email can sign-in
ok the script that works, and can have any amount of emails added is this
function OnEvent_Signin(Email)
{
if(Email == "email1@hotmail.com" || Email == "email2@hotmail.com" || Email == "email3@hotmail.com" || Email == "email4@hotmail.com" || Email == "email5@hotmail.com" || Email == "email6@hotmail.com")
{
var Message = "Welcome " + Messenger.MyName + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("Access Granted", Message,'notify.mp3');
}
else
{
var Message = "Access Denied" + "!" + "Bye-Bye " + Messenger.MyName + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("Bouncer Bot Activated", Message,'notify.mp3');
Messenger.signout();
}
}
and then if you want to addmore people, just copy and paste { || Email == "email2@hotmail.com"} into the end of the line if(Email == "email1@hotmail.com" || Email == "email2@hotmail.com" || Email == "email3@hotmail.com" || Email == "email4@hotmail.com" || Email == "email5@hotmail.com" || Email == "email6@hotmail.com"<right here>)
this works for certain, tested many times
This post was edited on 06-27-2006 at 02:20 AM by Apola Silverstone.
|