Table of Contents

Delegate CommandInfo.CommandListenerCallback

Namespace
CounterStrikeSharp.API.Modules.Commands
Assembly
CounterStrikeSharp.API.dll

Command listener callback. If returning Handled or higher, will prevent the command from executing.

public delegate HookResult CommandInfo.CommandListenerCallback(CCSPlayerController? player, CommandInfo commandInfo)

Parameters

player CCSPlayerController
Command listener callback. If returning or higher, will prevent the command from executing.
commandInfo CommandInfo
Command listener callback. If returning or higher, will prevent the command from executing.

Returns

HookResult
Command listener callback. If returning or higher, will prevent the command from executing.