Author Topic: Idle time  (Read 1010 times)

Ace

  • Administrators
  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Idle time
« on: September 28, 2008, 04:55:25 PM »
Yes I know you told me yesterday hero but i didn't get it.

How do you get how long a user has been idle and if it is above like 10 minutes, it does something?
And how do you do it for every user in the channel?  Some kind of UBound thing?
« Last Edit: September 28, 2008, 05:35:54 PM by 7thAce »
[img]http://zeus.cooltext.com/images/9ff/9fff41541771f1d8f564cabff80fd40cfb587413.jpg\" border=\"0\" class=\"linked-image\" /][img]http://209.85.12.232/13848/49/pip/admin.png\" border=\"0\" class=\"linked-image\" /]

Pyro

  • Dumbass
  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Idle time
« Reply #1 on: September 29, 2008, 01:07:58 PM »
Code: [Select]
For x = 1 To GetInternalUserCount
    If (GetInternalData(x, 7) > 600) Then
        ' do actions.
    End If
Next

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
Idle time
« Reply #2 on: September 29, 2008, 01:46:48 PM »
Just wanted to point out:

> 600 - Checks if they have been idle for more than 600 seconds
GetInternalUserCount - Gets the amount of users in the channel
GetInternalData - Gets data about a user by an integer that represents their spot in the channel

You want to put that piece of code he gave you into a timer that executes about every 5-40 seconds.
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector