opengsq.responses.samp package

Submodules

opengsq.responses.samp.player module

class opengsq.responses.samp.player.Player(id: int, name: str, score: int, ping: int)

Bases: object

Represents the Player class.

id: int

The ID of the player.

name: str

The name of the player.

score: int

The score of the player.

ping: int

The ping of the player.

opengsq.responses.samp.status module

class opengsq.responses.samp.status.Status(password: bool, num_players: int, max_players: int, server_name: str, game_type: str, language: str)

Bases: object

Represents the status response from a server.

password: bool

A value indicating whether a password is required to connect to the server.

num_players: int

The number of players currently connected to the server.

max_players: int

The maximum number of players that can connect to the server.

server_name: str

The name of the server.

game_type: str

The type of game being played on the server.

language: str

The language of the server.

Module contents