local as_action = require('moonloader').audiostream_state
local sampev = require('lib.samp.events')
function main()
while not isSampAvailable() do wait(100) end
dirMusic = loadAudioStream('moonloader/nevern.mp3')
wait(-1)
end
function sampev.onServerMessage(color, text)
if text:find('Неверный код!') and dirMusic ~= nil then
setAudioStreamState(dirMusic, as_action.PLAY)
setAudioStreamVolume(dirMusic, 50)
end
end