mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
fix prop spawn in singleplayer
This commit is contained in:
parent
5eade8a2dc
commit
3042cae335
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ 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() then return false end
|
||||
if not allowPropSpawn:GetBool() or not ply:IsAdmin() or not game.SinglePlayer() then return false end
|
||||
end
|
||||
|
||||
for _, v in ipairs(spawn) do
|
||||
|
|
Loading…
Reference in a new issue