SF Plugin [ARZ] PacketLoss emulator. Обход античита

sazzas1978

Известный
Автор темы
121
121
Lua:
local ffi = require('ffi')
local state = false
ffi.cdef[[
    typedef void (__thiscall *ApplyNetworkSimulator)(void* CRakPeer_this, double maxSendBPS, unsigned short minExtraPing, unsigned short extraPingVariance);
]]
function main()
    repeat wait(0) until isSampAvailable()
    local applyNetworkSimulator = ffi.cast('ApplyNetworkSimulator', ffi.cast('void* ', sampGetRakclientFuncAddressByIndex(52)))
    sampRegisterChatCommand("pl", function()
        state = not state
        applyNetworkSimulator(ffi.cast('void*', sampGetRakclientInterface()), state and 6 * 100000 or 9999999, 0, 0)
        printStringNow(state and '~g~activated' or '~r~disabled', 1500)
    end)
    wait(-1)
end
Краткая луа версия

@Defuill обновляй
 
Последнее редактирование:

JotarBallas

Потрачен
166
32
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Вложения

  • 2024-03-24_15-48-19.png
    2024-03-24_15-48-19.png
    19 KB · Просмотры: 83
  • Bug
Реакции: Flide

romacaddy

Известный
Проверенный
234
206
Lua:
local ffi = require('ffi')
local state = false
ffi.cdef[[
    typedef void (__thiscall *ApplyNetworkSimulator)(void* CRakPeer_this, double maxSendBPS, unsigned short minExtraPing, unsigned short extraPingVariance);
]]
function main()
    repeat wait(0) until isSampAvailable()
    local applyNetworkSimulator = ffi.cast('ApplyNetworkSimulator', ffi.cast('void* ', sampGetRakclientFuncAddressByIndex(52)))
    sampRegisterChatCommand("pl", function()
        state = not state
        applyNetworkSimulator(ffi.cast('void*', sampGetRakclientInterface()), state and 6 * 100000 or 9999999, 0, 0)
        printStringNow(state and '~g~activated' or '~r~disabled', 1500)
    end)
    wait(-1)
end
Краткая луа версия

@Defuill обновляй
а есть чтобы 0 показывало?