SA-MP Forums Archive
[PEDIDO] Comandos Para ORG`S - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] Comandos Para ORG`S (/showthread.php?tid=176268)



[RESOLVIDO] ADM APAGUE POR FAVOR. - shinistro - 12.09.2010

Resolvido


Re: [PEDIDO] Comandos Para ORG`S - Rodolfo_Halls - 12.09.2010

estude esse e fassa o seu

Quote:

if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)

isso e o numero da org que ira anunciar

Quote:

SendClientMessageToAll(aqui й a cor do anuncio, string);

ali voce procura uma cor e muda


pawn Код:
//----------------------------------[Sons]-----------------------------------------------
    if(strcmp(cmd, "/ansons", true) == 0 || strcmp(cmd, "/ans", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)
            {
            if(PlayerInfo[playerid][pCargo] < 4)
            {
                SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelomenos cargo 4 para usar este comando!!");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            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: (/ansons)rc [texto]");
                return 1;
            }
            SendClientMessageToAll(COLOR_WHITE, "|BPT|Anuncio Dos Sons Of Anarchy|BPT|");
            format(string, sizeof(string), "S.O.A %s: %s Telefone: %d", result,sendername,PlayerInfo[playerid][pPnumber]);
            SendClientMessageToAll(0x570000F6, string);
        }
        }
        return 1;
    }



Re: [PEDIDO] Comandos Para ORG`S - shinistro - 12.09.2010

As coisas Basicas eu sabia como SENDMESSAGETOALL e as cores. Sу o local da id da org e o comando eu n sabia