How to check if someone is online through php?
#3

Quote:
Originally Posted by Calgon
Посмотреть сообщение
When a player connects or logs in, update a value setting the player's online status to 1. When the player disconnects, update a value in a table/field setting the player's online status to 0. And in case the server crashes, set all player status values to 0 in OnGameModeInit.

If you don't use MySQL or a similar system, then you're not going to accurately be able to determine if a player is logged in and online, just if they're online using the connection API functions Westie released a few years ago.
Maybe it would be easier to use PHP query Woet re released and check if string displaying online players contain word "Luis". If it is, you can return true (which means he is online) otherwise false (which means he is not online).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)