[Ajuda] Nome dos lideres e nomes vips ocultos
#1

Quando eu do lider para uma pessoa no meu servidor o nome dela nгo aparece no /orgs

Quote:

CMDrgs(playerid, params[])
{
new string[MAX_STRING];
MEGAString[0] = EOS;
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, 128, " {7AADFF}1 - %s:{A0A0A0} %s {FFFFFF}UL%s)\n", GetOrgName(1), InfoOrg[1][Lider], InfoOrg[1][UL_Lider]);
strcat(MEGAString,string);
format(string, 128, " {483D8B}2 - %s:{A0A0A0} %s {FFFFFF}UL%s)\n", GetOrgName(2), InfoOrg[2][Lider], InfoOrg[2][UL_Lider]);
strcat(MEGAString,string);
format(string, 128, " {6CD950}3 - %s:{A0A0A0} %s {FFFFFF}UL%s)\n", GetOrgName(3), InfoOrg[3][Lider], InfoOrg[3][UL_Lider]);


OUTRA COISA------------

Quando eu dou VIP ou Socio para uma pessoa ela nгo aparece no /vips

Quote:

CMD:vips(playerid, params[])
{
new string[65];
SendClientMessage(playerid, COLOR_DBLUE, "VIPs e SУCIOS Online:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] <= 1337)
{
if(PlayerInfo[i][pVIP] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "» [ID: %d]VIP: %s", i,sendername);
SendClientMessage(playerid,0x00FFFFFF,string);
}
else if(PlayerInfo[i][pVIP] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128, "» [ID: %d]SUPER-VIP: %s",i,sendername);
SendClientMessage(playerid,0xF6A586AA,string);
}
else if(PlayerInfo[i][pVIP] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128, "» [ID: %d]SУCIO: %s",i,sendername);
SendClientMessage(playerid,0x008080FF,string);
}
else if(PlayerInfo[i][pVIP] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128, "» [ID: %d]SУCIO PREMIUM: %s",i,sendername);
SendClientMessage(playerid,0xC2A2DAFF,string);
}
}
}
return true;

Reply
#2

alguem ?
Reply
#3

Passa o comando de setar lider o de setar vip e o /orgs inteiro
Reply
#4

