- 55
- 41
- Версия MoonLoader
- .026-beta
Привет всем. Вот делаю телепорт по координатам и при перезагрузке скриптов он автоматом начинает летать по точкам. Хотел сделать активацию по команде, но что-то не получается. В чём мой косяк? ( тапками не бейте, мой первый скрипт )
Lua:
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("teleport_1", teleport_1)
while true do
wait(0)
end
end
function teleport_1()
setCharCoordinates(PLAYER_PED, -340.69372558594, 2565.3869628906, 38.344158172607)
wait(3000)
setCharCoordinates(PLAYER_PED, -339.91656494141, 2553.7465820313, 39.0368938446045)
wait(3000)
setCharCoordinates(PLAYER_PED, -327.34780883789, 2570.6611328125, 39.038842010498)
wait(3000)
setCharCoordinates(PLAYER_PED, -313.79837036133, 2566.9663085938, 38.674176025391)
wait(3000)
setCharCoordinates(PLAYER_PED, -322.69296264648, 2554.1574707031, 38.604168701172)
wait(3000)
setCharCoordinates(PLAYER_PED, -303.16961669922, 2552.4831542969, 39.0393238067627)
wait(3000)
setCharCoordinates(PLAYER_PED, -298.69775390625, 2565.4074707031, 39.0413150787354)
wait(3000)
setCharCoordinates(PLAYER_PED, -289.33142089844, 2548.7001953125, 39.0341548919678)
wait(3000)
setCharCoordinates(PLAYER_PED, -279.67108154297, 2554.4819335938, 38.0987537384033)
wait(3000)
setCharCoordinates(PLAYER_PED, -236.06137084961, 2540.5209960938, 35.0765377044678)
wait(3000)
setCharCoordinates(PLAYER_PED, -216.47792053223, 2528.1459960938, 35.007633972168)
wait(3000)
setCharCoordinates(PLAYER_PED, -197.69641113281, 2529.9606933594, 34.0929321289063)
wait(3000)
setCharCoordinates(PLAYER_PED, -193.0030670166, 2551.45703125, 35.0392433166504)
wait(3000)
setCharCoordinates(PLAYER_PED, -187.23539733887, 2539.3657226563, 35.0814781188965)
wait(3000)
setCharCoordinates(PLAYER_PED, -218.30676269531, 2481.4018554688, 30.0521137237549)
wait(3000)
setCharCoordinates(PLAYER_PED, -222.65185546875, 2495.9533691406, 30.0521137237549)
wait(3000)
setCharCoordinates(PLAYER_PED, -236.78421020508, 2492.1713867188, 32.0782157897949)
wait(3000)
setCharCoordinates(PLAYER_PED, -245.34184265137, 2501.2919921875, 32.0840866088867)
wait(3000)
setCharCoordinates(PLAYER_PED, -268.86877441406, 2505.1750488281, 35.031015777588)
wait(3000)
end
lua_thread.create(teleport_1)