Update sv_spawn_protection.lua

Used alternative method of switching players weapons
This commit is contained in:
Deconkle 2018-09-02 20:59:52 -05:00 committed by GitHub
parent 5377c45fbb
commit c9e33fcd21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,8 +158,10 @@ local function setSpawnProtectionForPvpSpawn( ply )
if playerSpawnedAtEnemySpawnPoint( ply ) then return end
ply:Give("weapon_physgun")
ply:SelectWeapon("weapon_physgun")
timer.Simple(0, function()
ply:Give("weapon_physgun")
ply:SelectWeapon("weapon_physgun")
end)
setLastSpawnTime( ply )