- 231
- 25
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Как их совместить что бы работали?:
local actStatus = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("botferma", function()
actStatus = not actStatus
sampAddChatMessage(string.format("{00FF00} Bot Ferma {ff0077}%s", actStatus and "Enabled" or "Disabled"), -1)
end)
while true do
wait(1)
if actStatus then
setCharCoordinates(1, -105.25, 100.60, 3.12)
wait(500)
setCharCoordinates(1, -94.84, 76.43, 3.12)
wait(500)
setCharCoordinates(1, -86.68, 53.33, 3.12)
wait{500}
setCharCoordinates(1, -86.68, 53.33, 3.12)
wait{500}
setCharCoordinates(1, -49.19, 26.30, 3.122)
wait{1}
setCharCoordinates(1, -105.25, 100.60, 3.12)
end
end
end
local actStatus = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("botgruz", function()
actStatus = not actStatus
sampAddChatMessage(string.format("{00FF00} Bot Gruzchik {ff0077}%s", actStatus and "Enabled" or "Disabled"), -1)
end)
while true do
wait(1)
if actStatus then
setCharCoordinates(1, 2015.66, -1958.35, 12.40)
wait(1000)
setCharCoordinates{1, 2014.44, -1981.39, 13.55)
wait{1000}
setCharCoordinates(1, 2012.10, -1989.15, 13.00)
wait(1000)
end
end
end