mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
fix IsBot
This commit is contained in:
parent
1ad34a0635
commit
48da685567
|
@ -58,7 +58,9 @@ end
|
|||
local function validLogAndPlayers(players)
|
||||
if (logDisable()) then return false end
|
||||
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 (!ply:IsPlayer()) then return false end
|
||||
if (!ply:IsBot() && !gmInte.config.logBotActions) then return false end
|
||||
end
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue
Block a user