- 231
- 25
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
- Версия MoonLoader
- Другое
как добавить триггер tusamov к этому коду что бы он тепал сюда 1773.12, -1892.18, 13.55 ?
Код:
local actStatus,actStatus1 = false,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)
sampRegisterChatCommand("botgruz", function()
actStatus1 = not actStatus1
sampAddChatMessage(string.format("{00FF00} Bot Gruzchik {ff0077}%s", actStatus1 and "Enabled" or "Disabled"), -1)
end)
while true do
wait(1)
if actStatus then
setCharCoordinates(1, -105.25, 100.60, 3.12)
wait(100)
setCharCoordinates(1, -94.84, 76.43, 3.12)
wait(100)
setCharCoordinates(1, -86.68, 53.33, 50.12)
wait(100)
setCharCoordinates(1, -86.68, 53.33, 50.12)
wait(100)
setCharCoordinates(1, -49.19, 26.30, 50.52)
wait(1)
setCharCoordinates(1, -49.10, 26.39, 3.12)
wait(100)
setCharCoordinates(1, -105.25, 100.60, 3.12)
elseif actStatus1 then
setCharCoordinates(1, 2015.66, -1958.35, 12.40)
wait(100)
setCharCoordinates(1, 2014.44, -1981.39, 12.55)
wait(100)
setCharCoordinates(1, 2024.59, -1959.11, 50.39)
wait(100)
setCharCoordinates(1, 2012.10, -1989.15, 13.00)
wait(100)
end
end
end
Последнее редактирование: