Тема: RakSAMP Lite
Показать сообщение отдельно

  #2  
Старый 14.04.2024, 19:36
vaguiners
Новичок
Регистрация: 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

 
Ответить с цитированием