21.02.2014, 11:28
How to set " ERROR: Unknown command!" when the player enters the wrong command to " That command doesn't exist! Use /help to see available commands!"
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success) return SendClientMessage(playerid, -1, " That command doesn't exist! Use /help to see available commands!");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
// commands..
return SendClientMessage(playerid, -1, " That command doesn't exist! Use /help to see available commands!");
}