code:
var allowed;
var restricted = ''; //Edit to Restricted Email
function OnEvent_Signin(){
if (Messenger.MyEmail == restricted && allowed == false){
MsgPlus.DisplayToast("Time Restriction", "You don't have permission to sign in");
Messenger.Signout();
}
if (Messenger.MyEmail == restricted){
MsgPlus.AddTimer("AcTime", 60*60*1000);//Ads a 1 hour timer for access time
}
}
function OnEvent_Timer(TimerId){
if (TimerId == "AcTime"){
allowed = false;
MsgPlus.DisplayToast("Time Restriction", "Your Time is up");
Messenger.Signout();
MsgPlus.AddTimer("Gap", 60*60*1000);//Ads a 1 hour timer for gap between signins.
}
if (TimerId == "Gap"){
allowed = true;
}
}
I gave this to you on WLM this evening, i may create a Configuration Window and make it more secure so that no one can skip this without the password some other day when i am free and don't have school work
.