Unknown Command Help.
#3

Do you use y_commands, OnPlayerCommandText, zcmd or what?
For OnPlayerCommandText, you can add a SendClientMessage after all your commands, like:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/mycommand", true))
    {
        SendClientMessage(playerid, -1, "This is a command.");
        return 1;
    }
    SendClientMessage(playerid, -1, "You have not entered a command.");
    return 1;
}
For zcmd, you can simply use OnPlayerCommandPerformed.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, -1, "You have not entered a command.");
    return 1;
}
Reply


Messages In This Thread
Unknown Command Help. - by Brys - 25.03.2015, 19:44
Re: Unknown Command Help. - by Toxik - 25.03.2015, 19:47
Re: Unknown Command Help. - by CalvinC - 25.03.2015, 19:50
Re: Unknown Command Help. - by Brys - 25.03.2015, 19:51
Re: Unknown Command Help. - by Brys - 25.03.2015, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)