mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 05:07:34 +00:00
fix IsBot
This commit is contained in:
parent
1ad34a0635
commit
48da685567
|
@ -58,7 +58,9 @@ end
|
||||||
local function validLogAndPlayers(players)
|
local function validLogAndPlayers(players)
|
||||||
if (logDisable()) then return false end
|
if (logDisable()) then return false end
|
||||||
for _, ply in pairs(players) do
|
for _, ply in pairs(players) do
|
||||||
|
// return if not valid, player or bot and bots logs are disabled
|
||||||
if (!IsValid(ply)) then return false end
|
if (!IsValid(ply)) then return false end
|
||||||
|
if (!ply:IsPlayer()) then return false end
|
||||||
if (!ply:IsBot() && !gmInte.config.logBotActions) then return false end
|
if (!ply:IsBot() && !gmInte.config.logBotActions) then return false end
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user