Jump to content

PHP Query


gledy

Recommended Posts

Posted

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

there IS an example there..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

check my reply in this post, ignore 1st post.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

omg just go into that site i posted in the topic mentioned above!

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

<? 
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); 
        } 
} 
?> 

not working for server 80.79.23.150:22003 :?

PHP File:

$info=mta_getServer('80.79.23.150', '22003'); 
echo $info->name; 

Posted

DUDE!

Are you blind, or what?

I told you ...........

argh, whatever

USE THIS, NOTHING ELSE!

http://callofdutystats.net/

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

what?

you can do everything with this, its updated, proper-written and just working fine..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

its..actually..doing..this..

so what is the problem?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

sorry .. few understand it, I'm a noob ... would be a good concrete example .. Forum on game-monitor is a nice example, but then does not work for my version

Posted

example included in zip with this script.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

no?

read instructions if you don't know how to use it.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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