From 5eade8a2dcb58755de5e17f602a079d4e930142f Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 3 Jan 2024 21:12:41 +0500 Subject: [PATCH] real? --- beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua index fc99325..8e6ca90 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua @@ -6,8 +6,7 @@ if SERVER then local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"} local function BlockSpawn(ply) - if ply:IsAdmin() then return true - elseif allowPropSpawn:GetBool() then return true end + if not allowPropSpawn:GetBool() or not ply:IsAdmin() then return false end end for _, v in ipairs(spawn) do