Get User Count in Every Zone
Posted: 07 Jun 2011, 08:21
Hi, I would like to limit the number of users in a zone to say 250 users (to not crowd the screens). I would like to create a "Zone" choice menu for users, which will have just a simple zone list (e.g. all zones are copies of the first zone and they all are using the same extensions). For this I need to know exactly how many users are currently logged in to each of the zones (so I can provide different config file to the user, depending on the choice). According to the API I can only get the
Which is the current Zone's user count (also for this a user will need to be logged in).
So to sum up, I would need:
- user count in every zone running on the server, - Array/Object/XML style (ZoneName,int), So I can parse it and create a menu (similar to what admin tool is using).
OR
should I just save the current user count from time to time to the DB & then just read it from it using PHP/Java ?
Any other suggestions to get the desired effect are also welcome
Thank you.
Code: Select all
getUserCount()
Get the current amount of Users connected to the ZoneSo to sum up, I would need:
- user count in every zone running on the server, - Array/Object/XML style (ZoneName,int), So I can parse it and create a menu (similar to what admin tool is using).
OR
should I just save the current user count from time to time to the DB & then just read it from it using PHP/Java ?
Any other suggestions to get the desired effect are also welcome
Thank you.