Ишу

Анонимный

Участник
Автор темы
91
4
Скрипт чтобы удалял в чате
(Ник чела) выбил при обмене подарков (что выбил)
 

yufFKa

Активный
191
61
Код:
local sp  = require 'lib.samp.events'

razval = true

function sp.onServerMessage(color, text)
    if razval == true then
        if text:find('Удача улыбнулась игроку') and text:find('при обмене подарков и он выиграл') and not text:find('говорит') and not text:find('кричит') and not text:find('- |') then return false end
    end
end

function main()
    if not isSampfuncsLoaded() or not isSampLoaded() then return end
    while not isSampAvailable() do wait(100) end
    while true do
    wait(0)
    end
end
UPD. Обновили сообщение, я поменял на новое.
 

Вложения

  • 1.lua
    577 байт · Просмотры: 0
Последнее редактирование:

Анонимный

Участник
Автор темы
91
4
Код:
local sp  = require 'lib.samp.events'

razval = true

function sp.onServerMessage(color, text)
    if razval == true then
        if text:find('Удача улыбнулась игроку') and text:find('при обмене подарков и он выиграл') and not text:find('говорит') and not text:find('кричит') and not text:find('- |') then return false end
    end
end

function main()
    if not isSampfuncsLoaded() or not isSampLoaded() then return end
    while not isSampAvailable() do wait(100) end
    while true do
    wait(0)
    end
end
UPD. Обновили сообщение, я поменял на новое.
На код похуй главное чтобы не было хуйни в коде которая фпс жрёт