Guest User

Untitled

a guest
Jun 9th, 2015
199
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_chatcommand("alerta", {
  2. params = "<texto>",
  3. description = "Alerta todos os jogadores",
  4. privs = {server = true},
  5. func = function(administrador, texto_do_alerta)
  6. minetest.sound_play("alarme", {
  7. gain = 1.0,
  8. })
  9. minetest.chat_send_all(texto_do_alerta)
  10. return true
  11. end,
  12. })
RAW Paste Data