- 459
- 88
- Версия MoonLoader
- Другое
Lua:
function onReceiveRpc(id, bs)
if STATE then
if id == 73 then
raknetBitStreamIgnoreBits(bs, 64)
local len, text = raknetBitStreamReadInt32(bs), ""
text = raknetBitStreamReadString(bs, len)
if text:find("Drugs") then
ALLNarcoCollectedCount = ALLNarcoCollectedCount + tonumber(text:match("Drugs %+ (%d+)"))
end
end
for i = 1, #BLOCKEDRPCs do
if id == BLOCKEDRPCs[i] then
return false
end
end
end
end
function onReceivePacket(id)
if STATE and id >= 200 and id <= 211 then return false end
end
function SENDSpectatorSync(x, y, z)
local data = allocateMemory(18)
PUSSY = not PUSSY
setStructElement(data, 4, 2, PUSSY and 1024 or 0, true)
setStructFloatElement(data, 6, x, true)
setStructFloatElement(data, 10, y, true)
setStructFloatElement(data, 14, z, true)
sampSendSpectatorData(data)
freeMemory(data)
end