Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
Здарова пацаны, у меня тут одна запара, вобщем мне нужно найти координаты x. y. z всех игроков в зоне стрима, как ни пробовал, не получается пока, решил тут у вас спросить.
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
-->> Бесконечный цикл
while true do wait(0)
for k, v in ipairs(getAllChars()) do
local coordinates = {getCharCoordinates(v)}
local getID = {sampGetPlayerIdByCharHandle(v)}
-->> X: coordinates[1]
-->> Y: coordinates[2]
-->> Z: coordinates[3]
-->> getID[1] - проверка на получение ID
-->> getID[2] - выводит ID
end
end
end
Здарова пацаны, у меня тут одна запара, вобщем мне нужно найти координаты x. y. z всех игроков в зоне стрима, как ни пробовал, не получается пока, решил тут у вас спросить.
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
-->> Бесконечный цикл
while true do wait(0)
for k, v in ipairs(getAllChars()) do
local coordinates = {getCharCoordinates(v)}
-->> X: coordinates[1]
-->> Y: coordinates[2]
-->> Z: coordinates[3]
end
end
end
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
-->> Бесконечный цикл
while true do wait(0)
for k, v in ipairs(getAllChars()) do
local coordinates = {getCharCoordinates(v)}
-->> X: coordinates[1]
-->> Y: coordinates[2]
-->> Z: coordinates[3]
end
end
end
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
-->> Бесконечный цикл
while true do wait(0)
for k, v in ipairs(getAllChars()) do
local coordinates = {getCharCoordinates(v)}
local getID = {sampGetPlayerIdByCharHandle(v)}
-->> X: coordinates[1]
-->> Y: coordinates[2]
-->> Z: coordinates[3]
-->> getID[1] - проверка на получение ID
-->> getID[2] - выводит ID
end
end
end