Уведомление

Статус
В этой теме нельзя размещать новые ответы.

Dipload

Новичок
Автор темы
10
0
Привет ребят. Можно ли сделать скрипт, который выдаёт уведомление/воспроизводит звук, если мне в сампе кто-то написал смс, но в этот момент я стою в афк? Буду признателен, если можете кинуть хоть наброски как он должен выглядеть.
 

iXiW

Известный
29
16
Все библиотеки есть
Код:
[19:20:14.062415] (system)    Session started.
[19:20:14.063392] (debug)    Module handle: 5D000000

MoonLoader v.026.2-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[19:20:14.063392] (info)    Working directory: E:\Games\GTA SAMP wo ML\moonloader
[19:20:14.063392] (debug)    FP Control: 0009001F
[19:20:14.063392] (debug)    Game: GTA SA 1.0.0.0 US
[19:20:14.063392] (system)    Installing pre-game hooks...
[19:20:14.064396] (system)    Hooks installed.
[19:20:15.664883] (debug)    Initializing opcode handler table
[19:20:15.664883] (debug)    package.path = E:\Games\GTA SAMP wo ML\moonloader\lib\?.lua;E:\Games\GTA SAMP wo ML\moonloader\lib\?\init.lua;E:\Games\GTA SAMP wo ML\moonloader\?.lua;E:\Games\GTA SAMP wo ML\moonloader\?\init.lua;.\?.lua;E:\Games\GTA SAMP wo ML\moonloader\lib\?.luac;E:\Games\GTA SAMP wo ML\moonloader\lib\?\init.luac;E:\Games\GTA SAMP wo ML\moonloader\?.luac;E:\Games\GTA SAMP wo ML\moonloader\?\init.luac;.\?.luac
[19:20:15.664883] (debug)    package.cpath = E:\Games\GTA SAMP wo ML\moonloader\lib\?.dll;
[19:20:15.664883] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\AutoReboot.lua'...
[19:20:15.664883] (debug)    New script: 0A5AED94
[19:20:15.667891] (system)    ML-AutoReboot: Loaded successfully.
[19:20:15.667891] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\BufferCleaner.lua'...
[19:20:15.667891] (debug)    New script: 0C77F92C
[19:20:15.670899] (system)    BufferCleaner.lua: Loaded successfully.
[19:20:15.670899] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\CamHack.lua'...
[19:20:15.670899] (debug)    New script: 0C7831FC
[19:20:15.676914] (system)    CamHack: Loaded successfully.
[19:20:15.676914] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\cf.lua'...
[19:20:15.676914] (debug)    New script: 0C78450C
[19:20:15.690951] (system)    Revent RP Clicker: Loaded successfully.
[19:20:15.690951] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\cop_helper.lua'...
[19:20:15.691954] (debug)    New script: 0C7847AC
[19:20:15.715335] (system)    Cop Helper: Loaded successfully.
[19:20:15.715335] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\do.lua'...
[19:20:15.715335] (debug)    New script: 0C7867DC
[19:20:15.717037] (system)    do.lua: Loaded successfully.
[19:20:15.717037] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\doklad.lua'...
[19:20:15.717037] (debug)    New script: 0C79D4D4
[19:20:15.718679] (system)    doklad.lua: Loaded successfully.
[19:20:15.718679] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\FChecker.lua'...
[19:20:15.718679] (debug)    New script: 0C79D65C
[19:20:15.721882] (system)    Friends Checker: Loaded successfully.
[19:20:15.721882] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\HotKey.lua'...
[19:20:15.721882] (debug)    New script: 0C79D7E4
[19:20:15.723997] (system)    HotKey.lua: Loaded successfully.
[19:20:15.723997] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\imgui_simple_scoreboard2.3.lua'...
[19:20:15.723997] (debug)    New script: 0C79F974
[19:20:16.007072] (system)    ImGui Scoreboard: Loaded successfully.
[19:20:16.007072] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\leader.lua'...
[19:20:16.007072] (debug)    New script: 0C7AF5D4
[19:20:16.009101] (system)    Leader Helper v1.0: Loaded successfully.
[19:20:16.009101] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\n_helper.lua'...
[19:20:16.009101] (debug)    New script: 0C7B0764
[19:20:16.015091] (system)    n_helper.lua: Loaded successfully.
[19:20:16.015091] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\ping chart.lua'...
[19:20:16.015091] (debug)    New script: 0C7B8FB4
[19:20:16.021598] (system)    Ping Chart: Loaded successfully.
[19:20:16.021598] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\reload_all.lua'...
[19:20:16.021598] (debug)    New script: 0C7B8684
[19:20:16.023627] (system)    ML-ReloadAll: Loaded successfully.
[19:20:16.023627] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\RP target.lua'...
[19:20:16.023627] (debug)    New script: 0C7B8CA4
[19:20:16.025510] (system)    Player info: Loaded successfully.
[19:20:16.025510] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\SF Integration.lua'...
[19:20:16.025510] (debug)    New script: 0C7B8994
[19:20:16.028614] (system)    SF Integration: Loaded successfully.
[19:20:16.028614] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\SMSNotify.lua'...
[19:20:16.028614] (debug)    New script: 0C7B880C
[19:20:16.041647] (system)    SMSNotify.lua: Loaded successfully.
[19:20:16.041647] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\stamina.lua'...
[19:20:16.041647] (debug)    New script: 0C7B913C
[19:20:16.043650] (system)    stamina.lua: Loaded successfully.
[19:20:16.043650] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\SYard.lua'...
[19:20:16.043650] (debug)    New script: 0C7B84FC
[19:20:16.047661] (system)    NewEpo: Loaded successfully.
[19:20:16.047661] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\textdraw.lua'...
[19:20:16.047661] (debug)    New script: 0C7B8B1C
[19:20:16.049666] (system)    textdraw.lua: Loaded successfully.
[19:20:27.775888] (system)    Installing post-load hooks...
[19:20:27.776431] (system)    Hooks installed.
 

