[PEDIDO] Comandos Para ORG`S
#1

Resolvido
Reply
#2

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;
    }
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)