Quote:
Originally Posted by Whoo
Посмотреть сообщение
Passa o comando de setar lider o de setar vip e o /orgs inteiro
Dar lider
Код:
CMD:darlider(playerid, params[])
	{
	        new para1, level;
			if(sscanf(params, "ud", para1, level))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darlider [ID do Player] [Numero(1-35)]");
				return true;
			}
			if(level == 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "Para tirar o Lнder de uma organizaзгo vocк deve usar /limparlider");
				return true;
			}
			if(level > 35 || level < 1)
			{
				SendClientMessage(playerid, COLOR_GREY, "Organizaзхes de 1 a 35");
				return true;
			}
				GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
				if (PlayerInfo[playerid][pAdmin] >= 5)
	 			{
					if(PlayerInfo[para1][pLider] != 0 || PlayerInfo[para1][pMembro] != 0)
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   Este player jб participa de uma organizaзгo!");
					    return true;
					}
					    if(IsPlayerConnected(para1))
					    {
							if(strcmp(InfoOrg[level][Lider],"Ninguйm",true)==0)
							{
								ConviteInfoOrg(PlayerName(para1), level, 6);
							}
							else
							{
							    SendClientMessage(playerid, COLOR_GRAD2, "Jб tem lнder nessa ORG, use /limparlider antes de colocar outro Lнder");
							    return true;
							}
		               	    new string[MAX_STRING];
							if(level == 1) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar
							else if(level == 2)	{ PlayerInfo[para1][pSkin] = 285; }//ROTA
							else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
							else if(level == 4) { PlayerInfo[para1][pSkin] = 228; }//Fire/Ambulance
							else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
							else if(level == 6) { PlayerInfo[para1][pSkin] = 209; }//Familia Phoenix
							else if(level == 7)
							{
								PlayerInfo[para1][pSkin] = 147;                    //Prefeito
								CofreOrg[7][Dinheiro] = 0;              		   //reseta a grana da prefeitura
								PLE = 0; PLO = 0; PLPG = 0; PMA = 0; PTC = 0; PLV = 0;
								PDU = 0; PMC = 0; PMH = 0; PME = 0; PRE = 0; PCE = 0;

							}
							else if(level == 8) { PlayerInfo[para1][pSkin] = 294; }//Hitmans
							else if(level == 9) { PlayerInfo[para1][pSkin] = 227; }//Repуrters
							else if(level == 10) { PlayerInfo[para1][pSkin] = 61; }//Taxista
							else if(level == 11) { PlayerInfo[para1][pSkin] = 295; }//Policia Federal
							else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Corleone
							else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Barzini
							else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
		                    else if(level == 15) { PlayerInfo[para1][pSkin] = 73; }//ALQaeda
							else if(level == 16) { PlayerInfo[para1][pSkin] = 286; }//ROTA-SF
		                    else if(level == 17) { PlayerInfo[para1][pSkin] = 104; }//Ballas
		                    else if(level == 18) { PlayerInfo[para1][pSkin] = 108; }//Vagos
		                    else if(level == 19) { PlayerInfo[para1][pSkin] = 170; }//CV
		                    else if(level == 20) { PlayerInfo[para1][pSkin] = 279; }//Bombeiros
		                    else if(level == 21) { PlayerInfo[para1][pSkin] = 47; }//ppcc
		                    else if(level == 22) { PlayerInfo[para1][pSkin] = 117; }//Triads
		                    else if(level == 23) { PlayerInfo[para1][pSkin] = 111; }//Guerrilheiros Israelitas
		                    else if(level == 24) { PlayerInfo[para1][pSkin] = 100; }//mayans
		                    else if(level == 25) { PlayerInfo[para1][pSkin] = 100; }//Sons of Anarchy
		                    else if(level == 26) { PlayerInfo[para1][pSkin] = 174; }//crips
		                    else if(level == 27) { PlayerInfo[para1][pSkin] = 265; }//Guerrilheiros Israeli
		                    else if(level == 28) { PlayerInfo[para1][pSkin] = 108; }//Guerrilheiros Israeli
		                    else if(level == 29) { PlayerInfo[para1][pSkin] = 270; }//Guerrilheiros Israeli
		                    else if(level == 30) { PlayerInfo[para1][pSkin] = 61; }//Guerrilheiros Israeli
		                    else if(level == 31) { PlayerInfo[para1][pSkin] = 70; }//Guerrilheiros Israeli
		                    else if(level == 33) { PlayerInfo[para1][pSkin] = 166; }//Policia Civil
		                    else if(level == 32) { PlayerInfo[para1][pSkin] = 227; }//Guerrilheiros Israeli
							else if(level == 34) { PlayerInfo[para1][pSkin] = 42; }//Mecanicos
							else if(level == 35)
							{
								PlayerInfo[para1][pSkin] = 280;
								strmid(SenhaSeguranca, "0", 0, strlen("0"), 256);	//BPCHOQUE
								SalvarSenhaSeguranca();
							}
							if(PlayerInfo[para1][pSex] == 1)
							{
								SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
							}
							else
							{
								PlayerInfo[para1][pSkin] = 150;
								SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
							}
							GetPlayerName(para1, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							PlayerInfo[para1][pLider] = level;
							format(string, sizeof(string), "   Vocк foi promovido a lнder %s, pelo admin %s.", NomeLiderORG(para1),PlayerName(playerid));
							SendClientMessage(para1, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), "   Vocк promoveu %s a lнder da organizaзгo: %d.", giveplayer,level);
		     				SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		                    format(string, sizeof(string), "AdmCmd: O admin %s deu lнder da organizaзгo:[{FFFFFF}%s] {9ACD32}para %s.", sendername, NomeORG(para1), giveplayer);
		                    BPGLogs("Lideres", string);
							ABroadCast(COLOR_LIGHTGREEN,string, 1);
							PlayerInfo[para1][pHospital] = false;
						    PlayerInfo[para1][pCargo] = 6;
						    SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
						    SetPlayerSpawn(para1);
						    SetPlayerToTeamColor(para1);


			    			CofreOrg[level][DiaLider] = getdate()+3;// 3 dias
							format(string, sizeof(string), Pasta_CofreOrg,level);
					       	DOF2_SetInt(string,"DiaLнder",CofreOrg[level][DiaLider]);
					       	DOF2_SaveFile();

					       	UltimoLoginOrg(para1);
					       	return true;
						}
						else
						{
							SendClientMessage(playerid, COLOR_GRAD1, "   Esse jogador estб off-line.");
						}
				 		return true;
					}
					else
					{
						SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
					}
		return true;
DAR VIP

Код:
CMD:darvip(playerid, params[])
	{
	        if(PlayerInfo[playerid][pAdmin] < 5000)
	    	{
				SendClientMessage(playerid, COLOR_GRAD1, "	Vocк nгo pode usar este comando!");
				return 1;
	    	}
			new para1;
			new meses;
			if(sscanf(params, "ud", para1, meses))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [ID do Player] [Meses]");
				return 1;
			}
			GetPlayerName(para1, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
		    if(IsPlayerConnected(para1))
		    {
		        if(para1 != INVALID_PLAYER_ID)
		        {
		            if(PlayerInfo[para1][pAdmin] == 0)
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo pode usar este comando em players que nгo seja admin!");
					    return true;
					}
		            if(meses < 1 || meses > 2)return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pode dar apenas 1 ou 2 meses de VIP!");
                    new string[128];
					format(string, sizeof string, "Vocк deu %d meses de VIP para %s", meses, giveplayer);
					SendClientMessage(playerid, COLOR_DBLUE, string);
					format(string, sizeof string, "O admin %s te deu %d meses de VIP com R$%s e %d Niveis, Aproveite Nossos beneficios!", sendername, meses, ConvertMoney(15000000*meses), 3*meses);
					SendClientMessage(para1, COLOR_DBLUE, string);
					getdate(year, month, day);
					gettime(hour,minute,second);
					format(string, sizeof(string), "AdmCmd: O admin %s deu %d meses de VIP para %s.",sendername,meses,giveplayer);
					BPGLogs("vips", string);
					PlayerInfo[para1][pLevel] += 3*meses;
					PlayerInfo[para1][pVIP] = 1;
					GiveDinheiro(para1, 15000000*meses);
					ScoreLevel(para1);
					PlayerInfo[para1][pDiasvip] = getdate()+(meses*31);
					PlayerInfo[para1][pDiaVIP] = day;
					PlayerInfo[para1][pMesVIP] = month+meses;
					PlayerInfo[para1][pAnoVIP] = year;
					if(PlayerInfo[para1][pMesVIP] > 12)
					{
					    PlayerInfo[para1][pMesVIP] -= 12;
					    PlayerInfo[para1][pAnoVIP]++;
					}
					OnPlayerSave(para1);
					SaveObjects(para1);
				}
			}
			return 1;
	}
