local active = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
sampRegisterChatCommand('active', function()
active = not active
sampAddChatMessage(active and 'on' or 'off', -1)
end)
while true do
wait(666) -- задержка
if active then
sampProcessChatInput('/ruka')
wait(500) -- задержка перед вводом след команды
sampProcessChatInput('/golova')
wait(500)
sampProcessChatInput('/ruka')
wait(500)
sampProcessChatInput('/golova')
end
end
end