mv isPlayerInList

update
rubin 2 years ago
parent cb4d651fe4
commit d47bf56fc2
  1. 26
      mafia-tools.lua

@ -600,19 +600,6 @@ request.handler = function(text)
mhcars = { time = 0, text = "00:00:00" },
ffixcar = { time = 0, text = "00:00:00" },
}
local isPlayerInList = function(sender)
local result = false
if config.data.list_block then
if config.data.list[sender] == nil then
result = true
end
else
if config.data.list[sender] ~= nil then
result = true
end
end
return result
end
for sender, sender_data in pairs(info["data"]) do
if isPlayerInList(sender) then
for key, v in pairs(sender_data) do
@ -1012,6 +999,19 @@ function getPlayerIdByPlayerName(name)
end
return result, id
end
function isPlayerInList(sender)
local result = false
if config.data.list_block then
if config.data.list[sender] == nil then
result = true
end
else
if config.data.list[sender] ~= nil then
result = true
end
end
return result
end
-->> UPDATE MODULE
function openURL(url, fpath, message_off)

Loading…
Cancel
Save