- 222
- 55
- Версия MoonLoader
- .026-beta
1:
act = false
act = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("bronik",arg)
while true do
wait(0)
end
end
function bronik(arg)
act = not act
armour = getCharArmour(PLAYER_PED)
if act and armour < 1 then
thr:run()
end
end
function thread_function()
wait(5000)
sampSendChat("/armour")
end
ПОЖАЛУЙСТА НЕ СМОТРИТЕ НА КРИВУЮ ТАБУЛЯЦИЮ!!!!
после ввода /bronik крашится скрипт
[ML] (error) autoarmour.lua: attempt to call a nil value
stack traceback:
[ML] (error) autoarmour.lua: Script died due to an error. (0DB65B04)
stack traceback:
[ML] (error) autoarmour.lua: Script died due to an error. (0DB65B04)