SSGamers - 12 Anos online por você.

#SSGamers - A Comunidade que mais crescer no brasil!

Participe do fórum, é rápido e fácil

SSGamers - 12 Anos online por você.

#SSGamers - A Comunidade que mais crescer no brasil!

SSGamers - 12 Anos online por você.

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Chegou o novo tema 6.5.5 - SSGamers - Servidores online de qualidade - Aproveite e entre para nossa comunidade, inscreva-se já! - Ouça nossa web radio - Veja nossas novidades - Participe dos nossos setores de jogos online - Parcerias aberta fale já com um administrador.

3 participantes

    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda

    Kai
    Kai
    --> Postador Médio
    --> Postador Médio


    Steam Steam : xwoondinho
    Celular : 64 92213192
    Mensagens : 381
    Moedas : 4464
    Data de inscrição : 20/03/2014
    Idade : 23

    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda Empty Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda

    Mensagem por Kai Sex 13 Jan 2017 - 22:14

    Comando /n: (Admins & Players)
    Código:

      if(strcmp(cmd, "/n", true) == 0 || strcmp(cmd, "/novato", true) == 0 || strcmp(cmd, "/newbie", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Você não está logado!");
                    return 1;
                }
                if(NovatoChat[playerid] == 0)
                {
     SendClientMessage(playerid, COLOR_GREY, "Você não está no chat de ajuda, digite /chatajuda para poder falar no /n");
        return 1;
                }
                if(BlockNSeconds[playerid] > 0)
                {
                    new kkstring[256];
     format(kkstring,sizeof(kkstring), "Você está bloqueado de falar no chat de ajuda por %d segundos",BlockNSeconds[playerid]);
     SendClientMessage(playerid,-1,kkstring);
                    return 1;
                }
                if((gettime() - GetPVarInt(playerid, #frelatorio)) < 10)
     {
        if(RelatoEntregue[playerid] == 1)
        if(PlayerDados[playerid][pAdmin] == 0)
     {
     SendClientMessage(playerid, -1, "Aguarde 10 segundos para falar novamente no chat ajuda");
     }
     }
                GetPlayerName(playerid, sendername, sizeof(sendername));
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[100];
                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: /n [Duvida]");
                    return 1;
                }
                if(TentouDivulgar(result))
                {
                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);
                }
                if(Palavrao(result))
               {
                    GivePlayerMoneyEx(playerid, -10000);
                    SendClientMessage(playerid, COLOR_LIGHTRED, "Você chingou no /n, você perdeu 10,000 reais.");
                    return 1;
           }
            for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(NovatoChat[i] == 1)
                {
                    new kkstring[256];
                    if(PlayerDados[i][pAdmin] == 0)
                    {
               format(kkstring,sizeof(kkstring), "(Chat Ajuda) [%s (ID: %d)]: %s",PlayerName(playerid), playerid, result);
     }
     else if(PlayerDados[i][pAdmin] >= 1)
          {
            format(kkstring,sizeof(kkstring), "(Chat Ajuda) [Admin %s (ID: %d)]: %s",PlayerName(playerid), playerid, result);
     }
     SendClientMessage(i,0x02917EFF,kkstring);
     SetPVarInt(playerid, #frelatorio, gettime());
                }
     }
     }

     }
     return 1;
     }

    Comando de bloquear chat: (Admins)
    Código:

    if(strcmp(cmd, "/blocknoob",true) == 0 || strcmp(cmd, "/blockn",true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                new tempo[20];
                new tempo2;
                if(PlayerDados[playerid][pAdmin] < 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Você não esta autorizado para usar este comando!");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                tempo = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: /blocknoob [ ID ] [ Tempo ] [ Motivo ]");
                    return 1;
                }
                if(!strlen(tempo))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USE: /blocknoob [ ID ] [ Tempo ] [ Motivo ]");
                    return 1;
                }
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[100];
                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: /blocknoob [ ID ] [ Tempo ] [ Motivo ]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                tempo2 = strval(tempo);
                if(IsPlayerConnected(giveplayerid))
                {
                  if(giveplayerid != INVALID_PLAYER_ID)
                  {
                        format(string, sizeof(string), "Você foi bloqueado de falar no chat de ajuda pelo admin %s.", PlayerName(playerid));
                        SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
                        BlockNSeconds[giveplayerid] = tempo2 * 60;
                        GivePlayerMoney(giveplayerid, -tempo2*60);
                        format(string, sizeof(string), "Você perdeu $%d por não obedecer as regras do chat noob.", tempo2*60);
                        SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
                       for(new i = 0; i < MaiorID; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(NovatoChat[i] == 1)
                {
                    new kkstring[256];
               format(kkstring,sizeof(kkstring), "Admin %s bloqueou %s de falar no chat de ajuda por %d minutos, Motivo: %s",PlayerName(playerid), PlayerName(giveplayerid),tempo2, result);
     SendClientMessage(i,COLOR_LIGHTRED,kkstring);
                }
     }
     }
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "   O jogador está offline!");
                    return 1;
                }
            }
            return 1;
        }

    Comando ocultar/mostrar chat ajuda: (Admins & Players)
    Código:
    if (strcmp("/chatajuda", cmdtext, true, 10) == 0)
        {
            if(NovatoChat[playerid] == 0)
            {
                SendClientMessage(playerid, -1, "Você entrou no chat de ajuda, Digite /n para pedir ajuda");
     NovatoChat[playerid] = 1;
     }
     else
     {
        SendClientMessage(playerid, -1, "Você saiu do chat de ajuda, não verá mais as mensagens");
        NovatoChat[playerid] = 0;
     }
     return 1;
     }

    O comando oculta palavras ofensivas no chat noob, assim custando 10k do jogador (10,000).
    O comando /blocknoob bloqueia por minutos e o jogador que foi bloqueado perde uma quantia em dinheiro, como nas prints abaixos.
    Eu não fiz o comando eu peguei de uma GM e apenas editei algumas coisas.

    Uso do chat noob: 
    https://i.imgur.com/9uaoyD5.png

    Perdendo 10k por chingar no chat noob: (Precisa definir uma define sobre palavrão no seu gamemode para funcionar).
    https://i.imgur.com/Ov17Uec.png

    Mostrando o /blocknoob e a quantia perdida em dinheiro pelo o mal uso do comando:
    https://i.imgur.com/HDPK9ZC.png

    Apenas postei porquê vejo muita pessoas pedindo.

    EDIT's: A quantia perdida no /blocknoob deriva do tempo que você foi bloqueado/vai bloquear.
    A quantia perdida quando você chinga, você pode modificar do seu gosto. (http://prntscr.com/dvdc4w)
    Zeus_Kills
    Zeus_Kills
    --> Postador Iniciante
    --> Postador Iniciante


    Celular : 22222
    Mensagens : 105
    Moedas : 3133
    Data de inscrição : 14/05/2016
    Idade : 30

    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda Empty Re: Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda

    Mensagem por Zeus_Kills Dom 15 Jan 2017 - 18:35

    Boa mlk, já tinha rs, mas boa hasuh, vai ajudar bastante a galera ai!



    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda 4goryo
    Seja bem vindo a SSGAMERS seus lindos!
    Kai
    Kai
    --> Postador Médio
    --> Postador Médio


    Steam Steam : xwoondinho
    Celular : 64 92213192
    Mensagens : 381
    Moedas : 4464
    Data de inscrição : 20/03/2014
    Idade : 23

    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda Empty Re: Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda

    Mensagem por Kai Dom 15 Jan 2017 - 19:08

    Zeus_Kills escreveu:Boa mlk, já tinha rs, mas boa hasuh, vai ajudar bastante a galera ai!
    É nós Very Happy
    Stremmer_Scripter#0961
    Stremmer_Scripter#0961
    --> Postador Fanático
    --> Postador Fanático


    Celular : 17981120325
    Mensagens : 681
    Moedas : 2996
    Data de inscrição : 19/10/2019
    Idade : 28

    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda Empty Re: Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda

    Mensagem por Stremmer_Scripter#0961 Dom 2 Jan 2022 - 20:24

    eee da hora

    Conteúdo patrocinado


    Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda Empty Re: Comando Chat Noob, Bloquear Chat e Mostrar/Ocultar Chat Ajuda

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Dom 28 Abr 2024 - 1:32