Lua Анти Реклама VIP Chat || Arizona Role Play

SURVERS

Активный
Автор темы
139
32
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
  3. 0.3.7-R3
  4. 0.3.7-R4
  5. Любая
Анти Реклама VIP Chat || Arizona Role Play
Описание:

Отключает сообщение в чат с тэгом VIP ADV, тем самым в чате не будет видна реклама фармил.
Скрипт простой, но порой очень помогает, когда надоедает реклама в ВИП чате
Но при этом обычный текст в VIP чате будет.
Активация: /antiadv

AntiADVbySURVERS V2:
Отключает сообщение в чат с тэгом VIP ADV, тем самым в чате не будет видна реклама фармил. -> /antiadv
Так же можно отключить VIP-Chat но будет видна реклама -> /vchat
И последнее, можно отключить полностью вип чат -> /vipchat

 

Вложения

  • AntiADVbySURVERS.lua
    1 KB · Просмотры: 52
  • AntiADVbySURVERS V2.lua
    2.4 KB · Просмотры: 14
Последнее редактирование:
  • Нравится
Реакции: LIIKOJIOTA и хомяк553

MLycoris

На вид оружие массового семяизвержения
Проверенный
1,988
2,189
ооо да, ради одной функции добавлять сёр в чат (особенно при входе кайф), готов обмазываться таким каждый день
 
  • Нравится
  • Влюблен
Реакции: VanoKLR и Vespan

SURVERS

Активный
Автор темы
139
32
я всегда на своем сервере пишут с рекламой как и много людей
скрипт не очень если ты часто общаешься в вип чате
Может быть кому то, но по итогу нет рекламы, и вип чат работает (на основном сервере)
 

Вложения

  • Скриншот 06-07-2023 205524.jpg
    Скриншот 06-07-2023 205524.jpg
    172.5 KB · Просмотры: 100
  • Нравится
Реакции: nngromovv

VRush

https://t.me/vrushscript
2,416
1,197
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('antiadv', function(arg)
        act = not act
        sampAddChatMessage('antiadv: '..(act and "on" or "off"), -1)
    end)
    wait(-1)
end
require('samp.events').onServerMessage = function(_, text)
    return (act and not text:find('%[VIP ADV%] ') or true)
end
 
  • Вау
Реакции: Vespan

SURVERS

Активный
Автор темы
139
32
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('antiadv', function(arg)
        act = not act
        sampAddChatMessage('antiadv: '..(act and "on" or "off"), -1)
    end)
    wait(-1)
end
require('samp.events').onServerMessage = function(_, text)
    return (act and not text:find('%[VIP ADV%] ') or true)
end
Раз на то пошло:
Код:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('antiadv', function(arg) act = not act sampAddChatMessage('antiadv: '..(act and "on" or "off"), -1) end)
    wait(-1)
end
require('samp.events').onServerMessage = function(_, text) return (act and not text:find('%[VIP ADV%] ') or true) end
 
  • Bug
Реакции: MLycoris

VRush

https://t.me/vrushscript
2,416
1,197
Раз на то пошло:
Код:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('antiadv', function(arg) act = not act sampAddChatMessage('antiadv: '..(act and "on" or "off"), -1) end)
    wait(-1)
end
require('samp.events').onServerMessage = function(_, text) return (act and not text:find('%[VIP ADV%] ') or true) end
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('antiadv', function() act = not act sampAddChatMessage('antiadv: '..(act and "on" or "off"), -1) end)
    wait(-1)
end
require('samp.events').onServerMessage = function(_, text) return (act and not text:find('%[VIP ADV%] ') or true) end
 

SURVERS

Активный
Автор темы
139
32
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('antiadv', function() act = not act sampAddChatMessage('antiadv: '..(act and "on" or "off"), -1) end)
    wait(-1)
end
require('samp.events').onServerMessage = function(_, text) return (act and not text:find('%[VIP ADV%] ') or true) end
А чё тут изменилось? Я такой же код пару минут назад тебе отправил
 

legnd

Известный
1,573
683
нахуя вы к коду приебались, главное что работает