- Версия SA-MP
-
- 0.3.7 (R1)
Я написал скрипт чтобы я тепался по координатам, вожу команду /botask но нечего не происходит. Помогите поправить код
local actStatus = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("arena", function()
actStatus = not actStatus
sampAddChatMessage(string.format("botask | %s", actStatus and "ON" or "OFF"), -1)
end)
while true do
wait(0)
if actStatus then
setCharCoordinates(1, -105.25, 100.60, 3.12)
wait(1)
setCharCoordinates(1, -94.84, 76.43, 3.12)
wait(1)
setCharCoordinates(1, -86.68, 53.33, 3.12)
wait(1)
setCharCoordinates(1, -86.68, 53.33, 3.12)
wait(10)
setCharCoordinates(1, -49.19, 26.30, 3.122)
end
end
end
local actStatus = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("arena", function()
actStatus = not actStatus
sampAddChatMessage(string.format("botask | %s", actStatus and "ON" or "OFF"), -1)
end)
while true do
wait(0)
if actStatus then
setCharCoordinates(1, -105.25, 100.60, 3.12)
wait(1)
setCharCoordinates(1, -94.84, 76.43, 3.12)
wait(1)
setCharCoordinates(1, -86.68, 53.33, 3.12)
wait(1)
setCharCoordinates(1, -86.68, 53.33, 3.12)
wait(10)
setCharCoordinates(1, -49.19, 26.30, 3.122)
end
end
end