War3Source Creating Help Commands

From AlliedModders Wiki
Jump to: navigation, search

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!");
}