My own message insted of SERVER:Uknown Command
#1

How can i change that if you type a command that i havent got for example /blabla
you get my own message insted of SERVER:Uknown Command
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp("/mycommand", cmdtext, true, 10) == 0)
  {
    // your command.
    return 1;
  }
  // other commands.
  return SendClientMessage(...); // your custom message.
}
Reply
#3

but this will not work if you type in something else like /bla will it?
Reply
#4

This will work if you type a command which doesn't exist in your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)