[Ajuda] /orgs em Dialog
#1

Pessoal , queria passa o /orgs em mesagem , para dialog
Код:
	if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 0)
			{
			    if(admtrampando[playerid] < 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0)
				{
					SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)");
					return 1;
				}
                SendClientMessage(playerid, COLOR_WHITE, "|______________ {FF7800}Organizaзхes do BGW{FFFFFF}______________|");
                format(string, sizeof(string), "{828282}Nє1 {FF8C00}Policia Militar: {828282}%s", InfoOrg[1][Lider]);
	        	MSGPLAYER(playerid, COLOR_AZULBB, string);
	        	format(string, sizeof(string), "{828282}Nє2 {FF8C00}Bope: {828282}%s", InfoOrg[2][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє3 {FF8C00}Exйrcito: {828282}%s", InfoOrg[3][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє4 {FF8C00}Mйdicos: {828282}%s", InfoOrg[4][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s", InfoOrg[5][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє6 {FF8C00}Taliban: {828282}%s", InfoOrg[6][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє7 {FF8C00}Prefeito: {828282}%s", InfoOrg[7][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє8 {FF8C00}Hitmans: {828282}%s", InfoOrg[8][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
         		format(string, sizeof(string), "{828282}Nє9 {FF8C00}Reporteres: {828282}%s", InfoOrg[9][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє10 {FF8C00}Taxistas: {828282}%s", InfoOrg[10][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
             	format(string, sizeof(string), "{828282}Nє11 {FF8C00}Policia Federal: {828282}%s", InfoOrg[11][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s", InfoOrg[12][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s", InfoOrg[13][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє14 {FF8C00}Groove Street: {828282}%s", InfoOrg[14][Lider]);
           		MSGPLAYER(playerid, COLOR_AZULBB, string);
             	format(string, sizeof(string), "{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s", InfoOrg[15][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
         		format(string, sizeof(string), "{828282}Nє16 {FF8C00}Policia Civil: {828282}%s", InfoOrg[16][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
            	format(string, sizeof(string), "{828282}Nє17 {FF8C00}Ballas: {828282}%s", InfoOrg[17][Lider]);
          		MSGPLAYER(playerid, COLOR_AZULBB, string);
            	format(string, sizeof(string), "{828282}Nє18 {FF8C00}Vagos: {828282}%s", InfoOrg[18][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
            	format(string, sizeof(string), "{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s", InfoOrg[19][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);
             	format(string, sizeof(string), "{828282}Nє20 {FF8C00}Los tugas: {828282}%s", InfoOrg[20][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);
             	format(string, sizeof(string), "{828282}Nє21 {FF8C00}Irmandade: {828282}%s", InfoOrg[21][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);
          		format(string, sizeof(string), "{828282}Nє22 {FF8C00}Los Fortes: {828282}%s", InfoOrg[22][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє23 {FF8C00}Bombeiros: {828282}%s", InfoOrg[23][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);

            }
		}
		return 1;
	}
Reply
#2

ShowPlayerDialog(playerid, [numero], DIALOG_STYLE_MSGBOX, "Orgs", string, "OK", "CANCELAR");
Reply
#3

Use neste estilo:

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 0)
            {
                if(admtrampando[playerid] < 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)");
                    return 1;
                }
                format(string, sizeof(string), "{828282}Nє1 {FF8C00}Policia Militar: {828282}%s\n", InfoOrg[1][Lider]);
                ShowPlayerDialog(playerid,IDDIALOG,DIALOG_STYLE_MSGBOX,"Orgs do Servidor:",string,"Fechar","");
            }
        }
        return 1;
    }
Reply
#4

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
    {
        new DialogOrgs[1000];
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 0)
            {
                if(admtrampando[playerid] < 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)");
                    return 1;
                }
                SendClientMessage(playerid, COLOR_WHITE, "|______________ {FF7800}Organizaзхes do BGW{FFFFFF}______________|");
                format(string, sizeof(string), "{828282}Nє1 {FF8C00}Policia Militar: {828282}%s\n", InfoOrg[1][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє2 {FF8C00}Bope: {828282}%s\n", InfoOrg[2][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє3 {FF8C00}Exйrcito: {828282}%s\n", InfoOrg[3][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє4 {FF8C00}Mйdicos: {828282}%s\n", InfoOrg[4][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s\n", InfoOrg[5][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє6 {FF8C00}Taliban: {828282}%s\n", InfoOrg[6][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє7 {FF8C00}Prefeito: {828282}%s\n", InfoOrg[7][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє8 {FF8C00}Hitmans: {828282}%s\n", InfoOrg[8][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє9 {FF8C00}Reporteres: {828282}%s\n", InfoOrg[9][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє10 {FF8C00}Taxistas: {828282}%s\n", InfoOrg[10][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє11 {FF8C00}Policia Federal: {828282}%s\n", InfoOrg[11][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s\n", InfoOrg[12][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s\n", InfoOrg[13][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє14 {FF8C00}Groove Street: {828282}%s\n", InfoOrg[14][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s\n", InfoOrg[15][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє16 {FF8C00}Policia Civil: {828282}%s\n", InfoOrg[16][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє17 {FF8C00}Ballas: {828282}%s\n", InfoOrg[17][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє18 {FF8C00}Vagos: {828282}%s\n", InfoOrg[18][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s\n", InfoOrg[19][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє20 {FF8C00}Los tugas: {828282}%s\n", InfoOrg[20][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє21 {FF8C00}Irmandade: {828282}%s\n", InfoOrg[21][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє22 {FF8C00}Los Fortes: {828282}%s\n", InfoOrg[22][Lider]);
                strcat(DialogOrgs,string);
                format(string, sizeof(string), "{828282}Nє23 {FF8C00}Bombeiros: {828282}%s\n", InfoOrg[23][Lider]);
                strcat(DialogOrgs,string);
                ShowPlayerDialog(playerid,6666,DIALOG_STYLE_MSGBOX, "ORGANIZAЗФES EM DIALOG", DialogOrgs, "Ok","");

            }
        }
        return 1;
    }
Reply
#5

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] >= 0)
        {
            if(admtrampando[playerid] < 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)");
                return 1;
            }
            format(string, sizeof(string), "|______________ {FF7800}Organizaзхes do BGW{FFFFFF}______________|\n", "ByPauloTerroR");
            format(string, sizeof(string), "%s{828282}Nє1 {FF8C00}Policia Militar: {828282}%s\n", string, InfoOrg[1][Lider]);
            format(string, sizeof(string), "%s{828282}Nє2 {FF8C00}Bope: {828282}%s\n", string, InfoOrg[2][Lider]);
            format(string, sizeof(string), "%s{828282}Nє3 {FF8C00}Exйrcito: {828282}%s\n", string, InfoOrg[3][Lider]);
            format(string, sizeof(string), "%s{828282}Nє4 {FF8C00}Mйdicos: {828282}%s\n", string, InfoOrg[4][Lider]);
            format(string, sizeof(string), "%s{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s\n", string, InfoOrg[5][Lider]);
            format(string, sizeof(string), "%s{828282}Nє6 {FF8C00}Taliban: {828282}%s\n", string, InfoOrg[6][Lider]);
            format(string, sizeof(string), "%s{828282}Nє7 {FF8C00}Prefeito: {828282}%s\n", string, InfoOrg[7][Lider]);
            format(string, sizeof(string), "%s{828282}Nє8 {FF8C00}Hitmans: {828282}%s\n", string, InfoOrg[8][Lider]);
            format(string, sizeof(string), "%s{828282}Nє9 {FF8C00}Reporteres: {828282}%s\n", string, InfoOrg[9][Lider]);
            format(string, sizeof(string), "%s{828282}Nє10 {FF8C00}Taxistas: {828282}%s\n", string, InfoOrg[10][Lider]);
            format(string, sizeof(string), "%s{828282}Nє11 {FF8C00}Policia Federal: {828282}%s\n", string, InfoOrg[11][Lider]);
            format(string, sizeof(string), "%s{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s\n", string, InfoOrg[12][Lider]);
            format(string, sizeof(string), "%s{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s\n", string, InfoOrg[13][Lider]);
            format(string, sizeof(string), "%s{828282}Nє14 {FF8C00}Groove Street: {828282}%s\n", string, InfoOrg[14][Lider]);
            format(string, sizeof(string), "%s{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s\n", string, InfoOrg[15][Lider]);
            format(string, sizeof(string), "%s{828282}Nє16 {FF8C00}Policia Civil: {828282}%s\n", string, InfoOrg[16][Lider]);
            format(string, sizeof(string), "%s{828282}Nє17 {FF8C00}Ballas: {828282}%s\n", string, InfoOrg[17][Lider]);
            format(string, sizeof(string), "%s{828282}Nє18 {FF8C00}Vagos: {828282}%s\n", string, InfoOrg[18][Lider]);
            format(string, sizeof(string), "%s{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s\n", string, InfoOrg[19][Lider]);
            format(string, sizeof(string), "%s{828282}Nє20 {FF8C00}Los tugas: {828282}%s\n", string, InfoOrg[20][Lider]);
            format(string, sizeof(string), "%s{828282}Nє21 {FF8C00}Irmandade: {828282}%s\n", string, InfoOrg[21][Lider]);
            format(string, sizeof(string), "%s{828282}Nє22 {FF8C00}Los Fortes: {828282}%s\n", string, InfoOrg[22][Lider]);
            format(string, sizeof(string), "%s{828282}Nє23 {FF8C00}Bombeiros: {828282}%s\n", string, InfoOrg[23][Lider]);
            ShowPlayerDialog(playerid, 1996, DIALOG_STYLE_MSGBOX, "Orgs", string, "Fechar", #);
        }
    }
    return 1;
}
Reply
#6

ae aproveitando nao quero criar outro topico para uma coisa simples, como eu uso o comando abrir em bCMD na public public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) tipo, em zcmd era de 1 geito strtok era de outro.. tipo cmd_..(playerid);
Reply
#7

Obg a todos ;
Reply
#8

Quote:
Originally Posted by Wallker
Посмотреть сообщение
ae aproveitando nao quero criar outro topico para uma coisa simples, como eu uso o comando abrir em bCMD na public public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) tipo, em zcmd era de 1 geito strtok era de outro.. tipo cmd_..(playerid);
pawn Код:
bcmd_SeuCmd(playerid, params[]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)