Перейти к содержанию

BanPlayer

Материал из RAGE MP Wiki Archive

Bans the player from joining the current server.


<syntaxhighlight lang="csharp">void NAPI.Player.BanPlayer(Player player, string reason = "");</syntaxhighlight>

Parameters

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


Example

<syntaxhighlight lang="csharp"> // Code here... </syntaxhighlight>