how do i make a custom message (instead of "Unknown Command")
#4

Here you go, I've included some explanation inside, Enjoy!

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)//callback from #include <zcmd>
{//open
    if(!success)//If the command does not exist on the server, ! = false
        return SendClientMessage(playerid, COLOR_WHITE, "Your Error Message Here.");//showing the message
    return 1;
}//close
Reply


Messages In This Thread
how do i make a custom message (instead of "Unknown Command") - by sansk - 22.09.2013, 09:01
Re: how do i make a custom message (instead of "Unknown Command") - by Patrick - 22.09.2013, 09:04
Re: how do i make a custom message (instead of "Unknown Command") - by sansk - 22.09.2013, 09:09
Re: how do i make a custom message (instead of "Unknown Command") - by Patrick - 22.09.2013, 09:14
Re: how do i make a custom message (instead of "Unknown Command") - by sansk - 22.09.2013, 09:45
Re: how do i make a custom message (instead of "Unknown Command") - by Konstantinos - 22.09.2013, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)