AnWu

https://t.me/anwublog
Всефорумный модератор
4,759
5,363
Все библиотеки есть
Код:
[19:20:14.062415] (system)    Session started.
[19:20:14.063392] (debug)    Module handle: 5D000000

MoonLoader v.026.2-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[19:20:14.063392] (info)    Working directory: E:\Games\GTA SAMP wo ML\moonloader
[19:20:14.063392] (debug)    FP Control: 0009001F
[19:20:14.063392] (debug)    Game: GTA SA 1.0.0.0 US
[19:20:14.063392] (system)    Installing pre-game hooks...
[19:20:14.064396] (system)    Hooks installed.
[19:20:15.664883] (debug)    Initializing opcode handler table
[19:20:15.664883] (debug)    package.path = E:\Games\GTA SAMP wo ML\moonloader\lib\?.lua;E:\Games\GTA SAMP wo ML\moonloader\lib\?\init.lua;E:\Games\GTA SAMP wo ML\moonloader\?.lua;E:\Games\GTA SAMP wo ML\moonloader\?\init.lua;.\?.lua;E:\Games\GTA SAMP wo ML\moonloader\lib\?.luac;E:\Games\GTA SAMP wo ML\moonloader\lib\?\init.luac;E:\Games\GTA SAMP wo ML\moonloader\?.luac;E:\Games\GTA SAMP wo ML\moonloader\?\init.luac;.\?.luac
[19:20:15.664883] (debug)    package.cpath = E:\Games\GTA SAMP wo ML\moonloader\lib\?.dll;
[19:20:15.664883] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\AutoReboot.lua'...
[19:20:15.664883] (debug)    New script: 0A5AED94
[19:20:15.667891] (system)    ML-AutoReboot: Loaded successfully.
[19:20:15.667891] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\BufferCleaner.lua'...
[19:20:15.667891] (debug)    New script: 0C77F92C
[19:20:15.670899] (system)    BufferCleaner.lua: Loaded successfully.
[19:20:15.670899] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\CamHack.lua'...
[19:20:15.670899] (debug)    New script: 0C7831FC
[19:20:15.676914] (system)    CamHack: Loaded successfully.
[19:20:15.676914] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\cf.lua'...
[19:20:15.676914] (debug)    New script: 0C78450C
[19:20:15.690951] (system)    Revent RP Clicker: Loaded successfully.
[19:20:15.690951] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\cop_helper.lua'...
[19:20:15.691954] (debug)    New script: 0C7847AC
[19:20:15.715335] (system)    Cop Helper: Loaded successfully.
[19:20:15.715335] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\do.lua'...
[19:20:15.715335] (debug)    New script: 0C7867DC
[19:20:15.717037] (system)    do.lua: Loaded successfully.
[19:20:15.717037] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\doklad.lua'...
[19:20:15.717037] (debug)    New script: 0C79D4D4
[19:20:15.718679] (system)    doklad.lua: Loaded successfully.
[19:20:15.718679] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\FChecker.lua'...
[19:20:15.718679] (debug)    New script: 0C79D65C
[19:20:15.721882] (system)    Friends Checker: Loaded successfully.
[19:20:15.721882] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\HotKey.lua'...
[19:20:15.721882] (debug)    New script: 0C79D7E4
[19:20:15.723997] (system)    HotKey.lua: Loaded successfully.
[19:20:15.723997] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\imgui_simple_scoreboard2.3.lua'...
[19:20:15.723997] (debug)    New script: 0C79F974
[19:20:16.007072] (system)    ImGui Scoreboard: Loaded successfully.
[19:20:16.007072] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\leader.lua'...
[19:20:16.007072] (debug)    New script: 0C7AF5D4
[19:20:16.009101] (system)    Leader Helper v1.0: Loaded successfully.
[19:20:16.009101] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\n_helper.lua'...
[19:20:16.009101] (debug)    New script: 0C7B0764
[19:20:16.015091] (system)    n_helper.lua: Loaded successfully.
[19:20:16.015091] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\ping chart.lua'...
[19:20:16.015091] (debug)    New script: 0C7B8FB4
[19:20:16.021598] (system)    Ping Chart: Loaded successfully.
[19:20:16.021598] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\reload_all.lua'...
[19:20:16.021598] (debug)    New script: 0C7B8684
[19:20:16.023627] (system)    ML-ReloadAll: Loaded successfully.
[19:20:16.023627] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\RP target.lua'...
[19:20:16.023627] (debug)    New script: 0C7B8CA4
[19:20:16.025510] (system)    Player info: Loaded successfully.
[19:20:16.025510] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\SF Integration.lua'...
[19:20:16.025510] (debug)    New script: 0C7B8994
[19:20:16.028614] (system)    SF Integration: Loaded successfully.
[19:20:16.028614] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\SMSNotify.lua'...
[19:20:16.028614] (debug)    New script: 0C7B880C
[19:20:16.041647] (system)    SMSNotify.lua: Loaded successfully.
[19:20:16.041647] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\stamina.lua'...
[19:20:16.041647] (debug)    New script: 0C7B913C
[19:20:16.043650] (system)    stamina.lua: Loaded successfully.
[19:20:16.043650] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\SYard.lua'...
[19:20:16.043650] (debug)    New script: 0C7B84FC
[19:20:16.047661] (system)    NewEpo: Loaded successfully.
[19:20:16.047661] (system)    Loading script 'E:\Games\GTA SAMP wo ML\moonloader\textdraw.lua'...
[19:20:16.047661] (debug)    New script: 0C7B8B1C
[19:20:16.049666] (system)    textdraw.lua: Loaded successfully.
[19:20:27.775888] (system)    Installing post-load hooks...
[19:20:27.776431] (system)    Hooks installed.
аж глаза заслезились при виде скорбоарда. по логу чисто все. скорее всего баг либы или типа того.
 

