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