- 61
- 3
Lua:
require 'lib.moonloader'
local sampev = require 'samp.events'
local key = require 'vkeys'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("Lovla Helper", -1)
sampRegisterChatCommand('autoalt', AutoAlt)
AutoAltStatus = false
end
function AutoAlt(parm)
if AutoAltStatus then
AutoAltStatus = false
sampAddChatMessage("{ffffff}AutoAlt {F51111}OFF", -1)
else
AutoAltStatus = true
sampAddChatMessage("{ffffff}AutoAlt {33EA0D}ON", -1)
end
end
function sampev.onDisplayGameText(style, time, text)
if AutoAltStatus and text:find('ку') or text:find('куку') then
sampAddChatMessage('test code', -1)
end
end