Fixing errors upon disconnecting in spawn protection

This commit is contained in:
Bleck 2019-08-08 21:43:02 -05:00 committed by Brandon Sturgeon
parent 24cc0ac4e6
commit ac4fb6f85e

View File

@ -49,6 +49,8 @@ end
-- Returns a given player to visible state
local function setPlayerVisible( ply )
if not isValidPlayer( ply ) then return end
ply:SetRenderMode( RENDERMODE_NORMAL )
ply:Fire( "alpha", 255, 0 )
end
@ -58,6 +60,8 @@ local function setPlayerNoCollide( ply )
end
local function setPlayerCollide( ply )
if not isValidPlayer( ply ) then return end
ply:SetCollisionGroup( COLLISION_GROUP_NONE )
end