TGame.OnAdminCommand

From Soldat Community Wiki
Revision as of 22:54, 6 May 2020 by H (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.