Online Clients - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Online Clients (/Thread-Online-Clients) |
Online Clients - Leonidas - 09-16-2015 09:49 AM Okay, I've made alot of posts right after another and im sorry for all the questions lol, this will be my last one for today. I have a web page displaying my server's status. Showing online players, guilds, items, npc's, etc. My problem is that when someone is connected to the status page, it counts that person as an "in-game player". So for example. 2 players are in-game, 2 people are viewing the status from a web page, it now says that there are 4 players online. I'm using %CLIENTS% to get the online amount. Is there a way to only show in-game players and not people viewing the webpage? Without using mysql, because I have no clue how to do any of that lol. RE: Online Clients - Coruja - 09-17-2015 05:08 AM sphere can generate html pages in 2 ways -using page generation + http server -using page generation only when you use page generation + http server, sphere will act as a simple HTTP server so if anyone open an http page it will be a new connection and this means +1 client online to avoid this, you must enable only the webpage generation and use any other http server (ISS, apache, etc). This will make sphere only generate the html page and the rest will be handled by the HTTP server |