Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

AutoLogoff due to inactivity (not tested, but logic says it will worK)


The Oracle
 Share

Recommended Posts

(client)

In modGlobals add anywhere:

```
'Inactive Mod by The Oracle

Public InactiveMins as Integer

```
Now, create a timer on frmMirage and name it tmrActive. Set the interval to 60000.

Now, you must put this code anywhere you want the inactive timer to "activate". Doing this will make the timer reset (making them not log off automatically).

```
InactiveMins = 0

```
Double click on the timer and add this code:

```

InactiveMins = InactiveMins + 1
If InactiveMins >= 10 Then
InGame = False
End If

```
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
@The:

> Now, create a timer on frmMirage and name it tmrActive. Set the interval to 60000.
>
> Now, you must put this code anywhere you want the inactive timer to "activate". Doing this will make the timer reset (making them not log off automatically).
>
> ```
> InactiveMins = 0
>
> ```

Appart from this part, it should work.
But, doing the thing above will make him set back to 0, which you should place in every part where you do something, and not where you want it to 'activate'.

Looks fine for the rest.
Link to comment
Share on other sites

@The:

> Now, create a timer on frmMirage and name it tmrActive. Set the interval to 60000.
>
> Now, you must put this code anywhere you want the inactive timer to "activate". Doing this will make the timer reset (making them not log off automatically).
>
> ```
> InactiveMins = 0
>
> ```

Appart from this part, it should work.
But, doing the thing above will make him set back to 0, which you should place in every part where you do something, and not where you want it to 'activate'.

Looks fine for the rest.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...