iPrestege Posted June 17, 2013 Share Posted June 17, 2013 Hi guys .. I'm looking for a site like : game-state - game-monitor because those site's doesn't work with mta now .. No idea what's the reason . Link to comment
Castillo Posted June 17, 2013 Share Posted June 17, 2013 game-state still works, check my signature. Link to comment
iPrestege Posted June 17, 2013 Author Share Posted June 17, 2013 Castillo i know but if you add a new server it will not work . No idea why My server online but it's offline in game-state : http://www.game-state.eu/5.45.176.200:2013/ I add it before a week ago. Link to comment
Mossy Posted June 17, 2013 Share Posted June 17, 2013 Castillo i know but if you add a new server it will not work . No idea why My server online but it's offline in game-state :http://www.game-state.eu/5.45.176.200:2013/ I add it before a week ago. This happened to me too when my server was online. But then it showed again. Must be a problem on their end. Link to comment
iPrestege Posted June 18, 2013 Author Share Posted June 18, 2013 Can anyone help to use this function i found it and you can get info about your mta server : <? mta_getServer("5.45.176.200","2013"); function mta_getServer_process($dat) { if (substr($dat,0,4)=="EYE1") { $dat=substr($dat,4); $i=0; while($dat!="") { if (substr($dat,0,2)==chr(1)."?") { $dat=substr($dat,2); } $l=ord(substr($dat,0,1)); $blks[$i]=substr($dat,1,$l-1); $dat=substr($dat,$l); $i++; } $ret->gameshort=$blks[0]; $ret->port=$blks[1]; $ret->name=$blks[2]; $ret->rules['game']=$blks[3]; $ret->map=$blks[4]; $ret->rules['version']=$blks[5]; if ($blks[6]=="0") { $ret->public=1; } else { $ret->public=0; } $ret->players=$blks[7]; $ret->maxplayers=$blks[8]; $j=0; for ($i=11; $i<sizeof($blks)-2; $i=$i+5) { $ret->player[$j]->name=$blks[$i]; $ret->player[$j]->score=$blks[$i+3]; $ret->player[$j]->time=0; $j++; } } return $ret; } function mta_getServer_send($fp) { fwrite($fp,"s"); } function mta_getServer($ip,$port) { $fp=fsockopen("udp://$ip", $port, $errno, $errstr); if (!$fp) { } else { stream_set_timeout($fp,1,0); mta_getServer_send($fp); $data=fread($fp,16384); fclose($fp); return mta_getServer_process($data); } } 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