Difference between revisions of "TGame.OnAdminCommand"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
 
Line 7: Line 7:
 
==Description==
 
==Description==
 
Event property called when an '''ingame''' admin enters a command.<br>
 
Event property called when an '''ingame''' admin enters a command.<br>
 +
 +
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''.
 
To disable the command used set the function's Result to ''TRUE''.
  
 
[[Category:TGame]][[Category:Events]]
 
[[Category:TGame]][[Category:Events]]

Latest revision as of 23:54, 6 May 2020

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.