Dont ping when there are no players online (#24)
This commit is contained in:
parent
ed1788a1c1
commit
5e18db7ed7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user