[Ajuda] Info-Lider
#7

Tem essa aki

PHP код:
forward CheckInfoOrg(playerid);
public 
CheckInfoOrg(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
PlayerNick[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,PlayerNick,sizeof(PlayerNick));
        for(new 
1sizeof(InfoOrg); i++)
        {
            if(
PlayerInfo[playerid][pMember] > || PlayerInfo[playerid][pLeader] > 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][pMember] > || PlayerInfo[playerid][pLeader] > 0)
            {
                   if(
PlayerInfo[playerid][pLeader] > 0) { SendClientMessage(playeridCOLOR_LIGHTRED"Vocк foi demitido de lнder por um admin, agora vocк й um Civil !"); }
                else { 
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк foi demitido pelo seu lнder, agora vocк й um Civil !"); }
                
gTeam[playerid] = 3;
                
MedicBill[playerid] = 0;
                
PlayerInfo[playerid][pTeam] = 3;
                
PlayerInfo[playerid][pMember] = 0;
                
PlayerInfo[playerid][pLeader] = 0;
                
PlayerInfo[playerid][pRank] = 0;
                
SetPlayerSkin(playerid0);
                if(
PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] =  289; } else { PlayerInfo[playerid][pSkin] = 12; }
                
PlayerInfo[playerid][pCheckInfoOrg] = 0;
                
SpawnPlayer(playerid);
                return 
1;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Info-Lider - by victor304 - 13.10.2012, 19:49
Re: Info-Lider - by victor304 - 13.10.2012, 20:02
Re: Info-Lider - by victor304 - 13.10.2012, 20:50
Re: Info-Lider - by ForT - 13.10.2012, 21:00
Re: Info-Lider - by victor304 - 13.10.2012, 21:07
Re: Info-Lider - by ForT - 13.10.2012, 21:13
Re: Info-Lider - by victor304 - 13.10.2012, 21:18
Re: Info-Lider - by ForT - 13.10.2012, 21:23
Re: Info-Lider - by victor304 - 13.10.2012, 21:25
Re: Info-Lider - by victor304 - 13.10.2012, 21:44

Forum Jump:


Users browsing this thread: 2 Guest(s)