
14.04.2024, 19:36
|
|
Новичок
Регистрация: 08.11.2016
Сообщений: 12
С нами:
5005812
Репутация:
53
|
|
Lua:
[CODE]
newTask
(
function
(
)
while
true
do
wait
(
100
)
local
closestPlayer
,
closestDistance
=
nil
,
math
.
huge
local
botPosX
,
botPosY
=
getBotPosition
(
)
for
id
,
player
in
pairs
(
getAllPlayers
(
)
)
do
if
id
~=
getBotId
(
)
and
player
.
exist
and
player
.
nick
~=
"Mato_Rindo"
then
local
distance
=
getDistanceBetweenCoords3d
(
player
.
position
.
x
,
player
.
position
.
y
,
player
.
position
.
z
,
getBotPosition
(
)
)
if
distance
|
|
|