06.12.2017, 11:15
When I enter the wrong command it will not show me that I have entered a bad command.
I use YSI 4.0
I use YSI 4.0
PHP код:
public e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
for(new i=0; i<=MAX_PLAYERS; i++) if (!IsPlayerAdmin(playerid) && PlayerInfo[i][Admin] < 1) va_SendClientMessage(i, 0x3366FFFF, "Hrбč %s (%d) cmdtext: %s", PlayerName(playerid), playerid, cmdtext);
if(!success) va_SendClientMessage(playerid,0xFF7F7FFF,"Command Error %s",cmdtext);
return COMMAND_OK;
}