- 44
- 3
- Версия MoonLoader
- .026-beta
Lua:
script_name("Sound Alert")
SE = require 'samp.events'
bass = require 'lib.bass'
function SE.onServerMessage(color, text)
if text:find('/n') or text:find('SMS:') or text:find('подвигайтесь') then
sound = bass.BASS_StreamCreateFile(false, "moonloader/sound.mp3", 0, 0, 0)
bass.BASS_ChannelSetAttribute(sound, BASS_ATTRIB_VOL, 1)
bass.BASS_ChannelPlay(sound, false)
end
end