From ce2ed7c02afade5799d614283a73a2ac6b54675c Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 7 Jan 2024 21:55:18 +0500 Subject: [PATCH] =?UTF-8?q?pleaaase=3F=3F=3F=3F=20=F0=9F=A5=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua index ea74d5c..677660e 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua @@ -6,7 +6,8 @@ if SERVER then local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"} local function BlockSpawn(ply) - if not allowPropSpawn:GetBool() or not ply:IsAdmin() or not game.SinglePlayer() then return false end + if game.SinglePlayer() or ply:IsAdmin() then return true end + if not allowPropSpawn:GetBool() then return false end end for _, v in ipairs(spawn) do