ORGS

Код:
CMD:orgs(playerid, params[])
	{
 		new string[MAX_STRING];
   		MEGAString[0] = EOS;
	    if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(string, 128, " {7AADFF}1 - %s:{A0A0A0} %s {FFFFFF}UL:( %s )\n", GetOrgName(1), InfoOrg[1][Lider], InfoOrg[1][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {483D8B}2 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(2), InfoOrg[2][Lider], InfoOrg[2][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {6CD950}3 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(3), InfoOrg[3][Lider], InfoOrg[3][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FF8282}4 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(4), InfoOrg[4][Lider], InfoOrg[4][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {337EFF}5 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(5), InfoOrg[5][Lider], InfoOrg[5][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FBC63F}6 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(6), InfoOrg[6][Lider], InfoOrg[6][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {996699}7 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(7), InfoOrg[7][Lider], InfoOrg[7][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {696969}8 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(8), InfoOrg[8][Lider], InfoOrg[8][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FF9900}9 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(9), InfoOrg[9][Lider], InfoOrg[9][UL_Lider]);
    		strcat(MEGAString,string);
			format(string, 128, " {33FFFF}10 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(10), InfoOrg[10][Lider], InfoOrg[10][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {BFA873}11 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(11), InfoOrg[11][Lider], InfoOrg[11][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FF6200}12 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(12), InfoOrg[12][Lider], InfoOrg[12][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {68228B}13 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(13), InfoOrg[13][Lider], InfoOrg[13][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {00DB1D}14 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(14), InfoOrg[14][Lider], InfoOrg[14][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {00483A}15 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(15), InfoOrg[15][Lider], InfoOrg[15][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {5B88AC}16 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(16), InfoOrg[16][Lider], InfoOrg[16][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {CB42E3}17 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(17), InfoOrg[17][Lider], InfoOrg[17][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {E1ED00}18 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(18), InfoOrg[18][Lider], InfoOrg[18][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {AA0000}19 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(19), InfoOrg[19][Lider], InfoOrg[19][UL_Lider]);
    		strcat(MEGAString,string);
			format(string, 128, " {F05353}20 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(20), InfoOrg[20][Lider], InfoOrg[20][UL_Lider]);
    		strcat(MEGAString,string);
			format(string, 128, " {9ACD32}21 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(21), InfoOrg[21][Lider], InfoOrg[21][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {B0DDF3}22 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(22), InfoOrg[22][Lider], InfoOrg[22][UL_Lider]);
			strcat(MEGAString,string);
            format(string, 128, " {00E5EE}23 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(23), InfoOrg[23][Lider], InfoOrg[23][UL_Lider]);
            strcat(MEGAString,string);
            format(string, 128, " {66CCFF}24 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(24), InfoOrg[24][Lider], InfoOrg[24][UL_Lider]);
            strcat(MEGAString,string);
            format(string, 128, " {363636}25 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(25), InfoOrg[25][Lider], InfoOrg[25][UL_Lider]);
            strcat(MEGAString,string);
            format(string, 128, " {F09F50}33 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(33), InfoOrg[33][Lider], InfoOrg[33][UL_Lider]);
			strcat(MEGAString,string);
   			format(string, 128, " {408080}34 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(34), InfoOrg[34][Lider], InfoOrg[34][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {8B4513}35 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(35), InfoOrg[35][Lider], InfoOrg[35][UL_Lider]);
			strcat(MEGAString,string);
		}
		else
		{
		    format(string, 128, "{FFFFFF}Organizaзхes Governamentais:\n");
			strcat(MEGAString,string);
			format(string, 128, "1 - {7AADFF}%s:{A0A0A0} %s\n", GetOrgName(1), InfoOrg[1][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "2 - {483D8B}%s:{A0A0A0} %s\n", GetOrgName(2), InfoOrg[2][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "16 - {5B88AC}%s:{A0A0A0} %s\n", GetOrgName(16), InfoOrg[16][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "35 - {8B4513}%s:{A0A0A0} %s\n", GetOrgName(35), InfoOrg[35][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "33 - {F09F50}%s:{A0A0A0} %s\n", GetOrgName(33), InfoOrg[33][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "11 - {BFA873}%s:{A0A0A0} %s\n", GetOrgName(11), InfoOrg[11][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "3 - {6CD950}%s:{A0A0A0} %s\n", GetOrgName(3), InfoOrg[3][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "7 - {996699}%s:{A0A0A0} %s\n\n", GetOrgName(7), InfoOrg[7][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Neutras:\n");
			strcat(MEGAString,string);
			format(string, 128, "4 - {FF8282}%s:{A0A0A0} %s\n", GetOrgName(4), InfoOrg[4][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "9 - {FF9900}%s:{A0A0A0} %s\n", GetOrgName(9), InfoOrg[9][Lider]);
    		strcat(MEGAString,string);
    		format(string, 128, "10 - {33FFFF}%s:{A0A0A0} %s\n", GetOrgName(10), InfoOrg[10][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "20 - {F05353}%s:{A0A0A0} %s\n", GetOrgName(20), InfoOrg[20][Lider]);
    		strcat(MEGAString,string);
    		format(string, 128, "34 - {408080}%s:{A0A0A0} %s\n\n", GetOrgName(34), InfoOrg[34][Lider]);
			strcat(MEGAString,string);

    		format(string, 128, "{FFFFFF}Organizaзхes de Gangster's:\n");
			strcat(MEGAString,string);
			format(string, 128, "5 - {337EFF}%s:{A0A0A0} %s\n", GetOrgName(5), InfoOrg[5][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "6 - {4d372e}%s:{A0A0A0} %s\n", GetOrgName(6), InfoOrg[6][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "14 - {00DB1D}%s:{A0A0A0} %s\n", GetOrgName(14), InfoOrg[14][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "17 - {CB42E3}%s:{A0A0A0} %s\n", GetOrgName(17), InfoOrg[17][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "18 - {E1ED00}%s:{A0A0A0} %s\n", GetOrgName(18), InfoOrg[18][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "19 - {AA0000}%s:{A0A0A0} %s\n", GetOrgName(19), InfoOrg[19][Lider]);
    		strcat(MEGAString,string);
    		format(string, 128, "21 - {9ACD32}%s:{A0A0A0} %s\n\n", GetOrgName(21), InfoOrg[21][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Assassinas:\n");
			strcat(MEGAString,string);
			format(string, 128, "8 - {696969}%s:{A0A0A0} %s\n", GetOrgName(8), InfoOrg[8][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "22 - {B0DDF3}%s:{A0A0A0} %s\n\n", GetOrgName(22), InfoOrg[22][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Mafiosas:\n");
			strcat(MEGAString,string);
			format(string, 128, "12 - {FF6200}%s:{A0A0A0} %s\n", GetOrgName(12), InfoOrg[12][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "13 - {68228B}%s:{A0A0A0} %s\n\n", GetOrgName(13), InfoOrg[13][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Terroristas:\n");
			strcat(MEGAString,string);
			format(string, 128, "15 - {00483A}%s:{A0A0A0} %s\n", GetOrgName(15), InfoOrg[15][Lider]);
			strcat(MEGAString,string);
            format(string, 128, "23 - {00E5EE}%s:{A0A0A0} %s\n\n", GetOrgName(23), InfoOrg[23][Lider]);
            strcat(MEGAString,string);

            format(string, 128, "{FFFFFF}Organizaзхes Motoqueiras:\n");
			strcat(MEGAString,string);
			format(string, 128, "24 - {66CCFF}%s:{A0A0A0} %s\n", GetOrgName(24), InfoOrg[24][Lider]);
            strcat(MEGAString,string);
            format(string, 128, "25 - {363636}%s:{A0A0A0} %s\n", GetOrgName(25), InfoOrg[25][Lider]);
            strcat(MEGAString,string);

		}
		    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Lista de Lнderes das Organizaзхes", MEGAString, "OK","");
     		return true;
	}
	CMD:orgsvips(playerid, params[])
	{
	    if(PlayerInfo[playerid][pAdmin] < 1337)
     	{
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo esta autorizado a usar este comando!");
            return true;
        }
	    if(IsPlayerConnected(playerid))
	    {
	        new text1[30];
         	MEGAString[0]=EOS;
	       	new str[95];
			new count;
			strcat(MEGAString, "OrgID:\tOrganizaзгo\t{CB42E3}VIP:\tVence:\n");
			for(new i = 0; i < MAX_ORGS; i++)
   			{
   			            if(i == 0 || i == 6 || i == 26 || i == 27 || i == 28 || i == 29 || i == 30 || i == 31 || i == 32)
			   			{
			   			}
   			            else
				  		{
				  		    if(CofreOrg[i][Vip] > 1) { text1 = "{00DB1D}SIM"; }
				  		    else { text1 = "{FF0000}NГO"; }
			    			count++;
							GetPlayerName(i, sendername, sizeof(sendername));
							format(str, sizeof(str), "Nє%d\t{0080C0}%s:\t%s\t(%02d/%02d/%04d)\n", i,
						 	GetOrgName(i),text1,CofreOrg[i][DiaVIP],CofreOrg[i][MesVIP],CofreOrg[i][AnoVIP]);
		                    strcat(MEGAString, str);
                        }
			}
			if(count<=0)return ShowPlayerDialog(playerid, 0, 5, "Organizacхes VIPs", "{00FF00}Nenhum Organizacгo Encontrada", "OK", "");
    		if(count>0)ShowPlayerDialog(playerid, 0, 5, "Organizacхes VIPs", MEGAString, "OK", "");
	}
	return true;
 	}
Reply
#5

Quote:
Originally Posted by GMVega
Посмотреть сообщение
Dar lider
Код:
CMD:darlider(playerid, params[])
	{
	        new para1, level;
			if(sscanf(params, "ud", para1, level))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darlider [ID do Player] [Numero(1-35)]");
				return true;
			}
			if(level == 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "Para tirar o Lнder de uma organizaзгo vocк deve usar /limparlider");
				return true;
			}
			if(level > 35 || level < 1)
			{
				SendClientMessage(playerid, COLOR_GREY, "Organizaзхes de 1 a 35");
				return true;
			}
				GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
				if (PlayerInfo[playerid][pAdmin] >= 5)
	 			{
					if(PlayerInfo[para1][pLider] != 0 || PlayerInfo[para1][pMembro] != 0)
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   Este player jб participa de uma organizaзгo!");
					    return true;
					}
					    if(IsPlayerConnected(para1))
					    {
							if(strcmp(InfoOrg[level][Lider],"Ninguйm",true)==0)
							{
								ConviteInfoOrg(PlayerName(para1), level, 6);
							}
							else
							{
							    SendClientMessage(playerid, COLOR_GRAD2, "Jб tem lнder nessa ORG, use /limparlider antes de colocar outro Lнder");
							    return true;
							}
		               	    new string[MAX_STRING];
							if(level == 1) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar
							else if(level == 2)	{ PlayerInfo[para1][pSkin] = 285; }//ROTA
							else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
							else if(level == 4) { PlayerInfo[para1][pSkin] = 228; }//Fire/Ambulance
							else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
							else if(level == 6) { PlayerInfo[para1][pSkin] = 209; }//Familia Phoenix
							else if(level == 7)
							{
								PlayerInfo[para1][pSkin] = 147;                    //Prefeito
								CofreOrg[7][Dinheiro] = 0;              		   //reseta a grana da prefeitura
								PLE = 0; PLO = 0; PLPG = 0; PMA = 0; PTC = 0; PLV = 0;
								PDU = 0; PMC = 0; PMH = 0; PME = 0; PRE = 0; PCE = 0;

							}
							else if(level == 8) { PlayerInfo[para1][pSkin] = 294; }//Hitmans
							else if(level == 9) { PlayerInfo[para1][pSkin] = 227; }//Repуrters
							else if(level == 10) { PlayerInfo[para1][pSkin] = 61; }//Taxista
							else if(level == 11) { PlayerInfo[para1][pSkin] = 295; }//Policia Federal
							else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Corleone
							else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Barzini
							else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
		                    else if(level == 15) { PlayerInfo[para1][pSkin] = 73; }//ALQaeda
							else if(level == 16) { PlayerInfo[para1][pSkin] = 286; }//ROTA-SF
		                    else if(level == 17) { PlayerInfo[para1][pSkin] = 104; }//Ballas
		                    else if(level == 18) { PlayerInfo[para1][pSkin] = 108; }//Vagos
		                    else if(level == 19) { PlayerInfo[para1][pSkin] = 170; }//CV
		                    else if(level == 20) { PlayerInfo[para1][pSkin] = 279; }//Bombeiros
		                    else if(level == 21) { PlayerInfo[para1][pSkin] = 47; }//ppcc
		                    else if(level == 22) { PlayerInfo[para1][pSkin] = 117; }//Triads
		                    else if(level == 23) { PlayerInfo[para1][pSkin] = 111; }//Guerrilheiros Israelitas
		                    else if(level == 24) { PlayerInfo[para1][pSkin] = 100; }//mayans
		                    else if(level == 25) { PlayerInfo[para1][pSkin] = 100; }//Sons of Anarchy
		                    else if(level == 26) { PlayerInfo[para1][pSkin] = 174; }//crips
		                    else if(level == 27) { PlayerInfo[para1][pSkin] = 265; }//Guerrilheiros Israeli
		                    else if(level == 28) { PlayerInfo[para1][pSkin] = 108; }//Guerrilheiros Israeli
		                    else if(level == 29) { PlayerInfo[para1][pSkin] = 270; }//Guerrilheiros Israeli
		                    else if(level == 30) { PlayerInfo[para1][pSkin] = 61; }//Guerrilheiros Israeli
		                    else if(level == 31) { PlayerInfo[para1][pSkin] = 70; }//Guerrilheiros Israeli
		                    else if(level == 33) { PlayerInfo[para1][pSkin] = 166; }//Policia Civil
		                    else if(level == 32) { PlayerInfo[para1][pSkin] = 227; }//Guerrilheiros Israeli
							else if(level == 34) { PlayerInfo[para1][pSkin] = 42; }//Mecanicos
							else if(level == 35)
							{
								PlayerInfo[para1][pSkin] = 280;
								strmid(SenhaSeguranca, "0", 0, strlen("0"), 256);	//BPCHOQUE
								SalvarSenhaSeguranca();
							}
							if(PlayerInfo[para1][pSex] == 1)
							{
								SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
							}
							else
							{
								PlayerInfo[para1][pSkin] = 150;
								SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
							}
							GetPlayerName(para1, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							PlayerInfo[para1][pLider] = level;
							format(string, sizeof(string), "   Vocк foi promovido a lнder %s, pelo admin %s.", NomeLiderORG(para1),PlayerName(playerid));
							SendClientMessage(para1, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), "   Vocк promoveu %s a lнder da organizaзгo: %d.", giveplayer,level);
		     				SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		                    format(string, sizeof(string), "AdmCmd: O admin %s deu lнder da organizaзгo:[{FFFFFF}%s] {9ACD32}para %s.", sendername, NomeORG(para1), giveplayer);
		                    BPGLogs("Lideres", string);
							ABroadCast(COLOR_LIGHTGREEN,string, 1);
							PlayerInfo[para1][pHospital] = false;
						    PlayerInfo[para1][pCargo] = 6;
						    SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
						    SetPlayerSpawn(para1);
						    SetPlayerToTeamColor(para1);


			    			CofreOrg[level][DiaLider] = getdate()+3;// 3 dias
							format(string, sizeof(string), Pasta_CofreOrg,level);
					       	DOF2_SetInt(string,"DiaLнder",CofreOrg[level][DiaLider]);
					       	DOF2_SaveFile();

					       	UltimoLoginOrg(para1);
					       	return true;
						}
						else
						{
							SendClientMessage(playerid, COLOR_GRAD1, "   Esse jogador estб off-line.");
						}
				 		return true;
					}
					else
					{
						SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
					}
		return true;
DAR VIP

Код:
CMD:darvip(playerid, params[])
	{
	        if(PlayerInfo[playerid][pAdmin] < 5000)
	    	{
				SendClientMessage(playerid, COLOR_GRAD1, "	Vocк nгo pode usar este comando!");
				return 1;
	    	}
			new para1;
			new meses;
			if(sscanf(params, "ud", para1, meses))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [ID do Player] [Meses]");
				return 1;
			}
			GetPlayerName(para1, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
		    if(IsPlayerConnected(para1))
		    {
		        if(para1 != INVALID_PLAYER_ID)
		        {
		            if(PlayerInfo[para1][pAdmin] == 0)
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo pode usar este comando em players que nгo seja admin!");
					    return true;
					}
		            if(meses < 1 || meses > 2)return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pode dar apenas 1 ou 2 meses de VIP!");
                    new string[128];
					format(string, sizeof string, "Vocк deu %d meses de VIP para %s", meses, giveplayer);
					SendClientMessage(playerid, COLOR_DBLUE, string);
					format(string, sizeof string, "O admin %s te deu %d meses de VIP com R$%s e %d Niveis, Aproveite Nossos beneficios!", sendername, meses, ConvertMoney(15000000*meses), 3*meses);
					SendClientMessage(para1, COLOR_DBLUE, string);
					getdate(year, month, day);
					gettime(hour,minute,second);
					format(string, sizeof(string), "AdmCmd: O admin %s deu %d meses de VIP para %s.",sendername,meses,giveplayer);
					BPGLogs("vips", string);
					PlayerInfo[para1][pLevel] += 3*meses;
					PlayerInfo[para1][pVIP] = 1;
					GiveDinheiro(para1, 15000000*meses);
					ScoreLevel(para1);
					PlayerInfo[para1][pDiasvip] = getdate()+(meses*31);
					PlayerInfo[para1][pDiaVIP] = day;
					PlayerInfo[para1][pMesVIP] = month+meses;
					PlayerInfo[para1][pAnoVIP] = year;
					if(PlayerInfo[para1][pMesVIP] > 12)
					{
					    PlayerInfo[para1][pMesVIP] -= 12;
					    PlayerInfo[para1][pAnoVIP]++;
					}
					OnPlayerSave(para1);
					SaveObjects(para1);
				}
			}
			return 1;
	}
ORGS

Код:
CMD:orgs(playerid, params[])
	{
 		new string[MAX_STRING];
   		MEGAString[0] = EOS;
	    if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(string, 128, " {7AADFF}1 - %s:{A0A0A0} %s {FFFFFF}UL:( %s )\n", GetOrgName(1), InfoOrg[1][Lider], InfoOrg[1][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {483D8B}2 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(2), InfoOrg[2][Lider], InfoOrg[2][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {6CD950}3 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(3), InfoOrg[3][Lider], InfoOrg[3][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FF8282}4 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(4), InfoOrg[4][Lider], InfoOrg[4][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {337EFF}5 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(5), InfoOrg[5][Lider], InfoOrg[5][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FBC63F}6 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(6), InfoOrg[6][Lider], InfoOrg[6][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {996699}7 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(7), InfoOrg[7][Lider], InfoOrg[7][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {696969}8 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(8), InfoOrg[8][Lider], InfoOrg[8][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FF9900}9 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(9), InfoOrg[9][Lider], InfoOrg[9][UL_Lider]);
    		strcat(MEGAString,string);
			format(string, 128, " {33FFFF}10 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(10), InfoOrg[10][Lider], InfoOrg[10][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {BFA873}11 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(11), InfoOrg[11][Lider], InfoOrg[11][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {FF6200}12 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(12), InfoOrg[12][Lider], InfoOrg[12][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {68228B}13 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(13), InfoOrg[13][Lider], InfoOrg[13][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {00DB1D}14 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(14), InfoOrg[14][Lider], InfoOrg[14][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {00483A}15 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(15), InfoOrg[15][Lider], InfoOrg[15][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {5B88AC}16 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(16), InfoOrg[16][Lider], InfoOrg[16][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {CB42E3}17 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(17), InfoOrg[17][Lider], InfoOrg[17][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {E1ED00}18 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(18), InfoOrg[18][Lider], InfoOrg[18][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {AA0000}19 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(19), InfoOrg[19][Lider], InfoOrg[19][UL_Lider]);
    		strcat(MEGAString,string);
			format(string, 128, " {F05353}20 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(20), InfoOrg[20][Lider], InfoOrg[20][UL_Lider]);
    		strcat(MEGAString,string);
			format(string, 128, " {9ACD32}21 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(21), InfoOrg[21][Lider], InfoOrg[21][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {B0DDF3}22 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(22), InfoOrg[22][Lider], InfoOrg[22][UL_Lider]);
			strcat(MEGAString,string);
            format(string, 128, " {00E5EE}23 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(23), InfoOrg[23][Lider], InfoOrg[23][UL_Lider]);
            strcat(MEGAString,string);
            format(string, 128, " {66CCFF}24 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(24), InfoOrg[24][Lider], InfoOrg[24][UL_Lider]);
            strcat(MEGAString,string);
            format(string, 128, " {363636}25 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(25), InfoOrg[25][Lider], InfoOrg[25][UL_Lider]);
            strcat(MEGAString,string);
            format(string, 128, " {F09F50}33 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(33), InfoOrg[33][Lider], InfoOrg[33][UL_Lider]);
			strcat(MEGAString,string);
   			format(string, 128, " {408080}34 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(34), InfoOrg[34][Lider], InfoOrg[34][UL_Lider]);
			strcat(MEGAString,string);
			format(string, 128, " {8B4513}35 - %s:{A0A0A0} %s {FFFFFF}UL:(%s)\n", GetOrgName(35), InfoOrg[35][Lider], InfoOrg[35][UL_Lider]);
			strcat(MEGAString,string);
		}
		else
		{
		    format(string, 128, "{FFFFFF}Organizaзхes Governamentais:\n");
			strcat(MEGAString,string);
			format(string, 128, "1 - {7AADFF}%s:{A0A0A0} %s\n", GetOrgName(1), InfoOrg[1][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "2 - {483D8B}%s:{A0A0A0} %s\n", GetOrgName(2), InfoOrg[2][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "16 - {5B88AC}%s:{A0A0A0} %s\n", GetOrgName(16), InfoOrg[16][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "35 - {8B4513}%s:{A0A0A0} %s\n", GetOrgName(35), InfoOrg[35][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "33 - {F09F50}%s:{A0A0A0} %s\n", GetOrgName(33), InfoOrg[33][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "11 - {BFA873}%s:{A0A0A0} %s\n", GetOrgName(11), InfoOrg[11][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "3 - {6CD950}%s:{A0A0A0} %s\n", GetOrgName(3), InfoOrg[3][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "7 - {996699}%s:{A0A0A0} %s\n\n", GetOrgName(7), InfoOrg[7][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Neutras:\n");
			strcat(MEGAString,string);
			format(string, 128, "4 - {FF8282}%s:{A0A0A0} %s\n", GetOrgName(4), InfoOrg[4][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "9 - {FF9900}%s:{A0A0A0} %s\n", GetOrgName(9), InfoOrg[9][Lider]);
    		strcat(MEGAString,string);
    		format(string, 128, "10 - {33FFFF}%s:{A0A0A0} %s\n", GetOrgName(10), InfoOrg[10][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "20 - {F05353}%s:{A0A0A0} %s\n", GetOrgName(20), InfoOrg[20][Lider]);
    		strcat(MEGAString,string);
    		format(string, 128, "34 - {408080}%s:{A0A0A0} %s\n\n", GetOrgName(34), InfoOrg[34][Lider]);
			strcat(MEGAString,string);

    		format(string, 128, "{FFFFFF}Organizaзхes de Gangster's:\n");
			strcat(MEGAString,string);
			format(string, 128, "5 - {337EFF}%s:{A0A0A0} %s\n", GetOrgName(5), InfoOrg[5][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "6 - {4d372e}%s:{A0A0A0} %s\n", GetOrgName(6), InfoOrg[6][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "14 - {00DB1D}%s:{A0A0A0} %s\n", GetOrgName(14), InfoOrg[14][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "17 - {CB42E3}%s:{A0A0A0} %s\n", GetOrgName(17), InfoOrg[17][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "18 - {E1ED00}%s:{A0A0A0} %s\n", GetOrgName(18), InfoOrg[18][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "19 - {AA0000}%s:{A0A0A0} %s\n", GetOrgName(19), InfoOrg[19][Lider]);
    		strcat(MEGAString,string);
    		format(string, 128, "21 - {9ACD32}%s:{A0A0A0} %s\n\n", GetOrgName(21), InfoOrg[21][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Assassinas:\n");
			strcat(MEGAString,string);
			format(string, 128, "8 - {696969}%s:{A0A0A0} %s\n", GetOrgName(8), InfoOrg[8][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "22 - {B0DDF3}%s:{A0A0A0} %s\n\n", GetOrgName(22), InfoOrg[22][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Mafiosas:\n");
			strcat(MEGAString,string);
			format(string, 128, "12 - {FF6200}%s:{A0A0A0} %s\n", GetOrgName(12), InfoOrg[12][Lider]);
			strcat(MEGAString,string);
			format(string, 128, "13 - {68228B}%s:{A0A0A0} %s\n\n", GetOrgName(13), InfoOrg[13][Lider]);
			strcat(MEGAString,string);

			format(string, 128, "{FFFFFF}Organizaзхes Terroristas:\n");
			strcat(MEGAString,string);
			format(string, 128, "15 - {00483A}%s:{A0A0A0} %s\n", GetOrgName(15), InfoOrg[15][Lider]);
			strcat(MEGAString,string);
            format(string, 128, "23 - {00E5EE}%s:{A0A0A0} %s\n\n", GetOrgName(23), InfoOrg[23][Lider]);
            strcat(MEGAString,string);

            format(string, 128, "{FFFFFF}Organizaзхes Motoqueiras:\n");
			strcat(MEGAString,string);
			format(string, 128, "24 - {66CCFF}%s:{A0A0A0} %s\n", GetOrgName(24), InfoOrg[24][Lider]);
            strcat(MEGAString,string);
            format(string, 128, "25 - {363636}%s:{A0A0A0} %s\n", GetOrgName(25), InfoOrg[25][Lider]);
            strcat(MEGAString,string);

		}
		    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Lista de Lнderes das Organizaзхes", MEGAString, "OK","");
     		return true;
	}
	CMD:orgsvips(playerid, params[])
	{
	    if(PlayerInfo[playerid][pAdmin] < 1337)
     	{
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo esta autorizado a usar este comando!");
            return true;
        }
	    if(IsPlayerConnected(playerid))
	    {
	        new text1[30];
         	MEGAString[0]=EOS;
	       	new str[95];
			new count;
			strcat(MEGAString, "OrgID:\tOrganizaзгo\t{CB42E3}VIP:\tVence:\n");
			for(new i = 0; i < MAX_ORGS; i++)
   			{
   			            if(i == 0 || i == 6 || i == 26 || i == 27 || i == 28 || i == 29 || i == 30 || i == 31 || i == 32)
			   			{
			   			}
   			            else
				  		{
				  		    if(CofreOrg[i][Vip] > 1) { text1 = "{00DB1D}SIM"; }
				  		    else { text1 = "{FF0000}NГO"; }
			    			count++;
							GetPlayerName(i, sendername, sizeof(sendername));
							format(str, sizeof(str), "Nє%d\t{0080C0}%s:\t%s\t(%02d/%02d/%04d)\n", i,
						 	GetOrgName(i),text1,CofreOrg[i][DiaVIP],CofreOrg[i][MesVIP],CofreOrg[i][AnoVIP]);
		                    strcat(MEGAString, str);
                        }
			}
			if(count<=0)return ShowPlayerDialog(playerid, 0, 5, "Organizacхes VIPs", "{00FF00}Nenhum Organizacгo Encontrada", "OK", "");
    		if(count>0)ShowPlayerDialog(playerid, 0, 5, "Organizacхes VIPs", MEGAString, "OK", "");
	}
	return true;
 	}
cara tu vai ficar mt perdido editando essa gm sai dessa mano como eu disse.... Zzzzzzzzzzzz
Reply
#6

Quote:
Originally Posted by JhowWatkins
Посмотреть сообщение
cara tu vai ficar mt perdido editando essa gm sai dessa mano como eu disse.... Zzzzzzzzzzzz
Sabe arrumar pelos menos esses 2 bugs ?
Reply
#7

Alguem ?
Reply
#8

upup
Reply
#9

Cria uma vбriavel, e na hora de formatar para aperecer a lista se o player й ou nгo da ORG(OU VIP) adiciona um && e verifica se ele й Vнsivel. para isso tem que criar a vбriavel VISIVEL[MAX_PLAYERS] e tambйm um comando que seta se a variavel vai Receber valor de 1, ou 0
Definindo se o Jogador ficarб a ser Visto (visivelmente ou invisнvel como queira dizer)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)