Isto é uma pré-visualização de um tema em Hitskin.com
Instalar o tema • Voltar para a ficha do tema
[VXA-OS] Admin Prefixo
2 participantes
Página 1 de 1
[VXA-OS] Admin Prefixo
How do I like this?
Sorry for grammar, not good at speaking Portuguese.
Thank you
Sorry for grammar, not good at speaking Portuguese.
Thank you
Sudn- Novato
- Mensagens : 7
Créditos : 0
Re: [VXA-OS] Admin Prefixo
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:
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
- Código:
prefix = client.admin? ? '[Admin]' : client.moderator? ? '[Mod]' : ''
message = "#{prefix} #{client.name}: #{chat_filter(message)}"
Tópicos semelhantes
» Server Admin By ASB
» Correr só se for Admin
» NETPLAY 4.9 ADMIN PAINEL
» Mensagem de Admin alteração
» [NPM3]comandos de admin
» Correr só se for Admin
» NETPLAY 4.9 ADMIN PAINEL
» Mensagem de Admin alteração
» [NPM3]comandos de admin
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos