Play time randomly goes up when player goes afk
#3

Don't increase the variable if they're AFK.

You can check if they're paused by setting a variable to 5 under OnPlayerUpdate and have the value decrease every 1 second. If the variable is ever three or below, they're AFK. That way you can stop increasing the time online variable.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)