[Ajuda] CMD /ang
#1

Fala ae Galera Fmz?
Quando eu coloco /ANG para todos as org anuncia NГO PEGA !
Ae se eu colocar o /ANG sу para uma ORG ele PEGA eu gostaria de colocar para todas as org que eu quiser Entende.
Caso puder me ajudar agradeзo e dou +REP

Falou Galera
FELIZ PASCOA

pawn Код:
if(strcmp(cmd, "/ang", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerOrg(playerid) == 14)
            {
                if(PlayerInfo[playerid][pCargo] < 4)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelo menos cargo 4 para usar este comando!");
                    return true;
                }
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: (/ang) [texto]");
                    return true;
                }
                if(TentouDivulgar(result))
                {
                if(cdivulgar[playerid] >= 4)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
                    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
                    Kick(playerid);
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                ABroadCast(COLOR_YELLOW,string,1);
                DivulgouLog(string);
                cdivulgar[playerid] += 1;
                return true;
                }
                if(panuncioalqaeda == 1)
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"Espere 60 segundos para poder anunciar novamente!");
                    return true;
                }
                GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
                format(string,sizeof(string),"[Grove Street]Anuncio: %s, Gangster: %s - ID [%d] - Telefone (%d)", result,sendername,playerid,PlayerInfo[playerid][pPnumber]);
                if(GetPlayerOrg(playerid) == 14) SendClientMessageToAll(COR_GRO, string);
                print(string);
                SBizzInfo[7][sbTill] += 30;
                ExtortionSBiz(7, 30);
                panuncioalqaeda = 1;
                TempoAnAlqaeda = SetTimer("AnuncioAlqaeda", 60000, 0);
            }
        }
        return true;
    }
if(strcmp(cmd, "/ang", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerOrg(playerid) == 18)
            {
                if(PlayerInfo[playerid][pCargo] < 4)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelo menos cargo 4 para usar este comando!");
                    return true;
                }
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: (/ang) [texto]");
                    return true;
                }
                if(TentouDivulgar(result))
                {
                if(cdivulgar[playerid] >= 4)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
                    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
                    Kick(playerid);
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                ABroadCast(COLOR_YELLOW,string,1);
                DivulgouLog(string);
                cdivulgar[playerid] += 1;
                return true;
                }
                if(panuncioalqaeda == 1)
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"Espere 60 segundos para poder anunciar novamente!");
                    return true;
                }
                GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
                format(string,sizeof(string),"[Los Vagos]Anuncio: %s, Gangster: %s - ID [%d] - Telefone (%d)", result,sendername,playerid,PlayerInfo[playerid][pPnumber]);
                if(GetPlayerOrg(playerid) == 18) SendClientMessageToAll(COR_VAGOS, string);
                print(string);
                SBizzInfo[7][sbTill] += 30;
                ExtortionSBiz(7, 30);
                panuncioalqaeda = 1;
                TempoAnAlqaeda = SetTimer("AnuncioAlqaeda", 60000, 0);
            }
        }
        return true;
    }

if(strcmp(cmd, "/ang", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerOrg(playerid) == 17)
            {
                if(PlayerInfo[playerid][pCargo] < 4)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelo menos cargo 4 para usar este comando!");
                    return true;
                }
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: (/ang) [texto]");
                    return true;
                }
                if(TentouDivulgar(result))
                {
                if(cdivulgar[playerid] >= 4)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
                    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
                    Kick(playerid);
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                ABroadCast(COLOR_YELLOW,string,1);
                DivulgouLog(string);
                cdivulgar[playerid] += 1;
                return true;
                }
                if(panuncioalqaeda == 1)
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"Espere 60 segundos para poder anunciar novamente!");
                    return true;
                }
                GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
                format(string,sizeof(string),"[Ballas]Anuncio: %s, Gangster: %s - ID [%d] - Telefone (%d)", result,sendername,playerid,PlayerInfo[playerid][pPnumber]);
                if(GetPlayerOrg(playerid) == 17) SendClientMessageToAll(COR_BALLAS, string);
                print(string);
                SBizzInfo[7][sbTill] += 30;
                ExtortionSBiz(7, 30);
                panuncioalqaeda = 1;
                TempoAnAlqaeda = SetTimer("AnuncioAlqaeda", 60000, 0);
            }
        }
        return true;
    }

Nгo Coloquei todas as ORG porque acho que nгo precisa so preciso Saber mesmo A BASE para eu colocar nas outras ORG
Reply
#2

