OnBanClient Forward

Called for calls to BanClient() with a non-empty command.

Action OnBanClient(int client, int time, int flags, const char[] reason, const char[] kick_message, const char[] command, any source)

Parameters

int client

Client being banned.

int time

Time the client is being banned for (0 = permanent).

int flags

One if AUTHID or IP will be enabled. If AUTO is also enabled, it means Core autodetected which to use.

const char[] reason

Reason passed via BanClient().

const char[] kick_message

Kick message passed via BanClient().

const char[] command

Command string to identify the ban source.

any source

Source value passed via BanClient().

Return Value

Plugin_Handled to block the actual server banning. Kicking will still occur.