with SampClient ( address = '1.1.1.1' , port = 7777 ) as client : info = client . get_server_info ( ) clients = client . get_server_clients_detailed ( ) print ( f'Онлайн:{info.players}/{info.max_players}' ) print ( f'Игроки{clients}' )