- 83
- 5
- Версия MoonLoader
- .026-beta
Lua:
local q = require 'samp.events'
local CAPTURE_TYPE = 4
function q.onServerMessage(color, msg)
if msg:find('Не флуди') and activated then
return false
end
end
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('capt',
function(i)
CAPTURE_TYPE = tonumber(i);
printString('/capture '..CAPTURE_TYPE, 500)
activated = not activated
end)
wait(-1)
end
function q.onShowTextDraw(id)
if id == 3 and activated then
lua_thread.create(function()
--sampSendChat('/capture '..CAPTURE_TYPE)
_, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
wait(999)
for i=0, 2 do
sampSendChat('/capture '..CAPTURE_TYPE)
wait(30)
end
end)
end
end
Как сделать чтобы включалось сочетанием клавший X + B?