LogoutPlayer

From GTA Network Wiki
Jump to: navigation, search

LogoutPlayer
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Logs a player out of ACL.

Syntax

void NAPI.ACL.LogoutPlayer(Client player);

Required Arguments

  • player: parameter input should be in Client type.

Usage example(s)

[Command("logout", ACLRequired = true)]
public void LogoutCommand(Client sender)
{
  if (!NAPI.ACL.IsPlayerLoggedIn(sender)) {
    sender.sendChatMessage("~r~You are not logged in.");
    return;
  }
  NAPI.ACL.LogoutPlayer(sender);
  sender.sendChatMessage("~g~You have been logged out.");
}

Changelog

Version Description
1.0 Release.

References