SA-MP Forums Archive
[Ajuda] Info-Lider - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Info-Lider (/showthread.php?tid=384913)



Info-Lider - victor304 - 13.10.2012

Bom galera, no meu INFO-LIDER, qnd eu digito /limparlider, ele tira o lider do cara OK!!

mais se ele tiver OFF-LINE
ele sai do /orgs mais continua lider, o q estб errado??

COMANDO LIMPARLIDER

PHP код:
       if (strcmp("/limparlider", cmdtext, true, 10) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 4000)
        {
            
SendClientMessage(playerid, COLOR_GRAD2, "Somente admins master ou dono podem usar este comando!");
            return 
1;
        }
        
tmp = strtok(cmdtext, idx);
         new 
file[64];
        
format(file, sizeof(file), "Players/%s.ini",tmp);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid, COLOR_GRAD2, "USE: /limparlider [organizaзгo]");
            return 
1;
        }
        new 
Vaga2 = strval(tmp);
        if(
Vaga2 < 1 || Vaga2 > 23)
        {
        
SendClientMessage(playerid, COLOR_GREY, "Vaga mнnima 1 mбximo 23!"); return 1; }
        new 
id=GetPlayerID(InfoOrg[Vaga2][Lider]);
        
format(string, sizeof(string), "ADMIN: %s limpou a vaga %d do lнder %s",PlayerName(playerid), Vaga2, InfoOrg[Vaga2][Lider]);
        
LideresLog(string);
        if(
IsPlayerOnline(InfoOrg[Vaga2][Lider])) DemitirLider(id);
        
strmid(InfoOrg[Vaga2][Lider], "Ninguem", 0, strlen("Ninguem"), 255);
        
format(gstring, 128, "ORG Arquivos/Org%d.cfg", Vaga2);
           
dini_Set(gstring,"Lider","Ninguem");
        
format(string, sizeof(string), "Vocк limpou o lнder da organizaзгo Nє %d",Vaga2);
        
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        return 
1;
    } 
STOCK DEMITIRLIDER

PHP код:
stock DemitirLider(playerid)
{
    
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк foi demitido de lнder por um admin, agora vocк й um Civil !");
    
gTeam[playerid] = 3;
    
PlayerInfo[playerid][pTeam] = 3;
    
PlayerInfo[playerid][pMember] = 0;
    
PlayerInfo[playerid][pLeader] = 0;
    
PlayerInfo[playerid][pRank] = 0;
    if(
PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] =  289; } else { PlayerInfo[playerid][pSkin] = 12; }
    
SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
    
MedicBill[playerid] = 0;
} 
alguem pode me ajudar se me ajudar e funfar = +REP ;]


Re: Info-Lider - victor304 - 13.10.2012

ALGUEM PLS?


Re: Info-Lider - victor304 - 13.10.2012

ALGUEM POR FAVOOR


Re: Info-Lider - ForT - 13.10.2012

Posta seu OnPlayerSpawn


Re: Info-Lider - victor304 - 13.10.2012

Ok

PHP код:
public OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid)) //Checa se o jogador й um NPC.
    
