Jump to content

Multi Theft Auto ASE (All Seeing Eye) API


DeViLeR

Recommended Posts

Do you have a MTA server and a website and you want to know what is going on your server? Are you thinking about it pessimisticly?

We have decided to give you an alternative to the other game monitoring services. There are no adverts of MTA-TR but you can add a little link. :) And it is all free.

"It is free and it is perfect!"

Anyway let's get into it:

How does it work?

[url=http://apps.mta-tr.com/ASE/IP:PORT.TYPE]http://apps.mta-tr.com/ASE/IP:PORT.TYPE[/url]

Examples

[url=http://apps.mta-tr.com/ASE/server.gangstaturkz.com:22003.json]http://apps.mta-tr.com/ASE/server.gangs ... 22003.json[/url]
[url=http://apps.mta-tr.com/ASE/server.mta-tr.com:22003.xml]http://apps.mta-tr.com/ASE/server.mta-tr.com:22003.xml[/url]
[url=http://apps.mta-tr.com/ASE/server.mta-tr.com:22003.phps]http://apps.mta-tr.com/ASE/server.mta-tr.com:22003.phps[/url]

Returned Data Types

[b]JSON =[/b] for Javascript
[b]XML =[/b] XML data type you know
[b]PHPS =[/b] PHP Serialized Array (use unserialize function)

Returned Variables

[b]msgID [/b]= Gives the error code; 1 no errors, 2 wrong IP adress, 3 Could not be connected
[b]ip [/b]= Server IP
[b]alias [/b]= Server Alias like server.mta-tr.com
[b]port [/b]= Server port
[b]name [/b]= Server Name
[b]mode [/b]= GameMode
[b]map [/b]= MapName
[b]version [/b]= Server version
[b]num [/b]= Current player count
[b]max [/b]= Max player
[b]players [/b]= Players array

Example XML Output

<?xml version="1.0" encoding="utf-8"?>
<MTA>
<msgID>1</msgID>
<ip>85.153.22.198</ip>
<alias>server.mta-tr.com</alias>
<port>22003</port>
<name>MTA-TR.com Freeroam</name>
<mode>play</mode>
<map>None</map>
<version>1.0</version>
<num>3</num>
<max>125</max>
<players>
	<node>DeViLeR</node>
	<node>Cho</node>
	<node>Specter</node>
</players>
</MTA>

Live Demos

[url=http://www.gangstaturkz.com]http://www.gangstaturkz.com[/url]
[url=http://www.mta-tr.com]http://www.mta-tr.com[/url]

Special thanks to Specter for helping me a translate to english

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