mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-31 12:07:27 +05:00
Remove admin guns from Beatrun_RandomMWLoadouts
This commit is contained in:
parent
cd4af324df
commit
a6e6a4efda
3 changed files with 9 additions and 3 deletions
|
@ -3,6 +3,9 @@ if SERVER then
|
||||||
util.AddNetworkString("DataTheft_Sync")
|
util.AddNetworkString("DataTheft_Sync")
|
||||||
|
|
||||||
function Beatrun_StartDataTheft()
|
function Beatrun_StartDataTheft()
|
||||||
|
if GetGlobalBool("GM_DATATHEFT") then return end
|
||||||
|
if Course_Name ~= "" then return end
|
||||||
|
|
||||||
SetGlobalBool("GM_DATATHEFT", true)
|
SetGlobalBool("GM_DATATHEFT", true)
|
||||||
|
|
||||||
net.Start("DataTheft_Start")
|
net.Start("DataTheft_Start")
|
||||||
|
|
|
@ -9,7 +9,7 @@ if SERVER then
|
||||||
local wepIndex = math.random(#allWep)
|
local wepIndex = math.random(#allWep)
|
||||||
local wep = allWep[wepIndex]
|
local wep = allWep[wepIndex]
|
||||||
|
|
||||||
if wep.Base == "mg_base" then
|
if wep.Base == "mg_base" and not wep.AdminOnly then
|
||||||
return wep
|
return wep
|
||||||
else
|
else
|
||||||
return getRandomMGBaseWeapon()
|
return getRandomMGBaseWeapon()
|
||||||
|
@ -17,6 +17,9 @@ if SERVER then
|
||||||
end
|
end
|
||||||
|
|
||||||
function Beatrun_StartDeathmatch()
|
function Beatrun_StartDeathmatch()
|
||||||
|
if GetGlobalBool("GM_DEATHMATCH") then return end
|
||||||
|
if Course_Name ~= "" then return end
|
||||||
|
|
||||||
SetGlobalBool("GM_DEATHMATCH", true)
|
SetGlobalBool("GM_DEATHMATCH", true)
|
||||||
|
|
||||||
net.Start("Deathmatch_Start")
|
net.Start("Deathmatch_Start")
|
||||||
|
@ -78,7 +81,7 @@ if SERVER then
|
||||||
if GetGlobalBool("GM_DEATHMATCH") then
|
if GetGlobalBool("GM_DEATHMATCH") then
|
||||||
local plyKills = ply:GetNW2Int("DeathmatchKills", 0)
|
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)
|
ply:SetNW2Int("DeathmatchKills", plyKills - 1)
|
||||||
elseif IsValid(attacker) and attacker ~= ply then
|
elseif IsValid(attacker) and attacker ~= ply then
|
||||||
local kills = attacker:GetNW2Int("DeathmatchKills", 0)
|
local kills = attacker:GetNW2Int("DeathmatchKills", 0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VERSIONGLOBAL = "v1.0.4"
|
VERSIONGLOBAL = "v1.0.5"
|
||||||
|
|
||||||
DeriveGamemode("sandbox")
|
DeriveGamemode("sandbox")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue