if (strcmp("/report", cmd, true) == 0) { new tmp1[256], tmp2[256], jogador[MAX_PLAYER_NAME], reportado[MAX_PLAYER_NAME], string[256], reportadoid; { tmp1 = strtok(cmdtext, idx); tmp2 = strtok(cmdtext, idx); reportadoid = strval(tmp1); GetPlayerName(playerid, jogador, sizeof(jogador)); GetPlayerName(reportadoid, reportado, sizeof(reportado)); if (!strlen(tmp1) ||!strlen(tmp2)) return SendClientMessage(playerid, VERMELHO1, "Use: /report [ID] [MOTIVO]"); PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); format(string, sizeof(string), "%s [%d] Reportou o player %s [%d] Motivo: %s.", jogador, playerid, reportado, reportadoid, cmdtext[10+strval(tmp1)]); SendClientMessage(playerid, VERDE1, "Report enviado a todos os admistradores online.Obrigado"); } return 1; }
if(PlayerInfo[playerid][pAdmin] >= 2) |
MsgToAdmin(Cor, Mensagem[])
{
  for(new v, b = GetMaxPlayers(); v != b; v++)
    if(PlayerInfo[v][pAdmin] > 0)
      SendClientMessage(v,Cor,Mensagem);
}
MsgToAdmin(-1, string);
if (strcmp("/report", cmd, true) == 0)
{
  new tmp1[256], tmp2[256], jogador[MAX_PLAYER_NAME], reportado[MAX_PLAYER_NAME], string[256], reportadoid;
  tmp1 = strtok(cmdtext, idx);
  tmp2 = strtok(cmdtext, idx);
  reportadoid = strval(tmp1);
  GetPlayerName(playerid, jogador, sizeof(jogador));
  GetPlayerName(reportadoid, reportado, sizeof(reportado));
  if (!strlen(tmp1) ||!strlen(tmp2)) return SendClientMessage(playerid, VERMELHO1, "Use: /report [ID] [MOTIVO]");
  PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  format(string, sizeof(string), "%s [%d] Reportou o player %s [%d] Motivo: %s.", jogador, playerid, reportado, reportadoid, cmdtext[10+strval(tmp1)]);
  for(new x; x < MAX_PLAYERS; ++x)
  {
    if(IsPlayerConnected(x))
    {
      if(PlayerInfo[x][pAdmin] >= 2)
      {
        SendClientMessage(x,-1,string);
      }
    }
  }
  SendClientMessage(playerid, VERDE1, "Report enviado a todos os admistradores online.Obrigado");
  return 1;
}