11.11.2015, 07:08
Quote:
PHP код:
|
You should use this callback for invalid command since latest YSI update
PHP код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
if (success != COMMAND_OK)
{
return SendClientMessage(playerid,COL_GREEN,"ERROR: Invalid command! Check /CMDS for the commands list");
}
return 1;
}