forked from kythre/Buildmode-ULX
potential fix for someone having an issue with not being sent to spawn on buildmode exit when they should be
This commit is contained in:
parent
c44ad14b16
commit
5fede8358a
@ -362,8 +362,11 @@ if SERVER then
|
||||
local pos = z:GetPos()
|
||||
|
||||
--if they are in a vehicle try to un noclip their vehicle and kick them out of it if they need to return to spawn
|
||||
if z:InVehicle() and IsValid(z:GetVehicle()) and z:GetVehicle().buildnoclipped then
|
||||
_kyle_Prop_TryUnNoclip(z:GetVehicle())
|
||||
if z:InVehicle() then
|
||||
if IsValid(z:GetVehicle()) and z:GetVehicle().buildnoclipped then
|
||||
_kyle_Prop_TryUnNoclip(z:GetVehicle())
|
||||
end
|
||||
|
||||
if _Kyle_Buildmode["returntospawn"]=="1" then
|
||||
z:ExitVehicle()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user