- 23
- 0
- Версия SA-MP
-
- 0.3.7 (R1)
Сделал скрипт и не работает активация может что то пропустил подскажите пж
Код:
local event = require('lib.samp.events')
stop = 0
started = 0
prinato = 0
active_report = 0
active_report2 = 0
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("{FF0000}[AutoForm] {ffffff} {00FFFF} Script uspeshno actived!", -1)
sampAddChatMessage("{FF0000}[AutoForm] {ffffff} {00FFFF} Avtor: Matteo !", -1)
sampAddChatMessage("{FF0000}[AutoForm] {ffffff} {00FFFF} Activatishn: G !", -1)
repeat wait(0) until isSampAvailable()
while true do
wait(0)
if isKeyDown(71) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then
while isKeyDown(71) do wait(0) end
if(active_report == 2) then
sampSendChat("/"..cmd.." "..paramssss)
status("true", 1)
sampSendChat("/a [Form] +")
active_report2 = 1
end
end
end
end
Код могу дальше кинуть при потребностиСделал скрипт и не работает активация может что то пропустил подскажите пж
Код:local event = require('lib.samp.events') stop = 0 started = 0 prinato = 0 active_report = 0 active_report2 = 0 function main() if not isSampLoaded() or not isSampfuncsLoaded() then return end while not isSampAvailable() do wait(100) end sampAddChatMessage("{FF0000}[AutoForm] {ffffff} {00FFFF} Script uspeshno actived!", -1) sampAddChatMessage("{FF0000}[AutoForm] {ffffff} {00FFFF} Avtor: Matteo !", -1) sampAddChatMessage("{FF0000}[AutoForm] {ffffff} {00FFFF} Activatishn: G !", -1) repeat wait(0) until isSampAvailable() while true do wait(0) if isKeyDown(71) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then while isKeyDown(71) do wait(0) end if(active_report == 2) then sampSendChat("/"..cmd.." "..paramssss) status("true", 1) sampSendChat("/a [Form] +") active_report2 = 1 end end end end