- 1,354
- 212
Lua:
script_name("OffAmulet")
script_author("Morse")
require "lib.moonloader"
require "lib.sampfuncs"
local offam = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage('{1E90FF}[OffAmulet byMorse] {E6E6FA}Загружен! Команда - {32CD32}/offam', -1)
sampRegisterChatCommand('offam', offam)
while true do wait(0)
if offam then
list = {1276}
tbl = getAllObjects()
for k,v in ipairs(tbl) do
if doesObjectExist(v) then
for _,z in ipairs(list) do
if getObjectModel(v) == z then
setObjectVisible(v, true)
end
end
end
end
else
list = {1276}
tbl = getAllObjects()
for k,v in ipairs(tbl) do
if doesObjectExist(v) then
for _,z in ipairs(list) do
if getObjectModel(v) == z then
setObjectVisible(v, false)
end
end
end
end
end
end
end
function offam()
offam = not offam
end