mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
🤷
This commit is contained in:
parent
920501b258
commit
119056f713
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 ply:IsAdmin() or allowPropSpawn:GetBool() then return true end
|
if ply:IsAdmin() then return true
|
||||||
|
elseif allowPropSpawn:GetBool() then return true end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in ipairs(spawn) do
|
for _, v in ipairs(spawn) do
|
||||||
|
|
Loading…
Reference in a new issue