- 67
- 8
- Версия SA-MP
-
- Любая
Не получает информацию переменная newmoney
Lua:
newmoney = 1
function ev.onServerMessage(color, text)
if settings.othersettings.music then
if text:find(u8:decode'(%w+_%w+) был доставлен в тюрьму для отбывания наказания') then
playRandomSound()
end
if text:match('%[Информация%] Вы заработали на происшествие $(.*)') then
money = text:match('Вы заработали на происшествие $(.*)')
newmoney = newmoney + money
sampAddChatMessage(newmoney ,-1)
end
end
end