API для [OLD] SCHOOL ™
JSON для программ, сайтов и прочего
text
json
{
"response": {
"coop": "0",
"bot_stop": "0",
"bot_walk": "0",
"pausable": "0",
"bot_debug": "0",
"bot_quota": "7",
"sv_cheats": "0",
"bot_prefix": "",
"bot_zombie": "0",
"listentype": "d",
"mp_buytime": "0.25",
"mp_c4timer": "35",
"sv_alltalk": "0",
"sv_contact": "",
"sv_gravity": "800",
"sv_restart": "0",
"amx_nextmap": "cs_office",
"bot_chatter": "off",
"environment": "l",
"mp_autokick": "0",
"mp_maxmoney": "16000",
"mp_timeleft": "03:11",
"a2s_protocol": 48,
"amx_language": "ru",
"bot_nav_edit": "0",
"bot_show_nav": "0",
"mp_footsteps": "1",
"mp_maxrounds": "0",
"mp_roundtime": "2",
"mp_timelimit": "20",
"bot_join_team": "any",
"bot_nav_zdraw": "4",
"bot_quicksave": "0",
"bot_traceview": "0",
"mp_freezetime": "0",
"mp_startmoney": "800",
"bot_deathmatch": "0",
"bot_difficulty": "3",
"bot_join_delay": "0",
"bot_profile_db": "BotProfile.db",
"bot_quota_mode": "normal",
"mp_fadetoblack": "0",
"mp_forcecamera": "1",
"mp_kickpercent": "0.66",
"mp_randomspawn": "0",
"sv_allowupload": "1",
"sv_voiceenable": "1",
"amxmodx_version": "1.9.0.5263",
"bot_auto_vacate": "0",
"bot_show_danger": "0",
"max_queries_sec": "1",
"mp_friendlyfire": "0",
"sv_restartround": "0",
"allow_spectators": "1.0",
"bot_allow_rifles": "1",
"bot_allow_rogues": "1",
"bot_allow_shield": "0",
"mp_forcechasecam": "2",
"players_complete": true,
"bot_allow_pistols": "1",
"bot_allow_snipers": "1",
"mp_give_player_c4": "1",
"bot_allow_grenades": "1",
"bot_allow_shotguns": "1",
"bot_defer_to_human": "0",
"max_queries_window": "1",
"mp_autoteambalance": "0",
"amx_client_languages": "0",
"mp_ammo_respawn_time": "0",
"bot_join_after_player": "1",
"mp_afk_bomb_drop_time": "25",
"bot_allow_machine_guns": "1",
"max_queries_sec_global": "1",
"ff_damage_reduction_other": "0.35",
"bot_allow_sub_machine_guns": "1",
"ff_damage_reduction_bullets": "0.35",
"ff_damage_reduction_grenade": "0.25",
"mp_respawn_immunity_effects": "0",
"mp_respawn_immunity_force_unset": "0",
"ff_damage_reduction_grenade_self": "1.0",
"steam_id": null,
"domain": null,
"id": 14450197,
"ip": "91.211.118.111",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Киев",
"description": null,
"game": 10,
"boosts": 1,
"last_offline": 1789344677,
"last_online": 1789744898,
"icon": null,
"name": "[OLD] SCHOOL ™",
"connect": "91.211.118.111:27015",
"request": "91.211.118.111:27015",
"map": "de_salt",
"gamemode": "█ - VIP - █",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "UA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1788551611,
"last_update": 1789744898,
"ban_reason": null,
"banned": false,
"hidden": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7395,
"language": "uk",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14450197");
$data = json_decode($json, true);
var_dump($data);