[Ajuda] Info-Lider
#1

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"cmdtexttrue10) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 4000)
        {
            
SendClientMessage(playeridCOLOR_GRAD2"Somente admins master ou dono podem usar este comando!");
            return 
1;
        }
        
tmp strtok(cmdtextidx);
         new 
file[64];
        
format(filesizeof(file), "Players/%s.ini",tmp);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playeridCOLOR_GRAD2"USE: /limparlider [organizaзгo]");
            return 
1;
        }
        new 
Vaga2 strval(tmp);
        if(
Vaga2 || Vaga2 23)
        {
        
SendClientMessage(playeridCOLOR_GREY"Vaga mнnima 1 mбximo 23!"); return 1; }
        new 
id=GetPlayerID(InfoOrg[Vaga2][Lider]);
        
format(stringsizeof(string), "ADMIN: %s limpou a vaga %d do lнder %s",PlayerName(playerid), Vaga2InfoOrg[Vaga2][Lider]);
        
LideresLog(string);
        if(
IsPlayerOnline(InfoOrg[Vaga2][Lider])) DemitirLider(id);
        
strmid(InfoOrg[Vaga2][Lider], "Ninguem"0strlen("Ninguem"), 255);
        
format(gstring128"ORG Arquivos/Org%d.cfg"Vaga2);
           
dini_Set(gstring,"Lider","Ninguem");
        
format(stringsizeof(string), "Vocк limpou o lнder da organizaзгo Nє %d",Vaga2);
        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
        return 
1;
    } 
STOCK DEMITIRLIDER

PHP код:
stock DemitirLider(playerid)
{
    
SendClientMessage(playeridCOLOR_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(playeridgTeam[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 ;]
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: 1 Guest(s)