[Pedido] /orgs com texbox
#1

Bom, queria somente passar meu comando /orgs pra ver as orgs e lideres para aquele jeito de textbox, que aparece na tela como uma janelinha e com o botгo " Ok ".
Tem como alguem passar o code abaixo pra textbox e mandar ai ? kkkk agradeзo.

Код:
//----------------------------------{Numero Profissoes}-----------------------------------------------
	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 BSl{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);
         		/*format(string, sizeof(string), "{828282}Nє25 {FF8C00}The Killers: {828282}%s", InfoOrg[25][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
         		format(string, sizeof(string), "{828282}Nє26 {FF8C00}Policia Militar LV: {828282}%s", InfoOrg[26][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє27 {FF8C00}Mendigos: {828282}%s", InfoOrg[27][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє28 {FF8C00}Bope : {828282}%s", InfoOrg[28][Lider]);
         		MSGPLAYER(playerid, COLOR_AZULBB, string);
        		format(string, sizeof(string), "{828282}Nє29 {FF8C00}Embreve: {828282}%s", InfoOrg[29][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє30 {FF8C00}Policia Federal: {828282}%s", InfoOrg[30][Lider]);
        		MSGPLAYER(playerid, COLOR_AZULBB, string);*/
            }
		}
		return 1;
	}
PS: A parte em verde n tem q aparecer n, mais dxa ai no GM pra mim saber,
Reply
#2

Quote:

if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/profs", true) == 0)
{
new DialogThiago[1500];
if(IsPlayerConnected(playerid))
{
//SendClientMessage(playerid, COLOR_YELLOW, "|__________________________ Organizaзхes __________________________|");
format(string, 128, " {7AADFF}1 - Policia Militar: {ff0000}%s\n", InfoOrg[1][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {ADC7D9}2 - ROTAM: {ff0000}%s\n", InfoOrg[2][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {6CD950}3 - Forcas Armadas: {ff0000}%s\n", InfoOrg[3][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {F7819A}4 - Medicos: {ff0000}%s\n", InfoOrg[4][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {337EFF}5 - Los Astecas: {ff0000}%s\n", InfoOrg[5][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {ffffff}6 - DESATIVADA: {ff0000}%s\n", InfoOrg[6][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {6AB4E6}7 - Prefeito: {ff0000}%s\n", InfoOrg[7][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {C2CBD1}8 - Hitmans: {ff0000}%s\n", InfoOrg[8][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {EDD893}9 - Reporters: {ff0000}%s\n", InfoOrg[9][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {93EDDE}10 - Taxista: {ff0000}%s\n", InfoOrg[10][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {BFA873}11 - Policia Federal: {ff0000}%s\n", InfoOrg[11][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {BF9B47}12 - Mбfia Cosa Nostra: {ff0000}%s\n", InfoOrg[12][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {8136B3}13 - Mбfia Yakuza: {ff0000}%s\n", InfoOrg[13][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {00DB1D}14 - Groove Street: {ff0000}%s\n", InfoOrg[14][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {EDE187}15 - Al'qaeda: {ff0000}%s\n", InfoOrg[15][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {BDA34D}16 - Policia Civil: {ff0000}%s\n", InfoOrg[16][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {CB42E3}17 - Ballas: {ff0000}%s\n", InfoOrg[17][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {E1ED00}18 - Los Vagos: {ff0000}%s\n", InfoOrg[18][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {FF0000}19 - Comando Vermelho: {ff0000}%s\n", InfoOrg[19][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {74008d}20 - STAFF: {ff0000}%s\n", InfoOrg[20][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {696729}21 - PCC: {ff0000}%s\n", InfoOrg[21][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {5b6aa9}22 - Triads: {ff0000}%s\n", InfoOrg[22][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {FF0066}23 - F.A.R.C: {ff0000}%s\n\n", InfoOrg[23][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {5a7449}24 - Safadau: {ff0000}%s\n\n", InfoOrg[24][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {df8818}25 - FAB: {ff0000}%s\n\n", InfoOrg[25][Lider]);
strcat(DialogThiago,string);
format(string, 128, " {940b0b}26 - Avoadores: {ff0000}%s\n\n", InfoOrg[26][Lider]);
strcat(DialogThiago,string);
ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "Lista de Organizaзхes", DialogThiago, "Confirmar", "Sair");
}
return true;
}


Й So Vocк Nomear Com As Orgs Do Seu Serve =)

Se Nгo Conseguir Me Adiciona no Skype =] skype: Avatgamer
Reply
#3

Ta ai, jб com as orgs do seu servidor!

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
    {
        new Dialog[1500];
        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", InfoOrg[1][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє2 {FF8C00}Bope: {828282}%s", InfoOrg[2][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє3 {FF8C00}Exйrcito: {828282}%s", InfoOrg[3][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє4 {FF8C00}Mйdicos: {828282}%s", InfoOrg[4][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s", InfoOrg[5][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє6 {FF8C00}Taliban: {828282}%s", InfoOrg[6][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє7 {FF8C00}Prefeito: {828282}%s", InfoOrg[7][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє8 {FF8C00}Hitmans: {828282}%s", InfoOrg[8][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє9 {FF8C00}Reporteres: {828282}%s", InfoOrg[9][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє10 {FF8C00}Taxistas: {828282}%s", InfoOrg[10][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє11 {FF8C00}Policia Federal: {828282}%s", InfoOrg[11][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s", InfoOrg[12][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s", InfoOrg[13][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє14 {FF8C00}Groove Street: {828282}%s", InfoOrg[14][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s", InfoOrg[15][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє16 {FF8C00}Policia Civil: {828282}%s", InfoOrg[16][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє17 {FF8C00}Ballas: {828282}%s", InfoOrg[17][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє18 {FF8C00}Vagos: {828282}%s", InfoOrg[18][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s", InfoOrg[19][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє20 {FF8C00}Los tugas: {828282}%s", InfoOrg[20][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє21 {FF8C00}Irmandade: {828282}%s", InfoOrg[21][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє22 {FF8C00}Los Fortes: {828282}%s", InfoOrg[22][Lider]);
                strcat(Dialog,string);
                format(string, sizeof(string), "{828282}Nє23 {FF8C00}Bombeiros: {828282}%s", InfoOrg[23][Lider]);
                strcat(Dialog,string);
                ShowPlayerDialog(playerid,666, DIALOG_STYLE_MSGBOX,"Organizaзхes",Dialog,"OK",#);
            }
        }
        return 1;
    }
Reply
#4

vllww man deu certim ^^
Reply
#5

Vivendo e aprendendo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)