[AJUDA] Gostaria de um Cmd de /relato
#1

Eu fiquei imprecionado que meu server nгo tenha o comando de /relato na qual os players falem com os admins do servidor
Meu GM e do brasil mega life 3.1 gostaria que alguem pudesse me ajudar criando um comando de /relato para mim..


Me Desculpe se estou postando em um local indevido ou nao posso postar. mais eu nгo consegui achar em nehum luga esse cmg. SE PUDEREM ME AJUDAR..

Obrigado..
Reply
#2

Tenta esse: (Nгo copia GM dos outros ¬¬ fassa do > 0 <)

pawn Код:
if(strcmp(cmd, "/relatorio", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб logado!");
                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: /relatorio [texto]");
                return 1;
            }
            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 1;
            }
            if(PlayerInfo[playerid][pVIP] == 1)
            {
                new lol;
                lol = PlayerInfo[playerid][pVIP];
                format(string, sizeof(string), "--> Relatуrio VIP de %s - ID[%d]: %s <--", sendername, playerid, lol, (result));
                ABroadCast(0x33FF00FF,string,1);
                SendClientMessage(playerid, COLOR_YELLOW, "Seu relatуrio VIP foi enviado aos admins, aguarde uma resposta...");
            }
            else if(PlayerInfo[playerid][pVIP] == 2)
            {
                new lol;
                lol = PlayerInfo[playerid][pVIP];
                format(string, sizeof(string), "--> Relatуrio Premium de %s - ID[%d]: %s -->", sendername, playerid, lol, (result));
                ABroadCast(0x33FF00FF,string,1);
                SendClientMessage(playerid, COLOR_YELLOW, "Seu relatуrio VIP foi enviado aos admins, aguarde uma resposta...");
            }
            else
            {
                format(string, sizeof(string), "--> Relatуrio de %s(%d): %s -->", sendername, playerid, (result));
                ABroadCast(0xFFFF66FF,string,1);
                SendClientMessage(playerid, COLOR_YELLOW, "Seu relatуrio foi enviado aos admins, aguarde uma resposta...");
            }
        }
        return 1;
    }
Creditos:
Tirei da base do GF!
Reply
#3

Obg mano Funcionou sem excluir nada..

Ahh eu nao pretendo usa esse GM no meu server eu estou usando ele pra fazer testes pq gostei dele

Obg..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)