UnbanPlayer

From GT-MP
Jump to: navigation, search
UnbanPlayer
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Unbans the specified Social Club name/handle from the server.

Syntax

In C#
Server-Side Function

API.unbanPlayer(string socialClubHandle);

Required Arguments

  • socialClubHandle: parameter input should be in string type.

Usage example(s)

In C#
Server-Side Function

[Command("unban")]
public void UnbanCommand(Client player, string socialClubHandle)
{
    API.unbanPlayer(socialClubHandle);
    API.sendChatMessageToAll("The ban on ~h~" + socialClubHandle + "~h~ got lifted by an admin.");
}

References