An mysql query every 1 sec per all_players?
#4

When do you insert that value in the database?
When the player is online or offline?

In case he's online, just kick him immediately instead of saving a 1 in the database and query it every second.

In case he's offline and should be kicked upon connecting, you can simply read the value during OnPlayerConnect and if it's a 1, kick him.

There is no need to run such a query every second per player.
Reply


Messages In This Thread
An mysql query every 1 sec per all_players? - by Metharon - 23.03.2016, 19:08
Re: An mysql query every 1 sec per all_players? - by Abagail - 23.03.2016, 19:17
Re: An mysql query every 1 sec per all_players? - by Golden96 - 23.03.2016, 22:57
Re: An mysql query every 1 sec per all_players? - by AmigaBlizzard - 23.03.2016, 23:42
Re: An mysql query every 1 sec per all_players? - by Yashas - 24.03.2016, 06:45

Forum Jump:


Users browsing this thread: 1 Guest(s)