Interface SourcePlayerInfo

Represents player information returned by the A2S_PLAYER query.

interface SourcePlayerInfo {
    deaths?: number;
    duration: number;
    index: number;
    money?: number;
    name: string;
    score: number;
}

Properties

deaths?: number

Number of deaths (The Ship only).

duration: number

Duration (in seconds) the player has been connected to the server.

index: number

Index of the player.

money?: number

Amount of money (The Ship only).

name: string

Name of the player.

score: number

Score of the player.