$response = $server->RconCommand("kick #" . $pl_uid . " " . $pl_reason); if (substr($response, 1) != "") { $user_msg = "_PLAYERKICKED"; log_to_db("Kick online", "nick: " . $pl_name . " <" . $pl_steamid . "><" . $pl_ip . "> kicked"); } $server_msg = $servers_array[$sid]["address"] . "<br>" . substr($response, 1); //for debug, shows the response from server $server->Disconnect(); } } if ($servers_array[$sid]["mod"]) { //get player list sent by plugin $server_address = explode(":", trim($servers_array[$sid]["address"])); $server = new Rcon(); if ($server->Connect($server_address[0], $server_address[1], $servers_array[$sid]["rcon"])) { $response = $server->ServerPlayers(); //explode packet and get infos $re = explode("\n", $response); //there is a response from amxmodx plugin if (strlen($response)) { if ($re[0] != "Bad rcon_password." && $re[1] != "Bad rcon_password." && $re[2] != "Bad rcon_password.") { foreach ($re as $k => $v) { $pl = explode("ü", $v); if (!is_array($pl)) { break; } $gi = geoip_open("include/GeoIP.dat", GEOIP_STANDARD); $cc = geoip_country_code_by_addr($gi, $pl[3]); $cn = geoip_country_name_by_addr($gi, $pl[3]); geoip_close($gi); switch ($pl[4]) {