- 2
- 0
- Версия MoonLoader
- .027.0-preview
hello, i wanna help with this script.
When i reach first checkpoint (Coordinates) car stoped how i can make to reaching "step by step" coord to coord and repeat all again?
what to do ? i searching but i cant find, im not coder i try to learn
When i reach first checkpoint (Coordinates) car stoped how i can make to reaching "step by step" coord to coord and repeat all again?
123:
script_name('test')
script_author('headcliff')
script_moonloader(026)
local ScriptState = false
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage('{FB7B1F}[test]{FFFFFF}: Скрипт включен/перезагружен.', -1)
sampRegisterChatCommand('test', ChangeScriptState)
while true do
wait(0)
if ScriptState then
taskCarDriveToCoord(PLAYER_PED, -1, 581.9133,-1723.7729,13.2408, 15, 2, null, 4)
taskCarDriveToCoord(PLAYER_PED, -1, 679.1086,-1745.6455,13.1916, 15, 2, null, 4)
taskCarDriveToCoord(PLAYER_PED, -1, 741.8875,-1763.4609,13.2531, 15, 2, null, 4)
taskCarDriveToCoord(PLAYER_PED, -1, 756.3154,-1721.0554,7.7801, 15, 2, null, 4)
end
end
end
function ChangeScriptState()
if isCharSittingInAnyCar(PLAYER_PED) then
ScriptState = not ScriptState
if ScriptState then
sampAddChatMessage('{FB7B1F}[test]{FFFFFF}: Скрипт активирован.', -1)
else
sampAddChatMessage('{FB7B1F}[test]{FFFFFF}: Скрипт деактивирован.', -1)
end
else
sampAddChatMessage('{FB7B1F}[test]{FFFFFF}: Сядьте в машину.', -1)
end
end
what to do ? i searching but i cant find, im not coder i try to learn
Последнее редактирование: