25.07.2012, 12:23
Hello, ive seen it on some servers that if you type a cmd wrong or just an unkown cmd it will say a custom error message like "Server does know /kfc do /commands for a list of cmds" how would i do that?
public OnPlayerCommandText(playerid, cmdtext[])
{
return SendClientMessage(playerid, -1, "Incorrect command - Custom message");
}
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
if(success == 0)
{
SendClientMessage(playerid,.........);
return 1;
}
return 1;
}