Aldeia RPG

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Suporte ao desenvolvimento de jogos


2 participantes

    [VXA-OS] Admin Prefixo

    Sudn
    Sudn
    Novato
    Novato


    Mensagens : 7
    Créditos : 0

     [VXA-OS] Admin Prefixo Empty [VXA-OS] Admin Prefixo

    Mensagem por Sudn Sex Fev 01, 2019 1:16 am

    How do I like this?


     [VXA-OS] Admin Prefixo XvpaUQih4lPygAAAABJRU5ErkJggg==


    Sorry for grammar, not good at speaking Portuguese.
    Thank you
    Valentine
    Valentine
    Administrador
    Administrador


    Medalhas :  [VXA-OS] Admin Prefixo ZgLkiRU
    Mensagens : 5336
    Créditos : 1163

     [VXA-OS] Admin Prefixo Empty Re: [VXA-OS] Admin Prefixo

    Mensagem por Valentine Sex Fev 01, 2019 8:42 am

    1) Go to the Scripts folder that is inside the Server folder
    2) Open the file handle_data.rb
    3) Replace the entire def handle_chat_message (lines 236 to 267) with this:
    Código:
    def handle_chat_message(client, buffer)
     message = buffer.read_string
     talk_type = buffer.read_byte
     name = buffer.read_string
     return if message.strip.empty?
     return if client.spawning?
     return if client.muted?
     client.antispam_time = Time.now + 0.5
     if message == '/who'
     whos_online(client)
     return
     elsif message.start_with?('/')
     if client.admin?
     admin_commands(client, message)
     return
     elsif client.moderator?
     moderator_commands(client, message)
     return
     end
     end
     prefix = client.admin? ? '[Admin]' : client.moderator? ? '[Mod]' : ''
     message = "#{prefix} #{client.name}: #{chat_filter(message)}"
     case talk_type
     when Constants::CHAT_MAP
     map_message(client.map_id, message, client.id)
     when Constants::CHAT_GLOBAL
     global_message(message)
     when Constants::CHAT_PARTY
     party_message(client, message)
     when Constants::CHAT_PRIVATE
     private_message(client, message, name)
     end
     end
    As you can see, I added the first line and changed the second line:
    Código:
    prefix = client.admin? ? '[Admin]' : client.moderator? ? '[Mod]' : ''
     message = "#{prefix} #{client.name}: #{chat_filter(message)}"
    Sudn
    Sudn
    Novato
    Novato


    Mensagens : 7
    Créditos : 0

     [VXA-OS] Admin Prefixo Empty Re: [VXA-OS] Admin Prefixo

    Mensagem por Sudn Sáb Fev 02, 2019 12:25 am

    Thank you Valentine!

    Conteúdo patrocinado


     [VXA-OS] Admin Prefixo Empty Re: [VXA-OS] Admin Prefixo

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Sex Abr 19, 2024 1:11 am