{
        new 
npcname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
        
if(!strcmp(npcname, "Tio_Xico", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
        
{
            
SetPlayerSkin(playerid, 94);
            return 
1;
        }
        if(!
strcmp(npcname, "Policial_Dp", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
        
{
            
PutPlayerInVehicle(playerid, Random, 0);
            
SetPlayerSkin(playerid, 281);
            
GivePlayerWeapon(playerid, 30, 200);
            return 
1;
        }
    }
    
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
     
TextDrawShowForPlayer(playerid, TextdrawB);
    
TextDrawShowForPlayer(playerid, tGP2[playerid]);
    
    
TextDrawShowForPlayer(playerid, Textdraw0);

    
InitLockDoors(playerid);
    
SetPlayerHealth(playerid, 100);
    
STDPlayer[playerid] = 0;
    
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    
gGas[playerid] = 1;
    for(new 
i=0;i<sizeof(Turfs);i++)
    {
        for(new 
gangid; gangid < MAX_PLAYERS; gangid++)
        {
            if(
TurfInfo[i][zMemberDie] == playerid)
            {
                if(
PlayerInfo[gangid][pMember] == PlayerInfo[playerid][pMember])
                {
                    if(
i == 0){GangZoneFlashForPlayer(gangid, i, TEAM_GROVE_COLOR);}
                    if(
i == 1){GangZoneFlashForPlayer(gangid, i, COLOR_YELLOW);}
                    if(
i == 2){GangZoneFlashForPlayer(gangid, i, TEAM_BALLAS_COLOR);}
                    if(
i == 3){GangZoneFlashForPlayer(gangid, i, TEAM_AZTECAS_COLOR);}
                    if(
i == 4){GangZoneFlashForPlayer(gangid, i, TEAM_COMANDO_COLOR);}
                    if(
i == 5){GangZoneFlashForPlayer(gangid, i, TEAM_PCC_COLOR);}
                }
                if(
i == 0){GangZoneFlashForPlayer(gangid, i, TEAM_GROVE_COLOR);}
                if(
i == 1){GangZoneFlashForPlayer(gangid, i, COLOR_YELLOW);}
                if(
i == 2){GangZoneFlashForPlayer(gangid, i, TEAM_BALLAS_COLOR);}
                if(
i == 3){GangZoneFlashForPlayer(gangid, i, TEAM_AZTECAS_COLOR);}
                if(
i == 4){GangZoneFlashForPlayer(gangid, i, TEAM_COMANDO_COLOR);}
                if(
i == 5){GangZoneFlashForPlayer(gangid, i, TEAM_PCC_COLOR);}
                
TurfInfo[i][zMemberDie] = -1;
            }
        }
    }
    if(
PlayerInfo[playerid][pAdmin] > 0)
        
SetPlayerChatBubble(playerid, AccountName(playerid), COLOR_YELLOW, 50.0, 14400000);
    if (
gTeam[playerid] == 4) //medic / criminal reset team
    
{
        
gTeam[playerid] = 3;
    }
    if(
gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
        
Hospital[playerid] = 0;
        new 
rand = random(sizeof(CIV));
        
PlayerInfo[playerid][pTeam] = 3;
        
gTeam[playerid] = 3;
        
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        
PlayerInfo[playerid][pModel] = CIV[rand];
        
SpawnPlayer(playerid);
    }
    if(
gTeam[playerid] == 5)
    {
        if(
PlayerInfo[playerid][pMember] < 1)
        {
            
Hospital[playerid] = 0;
            new 
rand = random(sizeof(CIV));
            
PlayerInfo[playerid][pTeam] = 3;
            
gTeam[playerid] = 3;
            
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
            
PlayerInfo[playerid][pModel] = CIV[rand];
            
SpawnPlayer(playerid);
        }
    }
    if(
gTeam[playerid] == 10)
    {
        if(
PlayerInfo[playerid][pMember] != 8)
        {
            
Hospital[playerid] = 0;
            new 
rand = random(sizeof(CIV));
            
PlayerInfo[playerid][pTeam] = 3;
            
gTeam[playerid] = 3;
            
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
            
PlayerInfo[playerid][pModel] = CIV[rand];
            
SpawnPlayer(playerid);
        }
    }
    if(
gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
    {
        
Hospital[playerid] = 0;
        new 
rand = random(sizeof(CIV));
        
PlayerInfo[playerid][pTeam] = 3;
        
gTeam[playerid] = 3;
        
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        
PlayerInfo[playerid][pModel] = CIV[rand];
        
SpawnPlayer(playerid);
    }
    if(
gTeam[playerid] == 3)
    {
        if(
PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
        {
            
Hospital[playerid] = 0;
            new 
model = PlayerInfo[playerid][pChar];
            if(
PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 14; gTeam[playerid] = 14; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 19) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 20) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 21; gTeam[playerid] = 21; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 22) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 22; PlayerInfo[playerid][pModel] = model; }
        

            else if(
PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 19) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 20) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 22) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            
//SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
            
SpawnPlayer(playerid);
        }
    }
    if(
PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    else { 
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    
SetPlayerWeapons(playerid);
    
SetPlayerSpawn(playerid);
    
SetPlayerToTeamColor(playerid);
    
PlayerFixRadio(playerid);
    for(new 
i = 0; i < sizeof(Turfs); i++)
    {
        
GangZoneShowForAll(i, TurfInfo[i][zColor]);
    }
    return 
1;
} 



Re: Info-Lider - ForT - 13.10.2012

vocк deve ter uma public que checa se o player pertence a uma organizaзгo neh?
se tiver poste ela.


Re: Info-Lider - victor304 - 13.10.2012

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 
i = 1; i < sizeof(InfoOrg); i++)
        {
            if(
PlayerInfo[playerid][pMember] > 0 || 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] > 0 || PlayerInfo[playerid][pLeader] > 0)
            {
                   if(
PlayerInfo[playerid][pLeader] > 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][pMember] = 0;
                
PlayerInfo[playerid][pLeader] = 0;
                
PlayerInfo[playerid][pRank] = 0;
                
SetPlayerSkin(playerid, 0);
                if(
PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] =  289; } else { PlayerInfo[playerid][pSkin] = 12; }
                
PlayerInfo[playerid][pCheckInfoOrg] = 0;
                
SpawnPlayer(playerid);
                return 
1;
            }
        }
    }
    return 
1;
} 



Re: Info-Lider - ForT - 13.10.2012

tenta colocar isso no comeзo do OnPlayerSpawn
PHP код:
CheckInfoOrg(playerid); 



Re: Info-Lider - victor304 - 13.10.2012

Coloquei mais n deu vei...
ai cara, axo q vc n entendeu minha pergunta.

Qnd o LIDER estб on e o adm usa /limparlider tira ele do /orgs e tira o lider tmb,
Agr qnd ele ta OFF e o adm usa /limparlider tira ele do orgs mais n tira de lider :S


Re: Info-Lider - victor304 - 13.10.2012

Algueem?