|
|
|
@ -2191,6 +2191,10 @@ function loadEvents() |
|
|
|
|
setClipboardText("https://colorscheme.ru/color-converter.html") |
|
|
|
|
return false |
|
|
|
|
end |
|
|
|
|
if params:lower() == " users" then |
|
|
|
|
showUsers() |
|
|
|
|
return false |
|
|
|
|
end |
|
|
|
|
if params:lower():find(" mon (%d+)") then |
|
|
|
|
local id = params:lower():match(" mon (%d+)") |
|
|
|
|
return { |
|
|
|
@ -3118,7 +3122,8 @@ function transponder() |
|
|
|
|
id = myid, |
|
|
|
|
paraid = pair_mode_id, |
|
|
|
|
timer = timer, |
|
|
|
|
tmonitor = inifiles.tmonitor |
|
|
|
|
tmonitor = inifiles.tmonitor, |
|
|
|
|
version = inifiles.version |
|
|
|
|
}, |
|
|
|
|
solo_message = solo_message_send |
|
|
|
|
} |
|
|
|
@ -3182,8 +3187,6 @@ function transponder() |
|
|
|
|
response_timestamp = info.timestamp |
|
|
|
|
if info.base ~= nil then |
|
|
|
|
transponder_solo_message(info) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base = info.base |
|
|
|
|
error_message('2', '') |
|
|
|
|
local minKD = 1000000 |
|
|
|
@ -3556,6 +3559,22 @@ function split(str, delim, plain) |
|
|
|
|
return tokens |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function showUsers() |
|
|
|
|
local dialogText = 'Имя[ID] AFK\tВерсия скрипта\n' |
|
|
|
|
local trucker_count = 0 |
|
|
|
|
local _, myid = sampGetPlayerIdByCharHandle(PLAYER_PED) |
|
|
|
|
for k,v in pairs(base) do |
|
|
|
|
if v.pair_mode_name ~= nil and v.is_truck ~= nil and v.gruz ~= nil and v.skill ~= nil and v.id ~= nil and v.paraid ~= nil and v.timer ~= nil and v.tmonitor ~= nil then |
|
|
|
|
if (sampIsPlayerConnected(v.id) or myid == v.id) and sampGetPlayerNickname(v.id) == k then |
|
|
|
|
trucker_count = trucker_count + 1 |
|
|
|
|
local afk = math.ceil(msk_timestamp - v.timestamp) |
|
|
|
|
dialogText = string.format('%s%s[%s] %s\t%s\n', dialogText, k, v.id, (afk > 10 and '[AFK: '..afk..']' or ''), (v.version ~= nil and v.version or "Неизвестно")) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
sampShowDialog(0, 'Дальнобойщики со скриптом в сети: '..trucker_count, (#dialogText == 0 and 'Список пуст' or dialogText), 'Выбрать', 'Закрыть', 5) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function showTruckers() |
|
|
|
|
local dialogText = 'Имя[ID] AFK\tСкилл / Ранг\tФура / Груз\tНапарник\n' |
|
|
|
|
local trucker_count = 0 |
|
|
|
|