SA-MP Forums Archive
[AJUDA] /Laptop E /Infolider Em dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] /Laptop E /Infolider Em dialog (/showthread.php?tid=344342)



[AJUDA] /Laptop E /Infolider Em dialog - Vinicius_TroLL - 20.05.2012

Alguem pode poor o /laptop e o /infolideres em dialog ?
Код:
   if(strcmp(cmd,"/laptop",true)==0)
   {
       if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
          {
             if(ConnectedToPC[playerid] == 255)
             {
                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк desligou seu laptop, e se desconectou de sua Agкncia.");
                 ConnectedToPC[playerid] = 0;
                 return 1;
             }
             GetPlayerName(playerid, sendername, sizeof(sendername));
             SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк ligou seu laptop, e se conectou a sua Agкncia.");
             SendClientMessage(playerid, COLOR_WHITE, "|___ Agencia dos Assassinos ___|");
             SendClientMessage(playerid, COLOR_YELLOW2, "|");
             SendClientMessage(playerid, COLOR_YELLOW2, "| - Noticias");
             SendClientMessage(playerid, COLOR_YELLOW2, "| - Contratos");
             SendClientMessage(playerid, COLOR_YELLOW2, "| - DarCont");
             SendClientMessage(playerid, COLOR_YELLOW2, "| - Pedido");
             SendClientMessage(playerid, COLOR_YELLOW2, "| - Membros");
             SendClientMessage(playerid, COLOR_YELLOW2, "| - Sair");
            SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
            ConnectedToPC[playerid] = 255;
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "  Vocк nгo й um Assassino!");
              return 1;
          }
      }
       return 1;
   }
Код:
    if (strcmp("/infolider", cmdtext, true, 10) == 0)
   {
       if(IsPlayerConnected(playerid))
      SendClientMessage(playerid, COLOR_WHITE, "|______________ Lideres das Organizaзхes ______________|");
      format(string, sizeof(string), "1 - Policia Militar: %s", InfoOrg[1][Lider]);
      SendClientMessage(playerid, COR_PM, string);
      format(string, sizeof(string), "2 - BOPE: %s", InfoOrg[2][Lider]);
      SendClientMessage(playerid, COR_PR, string);
      format(string, sizeof(string), "3 - Exйrcito: %s", InfoOrg[3][Lider]);
      SendClientMessage(playerid, COR_EXE, string);
      format(string, sizeof(string), "4 - Mйdicos: %s", InfoOrg[4][Lider]);
      SendClientMessage(playerid, COR_SAMU, string);
      format(string, sizeof(string), "5 - Aztecas: %s", InfoOrg[5][Lider]);
      SendClientMessage(playerid, COR_AZTECAS, string);
      format(string, sizeof(string), "6 - Taliban: %s", InfoOrg[6][Lider]);
      SendClientMessage(playerid, COR_TAL, string);
      format(string, sizeof(string), "7 - Prefeitura: %s", InfoOrg[7][Lider]);
      SendClientMessage(playerid, COR_PRE, string);
      format(string, sizeof(string), "8 - Hitmans: %s", InfoOrg[8][Lider]);
      SendClientMessage(playerid, COR_HITMAN, string);
      format(string, sizeof(string), "9 - Reporteres: %s", InfoOrg[9][Lider]);
      SendClientMessage(playerid, COR_REP, string);
      format(string, sizeof(string), "10 - Taxistas: %s", InfoOrg[10][Lider]);
      SendClientMessage(playerid, COR_TAXI, string);
       format(string, sizeof(string), "11 - Policia Federal: %s", InfoOrg[11][Lider]);
      SendClientMessage(playerid, COR_PF, string);
      format(string, sizeof(string), "12 - La Hermandad: %s", InfoOrg[12][Lider]);
      SendClientMessage(playerid, COR_COSA, string);
      format(string, sizeof(string), "13 - Mбfia Yakuza: %s", InfoOrg[13][Lider]);
      SendClientMessage(playerid, COR_YAK, string);
      format(string, sizeof(string), "14 - Grove Street: %s", InfoOrg[14][Lider]);
      SendClientMessage(playerid, COR_GRO, string);
       format(string, sizeof(string), "15 - Al'Qaeda: %s", InfoOrg[15][Lider]);
      SendClientMessage(playerid, COR_AL, string);
      format(string, sizeof(string), "16 - Policia Civil: %s", InfoOrg[16][Lider]);
      SendClientMessage(playerid, COR_PC, string);
       format(string, sizeof(string), "17 - Ballas: %s", InfoOrg[17][Lider]);
      SendClientMessage(playerid, COR_BALLAS, string);
       format(string, sizeof(string), "18 - Vagos: %s", InfoOrg[18][Lider]);
      SendClientMessage(playerid, COR_VAGOS, string);
       format(string, sizeof(string), "19 - Comando Vermelho: %s", InfoOrg[19][Lider]);
      SendClientMessage(playerid, COR_CV, string);
       format(string, sizeof(string), "20 - PCC: %s", InfoOrg[20][Lider]);
      SendClientMessage(playerid, COR_PCC, string);
       format(string, sizeof(string), "21 - Os Ratos: %s", InfoOrg[21][Lider]);
      SendClientMessage(playerid, COR_RATOS, string);
      format(string, sizeof(string), "22 - Hells Angels: %s", InfoOrg[22][Lider]);
      SendClientMessage(playerid, COR_HELLANGELS, string);
      return 1;
     }



Re: [AJUDA] /Laptop E /Infolider Em dialog - BreakDriFT - 20.05.2012

Use Strcat .