Переместить/скрыть сообщение heeelp

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

Sakura San

Активный
Автор темы
134
89
Версия SA-MP
  1. Любая
Ищу любые способы как можно переместить/убрать/скрыть в сф консоль(1 и 3 предпочтительнее) эти клиентские сообщения которые создает SF плагин. Пытался PlusChat`ом, но он их не видит. Chat2Popup тоже не подходит.
1598021669554.png

upd. Додумался пока только заполнить пустотой байты через hex редактор, но это никуда не годится. Реквестирую другие способы.
1598027826038.png

1598027680166.png
 
Последнее редактирование:
Решение
Lua:
require('lib.moonloader')
require('lib.sampfuncs')

local memory = require('memory')

function main()
  if not isSampLoaded() or not isSampfuncsLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
    wait(0)
        local text, prefix, color, pcolor = sampGetChatString(99)
        if text == 'GMcar off' or text == 'GMcar on' then
            deleteString(99)
            sampfuncsLog(script.this.name..": "..text)
        end
  end
end

function deleteString(id)
   memory.fill(sampGetChatInfoPtr() + 306 + id * 252, 0, 252)
   memory.write(sampGetChatInfoPtr() + 0x63DA, 1, 1)
end

Albertio

Attention! Thanks for your attention.
877
702
Lua:
require('lib.moonloader')
require('lib.sampfuncs')

local memory = require('memory')

function main()
  if not isSampLoaded() or not isSampfuncsLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
    wait(0)
        local text, prefix, color, pcolor = sampGetChatString(99)
        if text == 'GMcar off' or text == 'GMcar on' then
            deleteString(99)
            sampfuncsLog(script.this.name..": "..text)
        end
  end
end

function deleteString(id)
   memory.fill(sampGetChatInfoPtr() + 306 + id * 252, 0, 252)
   memory.write(sampGetChatInfoPtr() + 0x63DA, 1, 1)
end
 
  • Нравится
Реакции: Sakura San

Sakura San

Активный
Автор темы
134
89
Lua:
require('lib.moonloader')
require('lib.sampfuncs')

local memory = require('memory')

function main()
  if not isSampLoaded() or not isSampfuncsLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
    wait(0)
        local text, prefix, color, pcolor = sampGetChatString(99)
        if text == 'GMcar off' or text == 'GMcar on' then
            deleteString(99)
            sampfuncsLog(script.this.name..": "..text)
        end
  end
end

function deleteString(id)
   memory.fill(sampGetChatInfoPtr() + 306 + id * 252, 0, 252)
   memory.write(sampGetChatInfoPtr() + 0x63DA, 1, 1)
end
Храни тебя господи, а можно еще вот эту пустоту как-то убрать?
1598029846633.png
 

K.Intel

Участник
53
4
А как таким образом убрать несколько подобных смс?
Типо продолжать цепочку?
Lua:
if text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' or text == 'text' then
 
Статус
В этой теме нельзя размещать новые ответы.