Help me how to add a Message
#1

How to add a message if The Commands is wrong.
I want to show anything else instead of Server: Unkown Command.
Reply
#2

In OnPlayerCommandText it will send Unknown Command to the client by default if you return a 0. If you want to return a custom message, simply do something like:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return SendClientMessage(playerid, 0xFFFFFF, "Wrong command");
}
I hope that information helps.
Reply
#3

Ty it worxx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)