CGameScriptServerAdmin

Trackmania Next API


CGameScriptServerAdmin

ID 0x03162000
Uninstantiable

Inherits from MwFoundations::CMwNod

API for server control when playing online.

Methods

void AutoTeamBalance()

bool Kick1(CGamePlayerInfo@ User, wstring Reason)

bool Kick2(CGameConnectedClient@ Client, wstring Reason)

bool KickUser(CGamePlayerInfo@ User, wstring Reason)

bool Ban1(CGamePlayerInfo@ User, wstring Reason)

bool Ban2(CGameConnectedClient@ Client, wstring Reason)

bool ForceSpectator1(CGamePlayerInfo@ User, CGameScriptServerAdmin::ESpecMode SpecMode)

bool ForceSpectator2(CGameConnectedClient@ Client, CGameScriptServerAdmin::ESpecMode SpecMode)

bool ForcePlayerRequestedTeam1(CGamePlayerInfo@ User, int Team)

bool ForcePlayerRequestedTeam2(CGameConnectedClient@ Client, int Team)

string ConnectFakePlayer()

void DisconnectFakePlayer(string Login)

void SetLobbyInfo(bool IsLobby, int LobbyPlayerCount, int LobbyMaxPlayerCount, float LobbyPlayersLevel)

void SendToServerAfterMatch(string ServerUrl)

void CustomizeQuitDialog(string ManialinkPage, string SendToServerUrl, bool ProposeAddToFavorites, uint ForceDelay)

void Authentication_GetToken(MwId UserId, string AppLogin)

void SetViewerCount(uint ViewerCount)

Members

const CGameCtnNetServerInfo@ ServerInfo

bool IsDisableChangeTeams

bool IsDisableProfileSkins

const bool Authentication_GetTokenResponseReceived

const uint Authentication_ErrorCode

const string Authentication_Token

const string PlayerRestrictions

Inherited members CMwNod

string IdName

const MwId Id

Enums

ESpecMode

ESpecMode::Selectable
ESpecMode::SpectatorForced
ESpecMode::PlayerForced
ESpecMode::SpectatorSelectable
ESpecMode::PlayerSelectable

Documentation from build 2024-02-26 11:36:11
(Page rendering: 0.03 seconds, 15.86 MB)