mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-31 12:07:27 +05:00
pleaaase???? 🥺
This commit is contained in:
parent
3042cae335
commit
ce2ed7c02a
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ if SERVER then
|
||||||
local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"}
|
local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"}
|
||||||
|
|
||||||
local function BlockSpawn(ply)
|
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
|
end
|
||||||
|
|
||||||
for _, v in ipairs(spawn) do
|
for _, v in ipairs(spawn) do
|
||||||
|
|
Loading…
Reference in a new issue