pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
new str[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s[ID:%d] typed the command %s", name, playerid, cmdtext);
SendMessageToAll(playerid, -1, str);//Change this to send the command to admins only.
return 1;
}