Remove admin guns from Beatrun_RandomMWLoadouts

This commit is contained in:
Jonny_Bro (Nikita) 2024-07-18 09:40:14 +05:00
parent cd4af324df
commit a6e6a4efda
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8
3 changed files with 9 additions and 3 deletions

View file

@ -3,6 +3,9 @@ if SERVER then
util.AddNetworkString("DataTheft_Sync")
function Beatrun_StartDataTheft()
if GetGlobalBool("GM_DATATHEFT") then return end
if Course_Name ~= "" then return end
SetGlobalBool("GM_DATATHEFT", true)
net.Start("DataTheft_Start")

View file

@ -9,7 +9,7 @@ if SERVER then
local wepIndex = math.random(#allWep)
local wep = allWep[wepIndex]
if wep.Base == "mg_base" then
if wep.Base == "mg_base" and not wep.AdminOnly then
return wep
else
return getRandomMGBaseWeapon()
@ -17,6 +17,9 @@ if SERVER then
end
function Beatrun_StartDeathmatch()
if GetGlobalBool("GM_DEATHMATCH") then return end
if Course_Name ~= "" then return end
SetGlobalBool("GM_DEATHMATCH", true)
net.Start("Deathmatch_Start")
@ -78,7 +81,7 @@ if SERVER then
if GetGlobalBool("GM_DEATHMATCH") then
local plyKills = ply:GetNW2Int("DeathmatchKills", 0)
if ply == attacker and plyKills ~= 0 then
if ply == attacker and plyKills > 0 then
ply:SetNW2Int("DeathmatchKills", plyKills - 1)
elseif IsValid(attacker) and attacker ~= ply then
local kills = attacker:GetNW2Int("DeathmatchKills", 0)

View file

@ -1,4 +1,4 @@
VERSIONGLOBAL = "v1.0.4"
VERSIONGLOBAL = "v1.0.5"
DeriveGamemode("sandbox")