mirror of
https://github.com/CFC-Servers/cfc_spawn_protection.git
synced 2025-03-04 03:13:14 -05:00
Fixing errors upon disconnecting in spawn protection
This commit is contained in:
parent
24cc0ac4e6
commit
ac4fb6f85e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user