- 158
- 19
Хотел сделать 1 скрипт - нарко с авто сбивом
1 проблема - анимация безконечно активируеться
2 проблема - я не знаю как сделать чтоб оно нажимало ентер в конце (чтоб убрать анимку)
Вот код: (на основе BarjBind)
script_author("-")
script_name("-")
require "lib.moonloader"
local keys = require "vkeys"
local tag = "{FFD700}Narko+Sbiv Loaded"
local main_color = 0x0000FF
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("" .. tag, main_color)
while true do
wait(0)
if isKeyDown(VK_Z) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() and isKeyJustPressed(VK_X) then sampSendChat("/lock")
while true do
wait(0)
sampSendChat("/anim 3")
end
end
end
end
1 проблема - анимация безконечно активируеться
2 проблема - я не знаю как сделать чтоб оно нажимало ентер в конце (чтоб убрать анимку)
Вот код: (на основе BarjBind)
script_author("-")
script_name("-")
require "lib.moonloader"
local keys = require "vkeys"
local tag = "{FFD700}Narko+Sbiv Loaded"
local main_color = 0x0000FF
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("" .. tag, main_color)
while true do
wait(0)
if isKeyDown(VK_Z) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() and isKeyJustPressed(VK_X) then sampSendChat("/lock")
while true do
wait(0)
sampSendChat("/anim 3")
end
end
end
end