TGame.OnAdminCommand

From Soldat Community Wiki
Jump to: navigation, search
property OnAdminCommand
 Access mode: RW
 Event handler type: TOnAdminCommandEvent
 Event handler declaration: 
   function (Player: TActivePlayer; Command: string): boolean

Description

Event property called when an ingame admin enters a command.

Since 2.8.2 Player is nil if the command comes from the tcp admin.

To disable the command used set the function's Result to TRUE.