forked from kythre/Buildmode-ULX
added OnPlayerSwitchModePVPBUILD hook per request
This commit is contained in:
parent
e4ad840dce
commit
8400c77fa9
@ -335,6 +335,8 @@ if SERVER then
|
||||
|
||||
--boolean to say if buildmode was enabled because the player had just spawned
|
||||
z:SetNWBool("_Kyle_BuildmodeOnSpawn", z:GetNWBool("_kyle_died"))
|
||||
|
||||
hook.Run ("OnPlayerSwitchModePVPBUILD", z, true)
|
||||
end
|
||||
|
||||
local function _kyle_Buildmode_Disable(z)
|
||||
@ -379,6 +381,8 @@ if SERVER then
|
||||
z:ConCommand( "noclip" )
|
||||
end
|
||||
end
|
||||
|
||||
hook.Run ("OnPlayerSwitchModePVPBUILD", z, false)
|
||||
end
|
||||
|
||||
hook.Add("PlayerSpawnedProp", "KylebuildmodePropKill", function(x, y, z)
|
||||
@ -698,7 +702,6 @@ if SERVER then
|
||||
kylebuildmodeadmin:setOpposite("ulx fpvp", {_, _, true}, "!fpvp")
|
||||
end
|
||||
|
||||
|
||||
hook.Add("PreDrawHalos", "KyleBuildmodehalos", function()
|
||||
local w = {}
|
||||
local x = {}
|
||||
|
Loading…
Reference in New Issue
Block a user