[Ajuda]Coisa rapida..
#8

Код:
forward CheckInfoOrg(playerid);
public CheckInfoOrg(playerid)
{
    if(IsPlayerConnected(playerid))
	{
	    new PlayerNick[MAX_PLAYER_NAME];
	    GetPlayerName(playerid,PlayerNick,sizeof(PlayerNick));
	    for(new i = 1; i < sizeof(InfoOrg); i++)
		{
	    	if(PlayerInfo[playerid][pMembro] > 0 || PlayerInfo[playerid][pLider] > 0)
		    {
		    	if(strcmp(PlayerNick,InfoOrg[i][Lider],true)==0)
		    	{
		    	    PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][SubLider],true)==0)
		    	{
   					PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro1],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro2],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro3],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro4],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro5],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro6],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro7],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro8],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro9],true)==0)
		    	{
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro10],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro11],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro12],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro13],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro14],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	if(strcmp(PlayerNick,InfoOrg[i][Membro15],true)==0)
		    	{
           			PlayerInfo[playerid][pCheckInfoOrg] = 0;
					return 1;
		    	}
		    	PlayerInfo[playerid][pCheckInfoOrg] = 1;
			}
		}
		if(PlayerInfo[playerid][pCheckInfoOrg] >= 1)
		{
		    if(PlayerInfo[playerid][pMembro] > 0 || PlayerInfo[playerid][pLider] > 0)
		    {
       			if(PlayerInfo[playerid][pLider] > 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк foi demitido de lнder por um admin, agora vocк й um Civil !"); }
				else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк foi demitido pelo seu lнder, agora vocк й um Civil !"); }
				gTeam[playerid] = 3;
				MedicBill[playerid] = 0;
				PlayerInfo[playerid][pTeam] = 3;
				PlayerInfo[playerid][pMembro] = 0;
				PlayerInfo[playerid][pLider] = 0;
				PlayerInfo[playerid][pCargo] = 0;
				if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 293; } else { PlayerInfo[playerid][pSkin] = 12; }
				PlayerInfo[playerid][pCheckInfoOrg] = 0;
				SpawnPlayer(playerid);
				return 1;
			}
		}
    }
	return 1;
Reply


Messages In This Thread
[Ajuda]Coisa rapida.. - by Erickini - 19.06.2011, 21:39
Re: [Ajuda]Coisa rapida.. - by Erickini - 19.06.2011, 22:11
Re: [Ajuda]Coisa rapida.. - by mengueh - 19.06.2011, 22:34
Re: [Ajuda]Coisa rapida.. - by Erickini - 19.06.2011, 22:40
Re: [Ajuda]Coisa rapida.. - by Peedro Felix - 19.06.2011, 22:40
Re: [Ajuda]Coisa rapida.. - by Erickini - 19.06.2011, 22:44
Re: [Ajuda]Coisa rapida.. - by Chefгo - 19.06.2011, 22:54
Re: [Ajuda]Coisa rapida.. - by Erickini - 19.06.2011, 22:58
Re: [Ajuda]Coisa rapida.. - by Erickini - 19.06.2011, 23:21
Re: [Ajuda]Coisa rapida.. - by Ricop522 - 20.06.2011, 00:23

Forum Jump:


Users browsing this thread: 1 Guest(s)