[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


Messages In This Thread
[Ajuda] CMD /ang - by Tiu_DaColombia - 08.04.2012, 23:16
Re: [Ajuda] CMD /ang - by Tiu_DaColombia - 09.04.2012, 00:00
Re: [Ajuda] CMD /ang - by mau.tito - 09.04.2012, 00:12
Re: [Ajuda] CMD /ang - by Tiu_DaColombia - 09.04.2012, 00:19
Re: [Ajuda] CMD /ang - by mau.tito - 09.04.2012, 00:26
Re: [Ajuda] CMD /ang - by Tiu_DaColombia - 09.04.2012, 15:03
Re: [Ajuda] CMD /ang - by Tiu_DaColombia - 09.04.2012, 16:09
Re: [Ajuda] CMD /ang - by mau.tito - 09.04.2012, 16:57
Re: [Ajuda] CMD /ang - by Tiu_DaColombia - 09.04.2012, 18:04
Re: [Ajuda] CMD /ang - by mau.tito - 09.04.2012, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)