Dont ping when there are no players online (#24)

This commit is contained in:
Redox 2023-07-29 02:56:34 +02:00 committed by GitHub
parent ed1788a1c1
commit 5e18db7ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ local players = {}
local unreliable = true
local function ping( ply )
if player.GetCount() == 0 then return end
net.Start( "CFC_DisconnectInterface_Ping", unreliable )
net.Send( ply or players )
end