Difference between revisions of "War3Source Creating Help Commands"

From AlliedModders Wiki
Jump to: navigation, search
(New page: Category:War3Source_Development Placeholder.)
 
 
Line 1: Line 1:
 
[[Category:War3Source_Development]]
 
[[Category:War3Source_Development]]
Placeholder.
+
=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 16: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!");
}