ExecuteCommandHandler

From Multi Theft Auto: Wiki
Revision as of 14:43, 26 August 2007 by Talidan (talk | contribs)
Jump to navigation Jump to search

This function will call all the attached functions of an existing console command, for a specified player.

Syntax

bool executeCommandHandler ( string commandName, player thePlayer, [ string args ] )

Required Arguments

  • commandName: The name of the command you wish to execute. This is what must be typed into the console to trigger the function.
  • thePlayer: The player that will be presented as executer of the command to the handler function(s) of the command

Optional Arguments

  • args: Additional parameters that will be passed to the handler function(s) of the command that is called.

Returns

Returns true if the command handler was called successfully, false otherwise.

Example

Click to expand [+]
Server

See Also