- 9
- 1
Неинформативное название темы
- Версия MoonLoader
- Другое
Код:
local status = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('status', function()
status = not status -- переключаем статус скрипта, если была false станет true и наоборот
sampAddChatMessage(status and "Включен" or "Выключен", -1) -- в чат напишет значение переменной "status"
end)
while true do wait(0)
if status then
if sampTextdrawIsExists(2100) then
setVirtualKeyDown(18, true) -- зажатие 87 клавиши (W)
wait(500) -- задержка на секунду
setVirtualKeyDown(18, false) -- отпускание 87 клавиши (W)
end
end
end