19.11.2015, 12:28
Hello,
I want to make a custom error message like this:
If player enter /blabla, and if this command doesn't exist,
the server will send:
[Server] This command(/blabla) doesn't exist. Do /cmds for see all commands.
I do:
The server send "SERVER: Unknown command."
What i need to do?
I want to make a custom error message like this:
If player enter /blabla, and if this command doesn't exist,
the server will send:
[Server] This command(/blabla) doesn't exist. Do /cmds for see all commands.
I do:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 10) == 0)
{
SCM(playerid, COLOR, "It's work!");
return 1;
}
new string[256];
format(string,sizeof(string),"[Server] This command(%s) doesn't exist. Do /cmds for see all commands.", cmdtext);
return SCM(playerid, COLOR, string);
}
What i need to do?