War3Source Creating Help Commands

From AlliedModders Wiki
Revision as of 15:42, 21 June 2007 by Pimpinjuice (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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!");
}