BanPlayer

From RAGE Multiplayer Wiki
Revision as of 09:19, 30 November 2019 by Xabi (talk | contribs) (Created page with "Bans the player from joining the current server. {{CSharpContainer| {{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}Client.BanPlayer(Client player, strin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Bans the player from joining the current server.


C# Syntax

void NAPI.Client.BanPlayer(Client player, string reason = "");

Parameters

  • player: parameter input should be in Client type
  • reason: optional parameter, input should be in string type


Example

// Code here...