[Ajuda] Problema orgs
#1

Estou com um problema em duas orgs
Eu dou o lider normal mais quando eu dou /contaslider o nome do player que era lider continua no /orgs e ele civil
Sгo as:

Policia Federal - id 35
Policia Civil - id 33

/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;
	}
/Contaslider

Код:
CMD:contaslider(playerid, params[])
	{
		if(PlayerInfo[playerid][pLider] == 0)
    	{
	   		SendClientMessage(playerid,COLOR_GREY," Vocк nгo й lнder de nenhuma organizaзгo!");
	   		return true;
    	}
    	new string[100];
		format(string, sizeof(string), "AdmCmd: %s pediu contas de Lнder da organizaзгo:[%s]",PlayerName(playerid), NomeORG(GetPlayerOrg(playerid)));
		BRLLogs("Lideres", string);
    	DemitirInfoOrg(PlayerName(playerid));
		PlayerInfo[playerid][pMembro] = 0;
		PlayerInfo[playerid][pLider] = 0;
		PlayerInfo[playerid][pCargo] = 0;
		if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pAdminTemp] < 1)
		{
			PlayerInfo[playerid][pSpawn] = 0;
		}
		ConnectedToPC[playerid] = 0;
		OnDuty[playerid] = 0;
		EmpregoDuty[playerid] = 0;
		RemoveallRoadandSpikes(playerid);
		if(PlayerInfo[playerid][pSex] == 1)
		{
		PlayerInfo[playerid][pSkin] = 23;
		}
		else
		{
		PlayerInfo[playerid][pSkin] = 150;
		}
		SetPlayerToTeamColor(playerid);
		SpawnPlayer(playerid);
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pediu as contas, agora vocк й um Civil novamente!");
		SpawnPlayer(playerid);
		return true;
	}
Reply
#2

posta o comando contaslider e orgs
Reply
#3

Quote:
Originally Posted by viniciuship
Посмотреть сообщение
posta o comando contaslider e orgs
Olha ai em cima
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)