Code:
gamever 1.02.58055
hostname GamingSA Large Coops
mapname Chernarus
gametype Coop
numplayers 42
numteams 0
maxplayers 50
gamemode openplaying
timelimit 15
password 0
param1 1
param2 1
currentVersion 102
requiredVersion 102
mod CA;@English
equalModRequired 0
gameState 7
dedicated 1
platform win
language 65543
difficulty 1
mission co50 Air Cav A2 1.04
gamename arma2pc
sv_battleye 0
in PHP you can do this
Code:
$addr = "202.136.100.194";
$port = "2702";
$openwaiting= "";
$member= "";
$maxwait = 60;
$sock = fsockopen(("udp://" . $addr), $port, $errno, $errdesc, $maxwait);
$query = pack("c*", 0xFE, 0xFD, 0x00, 0x04, 0x05, 0x06, 0x07, 0xFF, 0xFF, 0xFF);
fwrite($sock, $query);
@socket_set_timeout($sock, 2);
$reply = "";
if (!$sock) {
$reply = "";
} else {
fwrite($sock, $query);
@socket_set_timeout($sock, 2);
$reply = @fread($sock, 2048);
fclose($sock);
if (strlen($reply) > 100) {
} else {
// echo "An Error has poped up please check your setting";
// exit;
}
}
if ($reply != '') {
$Infoarray = explode(chr(0), $reply);
$num = $Infoarray[10];
$i5 = 1;
$i1 = 56;
for ($i = 0; $i < $num; $i++) {
$PlayerID = $i5;
$Playername = $Infoarray[$i1];
$i1 = $i1 + 1;
$Playerclan = $Infoarray[$i1];
$i1 = $i1 + 1;
$Playerkills = $Infoarray[$i1];
$i1 = $i1 + 1;
$PlayerDeaths = $Infoarray[$i1];
echo "Player ID = ". $PlayerID . "<br>";
echo "Player Name = ". $Playername . "<br>";
echo "Player Clan = ". $Playerclan . "<br>";
echo "Player Kills = ". $Playerkills . "<br>";
echo "Player Deaths = ". $PlayerDeaths . "<br>";
$i1 = $i1 + 1;
$i5 = $i5 + 1;
};
};