- Версия MoonLoader
- .025-beta
Просто вылетает
Lua:
function main()
if not isSampfuncsLoaded() then return end
if not isSampLoaded() then return end
wait(1000)
local memory = 0xBF + 0x00002042
memory = memory + 0x57
memory = memory + 0xD8 + 0x0C + 0x24
memory = memory + 0x5F
memory = memory + 0xBF + 0x00000000
memory = memory + 0xE9 + 0x00718D18
asm_jmp_hook(0x00718D12, memory, 1)
writeMemory(0x00718D17, 1, 0x90, 1)
memory = memory + 0xF
asm_jmp_hook(memory, 0x00718D18, 1)
while true do wait(0)
end
end
function asm_jmp_hook(offset, func, vp)
writeMemory(offset, 1, 0xE9, vp)
func = func - offset
fun = func- 5
offset = offset + 1
writeMemory(offset, 4, func, vp)
end