[AJUDA]/darlider aparecer pra todos.
#1

Tipo eu ja tenho o comando /darlider para dar lider de uma org no meu gm , mas eu queria que aparecesse para todos quando dou a org tipo: "Randy e o novo Lider da Policia militar. " ae aparecer para todos os players
se poder me ajudar ae :] vlw
Reply
#2

Posta o comando /darlider.
Reply
#3

Use
Код:
SendClientMessageToAll(playerid, COLOR_GREEN," Aqui bote sua menssagem");
Se nгo intender poste o comando /darlider
Reply
#4

Nгo й sу isso nake --' ele quer que apareзa o nome da pessoa que ganhou lider... Mais alйm eu posto aqui agora to de saida e poste o seu /darlider
Reply
#5

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

Quero que aparece o nome da org que o player virou lider :]
Reply
#6

Nгo sei como define o Lider, mais defini "pLeader" se nao for troca, e dps й so vc ir acrecentando Outras Orgs, So vc seguir o exemplo La aonde ta "Policia Militar" e "FBI" , ai vc vai fazendo o resto ..

pawn Код:
if(strcmp(cmd, "/darlider", true) == 0)
{
    if(IsPlayerConnected(playerid)) {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_GRAD2, "USO: /darlider [playerid/Parte-do-Nick] [Number(1-17)]");
            return 1;
        }
        new para1;
        new level;
        new Org[30];
        para1 = ReturnUser(tmp);
        tmp = strtok(cmdtext, idx);
        level = strval(tmp);
        if(level > 23 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Nъmeros entre 1 e 23"); return 1; }
        new nome[24];
        GetPlayerName(playerid, nome, sizeof nome);
        if(PlayerInfo[playerid][pAdmin] >= 5) {
            if(IsPlayerConnected(para1)) {
                if(para1 != INVALID_PLAYER_ID) {
                    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    PlayerInfo[para1][pLeader] = level;
                    if(level == 0) { PlayerInfo[para1][pChar] = 23; }
                    format(string, sizeof(string), "%s lhe deu o direito administraзгo profissional, digite /rg.", sendername);
                    SendClientMessage(para1, COLOR_LIGHTBLUE, string);

                    if(PlayerInfo[para1][pLeader] == 1) { Org = "Policia Militar"; }
                    else if(PlayerInfo[para1][pLeader] == 2) { Org = "FBI"; }

                    format(string, sizeof(string), "%s й o novo lнder administrativo profissional %s.", giveplayer,Org);
                    SendClientMessageToAll(COLOR_WHITE, string);

                    else if(level == 1) {         //Police Force
                        PlayerInfo[para1][pChar] = 265; gTeam[para1] = 2;
                    }
                    else if(level == 2) {         //FBI/ATF
                        PlayerInfo[para1][pChar] = 286; gTeam[para1] = 2;
                    }
                    else if(level == 3) {         //National Guard
                        PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2;
                    }
                    else if(level == 4) {         //Fire/Ambulance
                        PlayerInfo[para1][pChar] = 70; gTeam[para1] = 4;
                    }
                    else if(level == 5) {         //Ballas
                        PlayerInfo[para1][pChar] = 104; gTeam[para1] = 7;
                    }
                    else if(level == 6) {         //Grove
                        PlayerInfo[para1][pChar] = 270; gTeam[para1] = 7;
                    }
                    else if(level == 7) {         //prefeito
                        PlayerInfo[para1][pChar] = 147; gTeam[para1] = 8;
                    }
                    else if(level == 8) {            //M.I.
                        PlayerInfo[para1][pChar] = 165; gTeam[para1] = 8;
                    }
                    else if(level == 9) {         //News Reporters
                        PlayerInfo[para1][pChar] = 295; gTeam[para1] = 9;
                    }
                    else if(level == 10) {        //ggc
                        PlayerInfo[para1][pChar] = 47; gTeam[para1] = 47;
                    }
                    else if(level == 11) {        //San Fierro
                        PlayerInfo[para1][pChar] = 174; gTeam[para1] = 174;
                    }
                    else if(level == 12) {        //Los Santos Vagos
                        PlayerInfo[para1][pChar] = 108; gTeam[para1] = 7;
                    }
                    else if(level == 13) {        //motoqueiros
                        PlayerInfo[para1][pChar] = 181; gTeam[para1] = 7;
                    }
                    else if(level == 14) {        //PR
                        PlayerInfo[para1][pChar] = 283; gTeam[para1] = 14;
                    }
                    else if(level == 15) {        //Aztecas
                        PlayerInfo[para1][pChar] = 115; gTeam[para1] = 7;
                    }
                    else if(level == 16) {        //Mafia
                        PlayerInfo[para1][pChar] = 118; gTeam[para1] = 16;
                    }
                    else if(level == 17) {        //PRF
                        PlayerInfo[para1][pChar] = 294; gTeam[para1] = 16;
                    }
                    else if(level == 18) {        //Drifters
                    {
                        PlayerInfo[para1][pChar] = 292; gTeam[para1] = 16;
                    }
                    else if(level == 19) {        //Lowriders
                        PlayerInfo[para1][pChar] = 19; gTeam[para1] = 16;
                    }
                    else if(level == 20) {        //Lowriders
                        PlayerInfo[para1][pChar] = 293; gTeam[para1] = 16;
                    }
                    else if(level == 21) {        //swat
                        PlayerInfo[para1][pChar] = 285; gTeam[para1] = 21;
                    }
                    else if(level == 22) {        //swat
                        PlayerInfo[para1][pChar] = 290; gTeam[para1] = 22;
                    }
                    else if(level == 23) {        //swat
                        PlayerInfo[para1][pChar] = 235; gTeam[para1] = 7;
                    }
                    PlayerInfo[para1][pMember] = level;
                        PlayerInfo[para1][pRank] = 6;
                        PlayerInfo[para1][pTeam] = gTeam[para1];
                        PlayerInfo[para1][pModel] = PlayerInfo[para1][pChar];
                        SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
                }
            }                                     //not connected
        }
        else {
            SendClientMessage(playerid, COLOR_GRAD1, " Sem Autorizaзгo.");
        }
    }
    return 1;
}
Reply
#7

Hmm , ok vou tentar aqui vlw :]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)