Will this work?
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return SendClientMessage(playerid,COLOR_WHITE,"This command does not exist, Please type /commands for a list");
}
Ingame would that say: This command does not exist, Please type /commands for a list
If someone types in a command that dont exist
Reply


Messages In This Thread
Will this work? - by JoeDaDude - 28.12.2009, 18:13
Re: Will this work? - by Jeffry - 28.12.2009, 18:14
Re: Will this work? - by LarzI - 28.12.2009, 18:22

Forum Jump:


Users browsing this thread: 2 Guest(s)