mightydok Posted June 22, 2010 Share Posted June 22, 2010 Hello. Where i can get online & offline script to create statistics for MTA server? Link to comment
0 mightydok Posted July 16, 2010 Author Share Posted July 16, 2010 Qstat support ASE servers, sample: qstat -xml -eye 127.0.0.1:22003 <?xml version="1.0" encoding="iso-8859-1"?> <qstat> <server type="EYE" address="127.0.0.1:22003" status="UP"> <hostname>127.0.0.1:22003</hostname> <name>CTK MTA Assault Server</name> <gametype>Assault</gametype> <map>as-dam</map> <numplayers>0</numplayers> <maxplayers>64</maxplayers> <ping>31</ping> <retries>0</retries> </server> </qstat> Link to comment
0 Dark Dragon Posted July 16, 2010 Share Posted July 16, 2010 please use the edit button instead of posting 3 times in a row you can learn how to script here: https://wiki.multitheftauto.com/wiki/Main_Page it contains all the information you need including some guides which help you setting up your first scripts. Link to comment
0 AeroXbird Posted July 22, 2010 Share Posted July 22, 2010 I am guessing he needs to know how to do this in a browser: using PHP for example, correct me if i am wrong. Link to comment
0 mightydok Posted July 23, 2010 Author Share Posted July 23, 2010 I am guessing he needs to know how to do this in a browser: using PHP for example, correct me if i am wrong. Yes, you right. I use PHP scripts for online monitoring of MTA servers. Link to comment
0 AeroXbird Posted July 23, 2010 Share Posted July 23, 2010 I have a small example for your here: <?php $ip = "ip.ip.ip.ip" ; // Enter IP here $port = "port"; // enter port here: $_GET['ip']="$ip:$port"; $array=explode(':',$_GET['ip']); $fp = @fsockopen($array[0], $array[1], $errno, $errstr,1); elseif($fp){ $status = "<font color=\"green\">online</font>"; fclose($fp); // Close connection since we dont need it anymore. } else{ $status = "<font color=\"red\">offline</font>"; } echo $status; ?> Link to comment
Question
mightydok
Hello.
Where i can get online & offline script to create statistics for MTA server?
Link to comment
6 answers to this question
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