UP to precisando rapido por favor alguйm pode me ajudar
Reply
#3

Tenta Isso Pode Ser Que Te Ajude
pawn Код:
new orgname{
Los Vagos,
Los Aztecas
};
forward org();

public org()
{
   if(GetPlayerOrg(playerid) == 1 || GetPlayerOrg(playerid) == 2 || GetPlayerOrg(playerid) == 3)
   return 0;
}

   if(strcmp(cmd, "/ang", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            org()
            {
                if(PlayerInfo[playerid][pCargo] < 4)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelo menos cargo 4 para usar este comando!");
                    return true;
                }
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: (/ang) [texto]");
                    return true;
                }
                if(TentouDivulgar(result))
                {
                if(cdivulgar[playerid] >= 4)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
                    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
                    Kick(playerid);
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                ABroadCast(COLOR_YELLOW,string,1);
                DivulgouLog(string);
                cdivulgar[playerid] += 1;
                return true;
                }
                if(panuncioalqaeda == 1)
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"Espere 60 segundos para poder anunciar novamente!");
                    return true;
                }
                GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
                format(string,sizeof(string),"[%s]Anuncio: %s, Gangster: %s - ID [%d] - Telefone (%d)", orgname, result,sendername,playerid,PlayerInfo[playerid][pPnumber]);
                if(GetPlayerOrg(playerid) == 18) SendClientMessageToAll(COR_VAGOS, string);
                print(string);
                SBizzInfo[7][sbTill] += 30;
                ExtortionSBiz(7, 30);
                panuncioalqaeda = 1;
                TempoAnAlqaeda = SetTimer("AnuncioAlqaeda", 60000, 0);
            }
        }
        return true;
    }
Reply
#4

Pow man Eu nгo quero assim nгo eu quero que cada ORG tem seu /ANG entende

Mas Valeu pela tentativa
Reply
#5

Presta Atenзao Irei Explica o Meu Code
pawn Код:
new orgname{//Nome Para Parecer no /ang
Los Vagos,
Los Aztecas
};
forward org();//crianзao da public

public org()
{
   if(GetPlayerOrg(playerid) == 1 || GetPlayerOrg(playerid) == 2 || GetPlayerOrg(playerid) == 3)// orgs que darao /ang
   return 0;
}

   if(strcmp(cmd, "/ang", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            org()//fuзao da public
            {
                if(PlayerInfo[playerid][pCargo] < 4)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelo menos cargo 4 para usar este comando!");
                    return true;
                }
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: (/ang) [texto]");
                    return true;
                }
                if(TentouDivulgar(result))
                {
                if(cdivulgar[playerid] >= 4)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
                    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
                    Kick(playerid);
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                ABroadCast(COLOR_YELLOW,string,1);
                DivulgouLog(string);
                cdivulgar[playerid] += 1;
                return true;
                }
                if(panuncioalqaeda == 1)
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"Espere 60 segundos para poder anunciar novamente!");
                    return true;
                }
                GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
                format(string,sizeof(string),"[%s]Anuncio: %s, Gangster: %s - ID [%d] - Telefone (%d)", orgname, result,sendername,playerid,PlayerInfo[playerid][pPnumber]);// ali olha o code
                if(GetPlayerOrg(playerid) == 18) SendClientMessageToAll(COR_VAGOS, string);
                print(string);
                SBizzInfo[7][sbTill] += 30;
                ExtortionSBiz(7, 30);
                panuncioalqaeda = 1;
                TempoAng = SetTimer("Anuncio", 60000, 0);//altera essa linha para esse geito
            }
        }
        return true;
    }
Reply
#6

Fmz vou tenta aqui Se pega +REP


Reply
#7

Pow man me ajuda ae Tipo so ta pegando para gangster eu queria tipo
Colocar para gangster,mercenario,Mafioso,Terrorista,hitmans,Tax ista Entende
Atй pega para essas org so que fica aprecendo o


format(string,sizeof(string),"[%s]Anuncio: %s, Gangster : %s - ID [%d] - Telefone (%d)", orgname, result,sendername,playerid,PlayerInfo[playerid][pPnumber]);// ali olha o code

Ajuda ae Man
Reply
#8

0 onde no nome da org?
Reply
#9

Nгo , e aonde ta escrito "GANGSTER" se a org fosse Terrorista eu gostaria que aparecia Terrista entendeu?
Reply
#10

Pra Que Serve o new orgname ??
So Criar Igual o orgname
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)