Nгo estб salvando os Lideres
#6

Ai o codigo


Код:
	if(strcmp(cmd, "/darlider", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darlider [id] [Numero(1-34)]");
				return true;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strval(tmp);
			if(level == 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "Para tirar o lider de uma organizaзгo vocк deve usar /limparlider");
				return true;
			}
			if(level > 34 || level < 1)
			{
				SendClientMessage(playerid, COLOR_GREY, "Organizaзхes de 1 a 34");
				return true;
			}
			if(level == 12 || level == 13)
			{
				SendClientMessage(playerid, COLOR_GREY, "Organizaзao desativada no momento!");
				return true;
			}
			GetPlayerName(playerid, sendername, 256);
			if (PlayerInfo[playerid][pAdmin] >= MASTER)
 			{
				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(para1 != INVALID_PLAYER_ID)
			        {
						if(strcmp(InfoOrg[level][Lider],"Ninguem",true)==0)
						{
							ConviteInfoOrg(PlayerName(para1), level, 6);
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GRAD2, "Jб tem lнder nessa ORG, use /limparlider antes de colocar outro lider");
						    return true;
						}
						if(level == 1) { PlayerInfo[para1][pSkin] = 266; }//Policia Militar
						else if(level == 2)	{ PlayerInfo[para1][pSkin] = 228; }//Rotam
						else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
						else if(level == 4) { PlayerInfo[para1][pSkin] = 70; }//Fire/Ambulance
						else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
						else if(level == 6) { PlayerInfo[para1][pSkin] = 249; }//GIA
						else if(level == 7) { PlayerInfo[para1][pSkin] = 147; }//Prefeito
						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; }//Taxistas
						else if(level == 11) { PlayerInfo[para1][pSkin] = 295; }//Policia Federal
						else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Cosa Nostra
						else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Yakuza
						else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
                        else if(level == 15) { PlayerInfo[para1][pSkin] = 123; }//ALQaeda
						else if(level == 16) { PlayerInfo[para1][pSkin] = 228; }//Rotam-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] = 170; }//Comando Vermelho-SF
                        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] = 47; }//PpCC-SF
                        else if(level == 25) { PlayerInfo[para1][pSkin] = 115; }//Guerrilheiros Israeli
                        else if(level == 26) { PlayerInfo[para1][pSkin] = 104; }//Guerrilheiros Israeli
                        else if(level == 27) { PlayerInfo[para1][pSkin] = 266; }//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 rodoviaria
                        else if(level == 32) { PlayerInfo[para1][pSkin] = 227; }//Guerrilheiros Israeli
						else if(level == 34) { PlayerInfo[para1][pSkin] = 57; }//
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][pLider] = level;
						if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
						{
                            format(string, sizeof(string), "   Vocк foi promovido a lider pelo admin %s", PlayerName(playerid));
							SendClientMessage(para1, COLOR_LIGHTBLUE, string);

						}
						else
						{
							format(string, sizeof(string), "   Vocк foi promovido a lider pelo admin %s", PlayerName(playerid));
							SendClientMessage(para1, COLOR_LIGHTBLUE, string);
						}
						format(string, sizeof(string), "   Vocк promoveu %s a Lider.", giveplayer);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "ADMIN: %s deu lнder da org:[%s] para %s.", sendername, NomeORG(level), giveplayer);
                        LideresLog(string);
						//TempoDeDar[para1] = SetTimerEx("BOSTA", 10000, 0, "i", para1);
						XXAirBreak[para1] += 3;
                        MedicBill[para1] = 0;
						gTeam[para1] = 11;
					    PlayerInfo[para1][pTeam] = 11;
					    PlayerInfo[para1][pCargo] = 6;
					    SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
					    SetPlayerSpawn(para1);
					}
				}//not connected
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
			}
		}
		return true;
Reply


Messages In This Thread
Nгo estб salvando os Lideres - by Heldinho - 18.02.2017, 04:42
Re: Nгo estб salvando os Lideres - by Cheleber_Pausini - 18.02.2017, 10:53
Re: Nгo estб salvando os Lideres - by Heldinho - 18.02.2017, 13:41
Re: Nгo estб salvando os Lideres - by Heldinho - 18.02.2017, 13:43
Re: Nгo estб salvando os Lideres - by Cheleber_Pausini - 18.02.2017, 17:20
Re: Nгo estб salvando os Lideres - by Heldinho - 19.02.2017, 02:13
Re: Nгo estб salvando os Lideres - by Cheleber_Pausini - 19.02.2017, 13:21

Forum Jump:


Users browsing this thread: 3 Guest(s)