- Версия SA-MP
-
- Любая
нашёл у одного парня код, но он не работает, скрипты ML не высвечиваются в консоле SF. Как пофиксить это?
код:
local part1 =
[[
{c0c0c0}
{fa9746}[ML] {c0c0c0} Session started.
[ML]
MoonLoader v.026.5-beta loaded.
[ML] Developers: FYP, hnnssy, EvgeN 1137
[ML] Copyright (c) 2016, BlastHack Team
[ML] https://www.blast.hk/moonloader/
[ML] {a9eff5}(info) {c0c0c0}Working directory: {dir}
[ML] (system) Installing pre-game hooks...
[ML] (system) Hooks installed.
[ML] (system) fogdist.lua: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\keylog.lua'...
[ML] (system) keylog.lua: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\logo.lua'...
[ML] (system) New Logo by Ambient Mods and VovaS Sripts : Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\money_separator.lua'...
[ML] (system) money_separator.lua: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\reload_all.lua'...
[ML] (system) ML-ReloadAll: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\SF Integration (2).lua'...
[ML] (system) SF Integration: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\test.lua'...
[ML] (system) New script: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\timecyc-editor.lua'...
[ML] (system) timecyc-24h-editor: Loaded successfully.
[ML] (system) Central Cleaner(FINAL): Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\check-moonloader-updates.lua'...
[ML] (system) Check MoonLoader Updates: Loaded successfully.
[ML] (system) Loading script 'C:\games\fixed gta\moonloader\fakeSFcommands (1).lua'...]]
local part2 = [[
{c0c0c0}[ML] {fa9746}(system) {e0e0e0}Installing post-load hooks...
{c0c0c0}[ML] {fa9746}(system) {e0e0e0}Hooks installed.
Direct3DDevice9 hook installed.
Hook "SAMP: RakPeer::HandleRPCPacket" installed.
Initializing SAMP data...
Info initialized.
Pools initialized.
Player pool initialized.
Vehicle pool initialized.
Chat initialized.
Input initialized.
Death list initialized.
Dialog initialized.
Misc data initialized.
Scoreboard initialized.
RakNet initialized.
SAMPFUNCS v5.4.1-final rel.21 (SA-MP 0.3.7-R1) completely loaded!]]
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('dir', function()
sampAddChatMessage(getWorkingDirectory(), -1)
end)
while true do
wait(0)
if isSampfuncsConsoleActive() then
if wasKeyPressed(49) or wasKeyPressed(82) and isKeyDown(17) then
wait(100)
runSampfuncsConsoleCommand('clear')
sampfuncsLog(part1:gsub('{dir}', getWorkingDirectory()))
for i = 1, #scripts do
sampfuncsLog(string.gsub("{c0c0c0}[ML] {fa9746}(system) {c0c0c0}Loading script '{dir}\\"..scripts[i]..".lua'...", '{dir}', getWorkingDirectory()))
sampfuncsLog('{c0c0c0}[ML] {fa9746}(system) {e0e0e0}'..scripts[i]..': {c0c0c0}Loaded successfully.')
end
sampfuncsLog(part2:gsub('{dir}', getWorkingDirectory()))
end
end
end
end