[Ajuda] organizaзoes
#1

Eae galera, se nao for muito incomodo, queria mais uma ajuda de voces. rsrs
Eu fiz as organizaзoes, so queria que quando o cara de por exemplo lider ou membro,
salvasse o nome dele num arquivo.txd Ai depois quando eu quizesse ver quem й da org, dava /informaзoes...
Ai quando ele saisse da org, apagasse o nome dele. Mais como faзo isso? Tenho nenhuma noзгo.
Reply
#2

Vocк fez seu sistema de organizaзхes baseado no tutorial que fiz?
Caso nгo, qual sua variбvel que determina que um player й lнder?
Reply
#3

ai estao e os lider e membro sao
[pMember]
[pLeader]



PHP код:
    if(strcmp(cmd"/darlider"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USO: /darlider [playerid/Parte-do-Nick] [Number(1-17)]");
                return 
1;
            }
            new 
para1;
            new 
level;
            
para1 ReturnUser(tmp);
            
tmp strtok(cmdtextidx);
            
level strval(tmp);
            if(
level 24 || level 0) { SendClientMessage(playeridCOLOR_GREY"   Nъmeros entre 1 e 24"); return 1; }
            new 
nome[24];
            
GetPlayerName(playeridnomesizeof nome);
            if(
PlayerInfo[playerid][pAdmin] >= 4999)
            {
                if(
IsPlayerConnected(para1))
                {
                    if(
para1 != INVALID_PLAYER_ID)
                    {
                        
GetPlayerName(para1giveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
PlayerInfo[para1][pLeader] = level;
                        
format(stringsizeof(string), "%s lhe deu o direito administraзгo profissional, digite /rg."sendername);
                        
SendClientMessage(para1COLOR_LIGHTBLUEstring);
                        
format(stringsizeof(string), "%s й o novo lнder administrativo profissional (%d)."giveplayer,level);
                        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                        if(
level == 0) { PlayerInfo[para1][pChar] = 23; }
                        else if(
level == 1) { PlayerInfo[para1][pChar] = 265gTeam[para1] = 2; } //Police Force
                        
else if(level == 2) { PlayerInfo[para1][pChar] = 286gTeam[para1] = 2; } //FBI/ATF
                        
else if(level == 3) { PlayerInfo[para1][pChar] = 287gTeam[para1] = 2;} //National Guard
                        
else if(level == 4) { PlayerInfo[para1][pChar] = 70gTeam[para1] = 4;} //Fire/Ambulance
                        
else if(level == 5) { PlayerInfo[para1][pChar] = 104gTeam[para1] = 7;} //Ballas
                        
else if(level == 6) { PlayerInfo[para1][pChar] = 270gTeam[para1] = 7;} //Grove
                        
else if(level == 7) { PlayerInfo[para1][pChar] = 147gTeam[para1] = 8;} //prefeito
                        
else if(level == 8) { PlayerInfo[para1][pChar] = 165gTeam[para1] = 8;} //M.I.
                        
else if(level == 9) { PlayerInfo[para1][pChar] = 295gTeam[para1] = 9;} //News Reporters
                        
else if(level == 10) { PlayerInfo[para1][pChar] = 47gTeam[para1] = 47;} //ggc
                        
else if(level == 11) { PlayerInfo[para1][pChar] = 174gTeam[para1] = 174;} //San Fierro
                        
else if(level == 12) { PlayerInfo[para1][pChar] = 108gTeam[para1] = 7;} //Los Santos Vagos
                        
else if(level == 13) { PlayerInfo[para1][pChar] = 181gTeam[para1] = 7;} //motoqueiros
                        
else if(level == 14) { PlayerInfo[para1][pChar] = 283gTeam[para1] = 14;} //PR
                        
else if(level == 15) { PlayerInfo[para1][pChar] = 115gTeam[para1] = 7; } //Aztecas
                        
else if(level == 16) { PlayerInfo[para1][pChar] = 118gTeam[para1] = 16; } //Mafia
                        
else if(level == 17) { PlayerInfo[para1][pChar] = 294gTeam[para1] = 16; } //PRF
                        
else if(level == 18) { PlayerInfo[para1][pChar] = 292gTeam[para1] = 16; } //Drifters
                        
else if(level == 19) { PlayerInfo[para1][pChar] = 19gTeam[para1] = 16; } //Lowriders
                        
else if(level == 20) { PlayerInfo[para1][pChar] = 293gTeam[para1] = 16; } //Lowriders
                        
else if(level == 21) { PlayerInfo[para1][pChar] = 285gTeam[para1] = 21; } //BOPE
                        
else if(level == 22) { PlayerInfo[para1][pChar] = 290gTeam[para1] = 22; } //BOPE
                        
else if(level == 23) { PlayerInfo[para1][pChar] = 235gTeam[para1] = 7; } //BOPE
                        
else if(level == 24) { PlayerInfo[para1][pChar] = 279gTeam[para1] = 7; } //BOPE
                        
PlayerInfo[para1][pMember] = level;
                        
PlayerInfo[para1][pRank] = 6;
                        
PlayerInfo[para1][pTeam] = gTeam[para1];
                        
PlayerInfo[para1][pModel] = PlayerInfo[para1][pChar];
                        
SetPlayerSkin(para1PlayerInfo[para1][pChar]);
                    }
                }
//not connected
            
}
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Sem Autorizaзгo.");
            }
        }
        return 
1;
    } 
Reply
#4

Ola josma, fiz do seu. So mudei algumas coisinhas. Sгo..

pawn Код:
orgs123[playerid][Membro];
orgs123[playerid][Cargo];
Reply
#5

em aonde eu acho tipo do jonas?
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=288305
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)