Help command with categories.
#1

I want to create a help command with different categories.
If you type help without params it says the categories.
If you type help with any of the params it will say all commands for that category.
I tried something, but it didn't work.
pawn Код:
CMD:help(playerid, params[])
{
    if (isnull(params))
    {
    SendClientMessage(playerid, COL_LIGHTBLUE, ".:| Help |:.");
    SendClientMessage(playerid, COL_ORANGE, "How to use: /Help [NAME]");
    SendClientMessage(playerid, COL_ORANGE, "General|Vehicle|Player|Properties");
    SendClientMessage(playerid, COL_LIGHTBLUE, ".:| Help |:.");
    }
   
    else if (params == "general")
    {
        SendClientMessage(playerid, COL_LIGHTBLUE, ".:| General help |:.");
        SendClientMessage(playerid, COL_ORANGE, "Helpme");
        SendClientMessage(playerid, COL_LIGHTBLUE, ".:| General help |:.");
    }
    return 1;
}
When I type /help general, then the SendClientMessage messages doesn't show up, but it doesn't say that the command isn't recognized.
Reply


Messages In This Thread
Help command with categories. - by xX4m4zingXx - 28.01.2015, 20:04
Re: Help command with categories. - by HazardouS - 28.01.2015, 20:43
Re: Help command with categories. - by xX4m4zingXx - 28.01.2015, 21:44
Re: Help command with categories. - by xX4m4zingXx - 29.01.2015, 15:25
AW: Help command with categories. - by Nero_3D - 29.01.2015, 15:43
Re: AW: Help command with categories. - by xX4m4zingXx - 29.01.2015, 16:27
AW: Re: AW: Help command with categories. - by Nero_3D - 29.01.2015, 17:45
Re: AW: Re: AW: Help command with categories. - by xX4m4zingXx - 29.01.2015, 19:53
Re: Help command with categories. - by Sime30 - 29.01.2015, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)