Jump to content

PHP SDK


Recommended Posts

Posted

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?

Posted

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.

Posted
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 ()?

Posted
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)

Posted
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.

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...