Do you mean using STRCMP? OnPlayerCommandText? If yes, here ya go.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/clearchat", cmdtext, true, 10)==0) { if(IsPlayerAdmin(playerid)) { for(new i =0; i < MAX_PLAYERS; i++) { SendClientMessageToAll(-1, ""); } } else SendClientMessage(playerid, -1, "You are not authorized to use this command !"); return1; } return0; }