SERVER: UNKNOWN COMMAND(How To Change this)
#1

Hello There, im asking How Can i Change
PHP код:
SERVER:UNKNOWN COMMAND 
To For example
PHP код:
[SERVER]unknown Command please read /cmds and /help To Help You
i know it's Simple thing But i need help so pleae
Reply
#2

Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
  //Some commands
  return 0;
}
Replace return 0; to
Код:
return SendClientMessage(playerid,-1,"[SERVER]unknown Command please read /cmds and /help To Help You.  ");
Reply
#3

Thanks You Bro Rep+ For Helping me
Reply
#4

If you're using ZCMD, add this callback somewhere in your script, outside callbacks.
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
    if (!success) {
        SendClientMessage(playerid,-1,"[SERVER]unknown Command please read /cmds and /help To Help You.  ");
    }
}
Reply
#5

Oh So if i use ZCMD So i have To use this Callback and not have To use the First one Right?
Reply
#6

Right.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)