MTA Servidores Posted August 15, 2017 Share Posted August 15, 2017 Hello guys. I'm trying to use the PHP SDK from MTA: SA on my site but I can not. What I want to do is get the basic information from a server as a number of players online, whether it is password protected, or no password, whether online or offline. I just can not find any documentation to help me. Can someone help me? Link to comment
szekelymilan Posted August 15, 2017 Share Posted August 15, 2017 I recommend you to use callRemote(), and update the stats in the PHP files every minute with setTimer() in Lua. If the PHP didn't receive the new stat, it means, the server is offline. Link to comment
MTA Servidores Posted August 15, 2017 Author Share Posted August 15, 2017 36 minutes ago, MakroBox said: I recommend you to use callRemote(), and update the stats in the PHP files every minute with setTimer() in Lua. If the PHP didn't receive the new stat, it means, the server is offline. And how would you use callRemote ()? Link to comment
NeXuS™ Posted August 15, 2017 Share Posted August 15, 2017 Did you read the wiki page? 1 Link to comment
MTA Servidores Posted August 17, 2017 Author Share Posted August 17, 2017 I think you did not understand. I want the status of multiple servers without having access to it. Link to comment
szekelymilan Posted August 17, 2017 Share Posted August 17, 2017 9 minutes ago, MTA Servidores said: I think you did not understand. I want the status of multiple servers without having access to it. I think, it only can be possible if you have a bot, who automatically updates it from an MTA Client's Server Browser. (like gametracker.com) Link to comment
MTA Servidores Posted August 19, 2017 Author Share Posted August 19, 2017 On 17/08/2017 at 15:10, MakroBox said: I think, it only can be possible if you have a bot, who automatically updates it from an MTA Client's Server Browser. (like gametracker.com) Thank you. That's what I needed to know. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now