Jump to content

[HELP] Query player online on different servers


Recommended Posts

Hi all,

I'm working on a Lobby Script running on my Lobby Server.

This lobby must redirect players to the other servers (DM, OLD, Shooter and Training).

1. Lobby

Is it possible to display the number of player online from all servers on the lobby server choice panel ?

How to query these informations from other servers (DM, OLD, Shooter and Training) to the lobby server ?

2. Cadena

Then i would like to "lock" the different servers (DM, OLD, Shooter and Training) and let only the Lobby Server unlocked.

Is it possible to lock a server which is joinable only via the lobby server with his choice server panel ?

Link to comment
  • Moderators

1.1- Nope it's not possible using built-in functions. But you can by modifying the server source code and then compile it to then use that new mta_server.exe. You can modify how the server will reply to the informations query in ACE.cpp Check lines from line 262 to 265:

https://code.google.com/p/mtasa-blue/so ... SE.cpp#261

1.2 - It's possible to query these informations by using callRemote

2 - Just set a password on the other servers and add the password when redirecting from the lobby server using redirectPlayer

Link to comment
  • Moderators
I would just call a php code from a website, and have it query the then return it, using the php sdk.

That won't help in any way ... He wants to fake the number of players in a server to show the total of players in his other servers. Using an external website will not help at all.

Link to comment
I would just call a php code from a website, and have it query the then return it, using the php sdk.

That won't help in any way ... He wants to fake the number of players in a server to show the total of players in his other servers. Using an external website will not help at all.

I don't think so...

He wants to show it in his Lobby GUI. callRemote will be enough for that.

Link to comment
  • Moderators
I would just call a php code from a website, and have it query the then return it, using the php sdk.

That won't help in any way ... He wants to fake the number of players in a server to show the total of players in his other servers. Using an external website will not help at all.

I don't think so...

He wants to show it in his Lobby GUI. callRemote will be enough for that.

Lol you are right, I read his post again, and I quickly (too quick) read what he wanted to achieve because I had the same idea a long time ago but I wanted to fake the number of players in the server list. So yeah he just wants to display the number in his gui.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...