- 156
- 16
- Версия MoonLoader
- .026-beta
Данные не обновляются, постоянно выводит пинг 0..
Lua:
function qwer()
while true do wait(0)
local peds = getAllChars()
for _, v in pairs(peds) do
local result, id = sampGetPlayerIdByCharHandle(v)
if result and id ~= sampGetPlayerIdByCharHandle(PLAYER_PED) then
local _, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
if myid ~= id then
local ping = sampGetPlayerPing(id)
local names = sampGetPlayerNickname(id)
emul_rpc('onSetPlayerName', { id, names .. ' Пинг: ' .. ping, true })
end
end
end
end
end