Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_chatcommand("alerta", {
- params = "<texto>",
- description = "Alerta todos os jogadores",
- privs = {server = true},
- func = function(administrador, texto_do_alerta)
- minetest.sound_play("alarme", {
- gain = 1.0,
- })
- minetest.chat_send_all(texto_do_alerta)
- return true
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement