#1

How can I make a command like this:

pawn Код:
command(help, playerid, params)
{
      Here will be, say you did /help [WORD], and when you chose the word, it shows information, like this:

       /help commands

It would show the commands help, and how could I do it for like, 6 different things?
return 1;
}
Thanks.
Reply
#2

Use the example located HERE
Reply
#3

That explains nothing to do with what I want..
Reply
#4

pawn Код:
CMD:help(playerid, params[])
{
    new option[24];
    if(sscanf(params, "s[24]", option))
    {
        SendClientMessage(playerid, -1, "Syntax: /help option");
        SendClientMessage(playerid, -1, "Options: vehicle, etc, etc ,etc");
        return 1;
    }
    if(!strcmp(option, "vehicle", true))
    {
        SendClientMessage(playerid, -1, "Heres your vehicle help!");
    }
    else return SendClientMessage(playerid, -1, "That option doesn't exist!");
    return 1;
}
Should be straight forward on how to add more


Edit: lol just noticed this was an old topic, hadn't closed this tab! lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)