What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Temporary Ban

[Question] Temporary Ban
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Question] Temporary Ban
well i cant be bothered coding it but for anyone who can heres the easiest way i can think of:

1. Get current unix timestamp (Math.round(new Date().getTime() / 1000))
2. Add the specified "block time" to the timestamp
3. Store it somewhere along with the blocked persons email
4. Start a timer with the timestamp to unblock - the current timestamp

You also have to loop through and start all these timers on sign in to make sure they still work after messenger has been ended (and if the time has already passed on sign in, immediately unblock)
08-19-2006 08:22 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] Temporary Ban - by MattyRid on 08-19-2006 at 08:09 AM
RE: [Question] Temporary Ban - by Felu on 08-19-2006 at 08:16 AM
RE: [Question] Temporary Ban - by MattyRid on 08-19-2006 at 08:19 AM
RE: [Question] Temporary Ban - by Eljay on 08-19-2006 at 08:22 AM
RE: [Question] Temporary Ban - by markee on 08-19-2006 at 08:24 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On