Dipload

Новичок
Автор темы
10
0
music.lua является скриптом, пишет что загружен, но не работает.
[20:10:57.743874] (system) Session started.
[20:10:57.743874] (debug) Module handle: 5E4A0000

MoonLoader v.026.2-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
Избранное - Lua - ASI - MoonLoader(https://www.blast.hk/moonloader/)

[20:10:57.743874] (info) Working directory: A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader
[20:10:57.743874] (debug) FP Control: 0009001F
[20:10:57.743874] (debug) Game: GTA SA 1.0.0.0 US
[20:10:57.743874] (system) Installing pre-game hooks...
[20:10:57.743874] (system) Hooks installed.
[20:10:58.436827] (debug) Initializing opcode handler table
[20:10:58.436827] (debug) package.path = A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?\init.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?\init.lua;.\?.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?.luac;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?\init.luac;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?.luac;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?\init.luac;.\?.luac
[20:10:58.436827] (debug) package.cpath = A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?.dll;
[20:10:58.437828] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\adblock.lua'...
[20:10:58.437828] (debug) New script: 0A336C84
[20:10:58.491892] (system) adblock.lua: Loaded successfully.
[20:10:58.491892] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\AutoReboot.lua'...
[20:10:58.491892] (debug) New script: 0A34C184
[20:10:58.496901] (system) ML-AutoReboot: Loaded successfully.
[20:10:58.496901] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\Mafia Helper.lua'...
[20:10:58.496901] (debug) New script: 0A34E31C
[20:10:58.506931] (system) Mafia Helper: Loaded successfully.
[20:10:58.506931] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\music.lua'...
[20:10:58.506931] (debug) New script: 0A34F6B4
[20:10:58.511935] (system) music.lua: Loaded successfully.
[20:10:58.514957] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\setWeather&Time.lua'...
[20:10:58.514957] (debug) New script: 0A351FAC
[20:10:58.519961] (system) setWeather&Time.lua: Loaded successfully.
[20:11:10.174132] (system) Installing post-load hooks...
[20:11:10.174132] (system) Hooks installed.
[20:12:14.860542] (script) ML-AutoReboot: Reloading "music.lua"...
[20:12:14.869603] (system) music.lua: Script terminated. (0A34F6B4)
[20:12:14.871596] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\music.lua'...
[20:12:14.871596] (debug) New script: 0A34F6B4
[20:12:14.889623] (system) music.lua: Loaded successfully.

аж глаза заслезились при виде скорбоарда. по логу чисто все. скорее всего баг либы или типа того.
Попробовав этот код, который даётся как пример в bass.lua
Код:
script_name("bass library test")

function main()
    if not isSampLoaded() then return end

    while not isSampAvailable() do
        wait(0)
    end

    local bass = require "lib.bass" -- загружаем модуль

    local radio = bass.BASS_StreamCreateFile(false, "moonloader/music.mp3", 0, 0, 0)
    bass.BASS_ChannelSetAttribute(radio, BASS_ATTRIB_VOL, 0.1) -- громкость
    bass.BASS_ChannelPlay(radio, false) -- воспроизвести

    wait(-1)
end
он у меня работал, и музыка включалась при заходе в игру, поэтому либ рабочий, проблема в коде какая то.
 
Последнее редактирование модератором:

Jason2222

Известный
180
3
music.lua является скриптом, пишет что загружен, но не работает.
[20:10:57.743874] (system) Session started.
[20:10:57.743874] (debug) Module handle: 5E4A0000

MoonLoader v.026.2-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
Избранное - Lua - ASI - MoonLoader(https://www.blast.hk/moonloader/)

[20:10:57.743874] (info) Working directory: A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader
[20:10:57.743874] (debug) FP Control: 0009001F
[20:10:57.743874] (debug) Game: GTA SA 1.0.0.0 US
[20:10:57.743874] (system) Installing pre-game hooks...
[20:10:57.743874] (system) Hooks installed.
[20:10:58.436827] (debug) Initializing opcode handler table
[20:10:58.436827] (debug) package.path = A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?\init.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?\init.lua;.\?.lua;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?.luac;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?\init.luac;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?.luac;A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\?\init.luac;.\?.luac
[20:10:58.436827] (debug) package.cpath = A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\lib\?.dll;
[20:10:58.437828] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\adblock.lua'...
[20:10:58.437828] (debug) New script: 0A336C84
[20:10:58.491892] (system) adblock.lua: Loaded successfully.
[20:10:58.491892] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\AutoReboot.lua'...
[20:10:58.491892] (debug) New script: 0A34C184
[20:10:58.496901] (system) ML-AutoReboot: Loaded successfully.
[20:10:58.496901] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\Mafia Helper.lua'...
[20:10:58.496901] (debug) New script: 0A34E31C
[20:10:58.506931] (system) Mafia Helper: Loaded successfully.
[20:10:58.506931] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\music.lua'...
[20:10:58.506931] (debug) New script: 0A34F6B4
[20:10:58.511935] (system) music.lua: Loaded successfully.
[20:10:58.514957] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\setWeather&Time.lua'...
[20:10:58.514957] (debug) New script: 0A351FAC
[20:10:58.519961] (system) setWeather&Time.lua: Loaded successfully.
[20:11:10.174132] (system) Installing post-load hooks...
[20:11:10.174132] (system) Hooks installed.
[20:12:14.860542] (script) ML-AutoReboot: Reloading "music.lua"...
[20:12:14.869603] (system) music.lua: Script terminated. (0A34F6B4)
[20:12:14.871596] (system) Loading script 'A:\GTA San Andreas MultiPlayer\GTA San Andreas MultiPlayer\moonloader\music.lua'...
[20:12:14.871596] (debug) New script: 0A34F6B4
[20:12:14.889623] (system) music.lua: Loaded successfully.


Попробовав этот код, который даётся как пример в bass.lua
Код:
script_name("bass library test")

function main()
    if not isSampLoaded() then return end

    while not isSampAvailable() do
        wait(0)
    end

    local bass = require "lib.bass" -- загружаем модуль

    local radio = bass.BASS_StreamCreateFile(false, "moonloader/music.mp3", 0, 0, 0)
    bass.BASS_ChannelSetAttribute(radio, BASS_ATTRIB_VOL, 0.1) -- громкость
    bass.BASS_ChannelPlay(radio, false) -- воспроизвести

    wait(-1)
end
он у меня работал, и музыка включалась при заходе в игру, поэтому либ рабочий, проблема в коде какая то.
у тебя получилось потом? Просто поиск и воспроизведение нужно, тоже не получается.
 
Статус
В этой теме нельзя размещать новые ответы.