incorrect command
#1

Hello, ive seen it on some servers that if you type a cmd wrong or just an unkown cmd it will say a custom error message like "Server does know /kfc do /commands for a list of cmds" how would i do that?
Reply
#2

Like this (If correct)

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return SendClientMessage(playerid, -1, "Incorrect command - Custom message");
}
Reply
#3

pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
    if(success == 0)
    {
        SendClientMessage(playerid,.........);
        return 1;
    }
    return 1;
}
You will need zcmd for that.
Reply
#4

danke
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)