I've make a provisional one:
code:
var Sec = 0;
var Min = 0;
var Hrs = 0;
var Days = 0;
var Weeks = 0;
function OnEvent_Signin(Email)
{
var Email_1 = "default@hotmail.com"; //Change to your children email
var Email_2 = "";
if (Email == Email_1 || Email == Email_2) {
MsgPlus.AddTimer("Time",1000);
}
else {}
}
function OnEvent_Timer(sTimerId)
{
if (sTimerId == "Time") {
if (Sec == "60") {
Sec = 0;
Min = Min + 1;
}
if (Min == "60") {
Hrs = Hrs + 1;
Min = 0;
}
if (Hrs == "24") {
Hrs = 0;
Days = Days + 1;
}
if (Days == "7") {
Days = 0;
Weeks = Weeks + 1
}
Debug.Trace(OnlineTime);
Sec = Sec + 1;
MsgPlus.AddTimer("Time",1000);
if (Hrs == "2") {
var Message = "Bye Bye !";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("Your time is over", Message,'notify.mp3');
Messenger.signout(); }
}
}
I need that children can't connect after the signout
Hi !