Difference between revisions of "War3Source Creating Help Commands"
Pimpinjuice (talk | contribs) (New page: Category:War3Source_Development Placeholder.) |
Pimpinjuice (talk | contribs) |
||
Line 1: | Line 1: | ||
[[Category:War3Source_Development]] | [[Category:War3Source_Development]] | ||
− | + | =What is it?= | |
+ | When someone accesses the War3Source help menu through "war3help", or a variant of the command, you can put your own custom commands on the menu! | ||
+ | |||
+ | =How to do it= | ||
+ | The native is as followed. | ||
+ | <pawn>native War3_CreateHelpCommand(String:name[],String:desc[]);</pawn> | ||
+ | |||
+ | =Example= | ||
+ | This would add the command "say hello there" with the description "This is a test command!" to the menu. | ||
+ | <pawn>public OnPluginStart() | ||
+ | { | ||
+ | War3_CreateHelpCommand("say hello there","This is a test command!"); | ||
+ | }</pawn> |
Latest revision as of 15:42, 21 June 2007
What is it?
When someone accesses the War3Source help menu through "war3help", or a variant of the command, you can put your own custom commands on the menu!
How to do it
The native is as followed.
native War3_CreateHelpCommand(String:name[],String:desc[]);
Example
This would add the command "say hello there" with the description "This is a test command!" to the menu.
public OnPluginStart() { War3_CreateHelpCommand("say hello there","This is a test command!"); }