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

BanPlayer

Материал из RAGE MP Wiki Archive
Версия от 19:42, 22 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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>