mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
accept any gamemode string
This commit is contained in:
parent
cd6452c1ec
commit
58abf24f8a
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ util.AddNetworkString("Beatrun_ToggleGamemode")
|
||||||
net.Receive("Beatrun_ToggleGamemode", function(_, ply)
|
net.Receive("Beatrun_ToggleGamemode", function(_, ply)
|
||||||
if not ply:IsAdmin() then return end
|
if not ply:IsAdmin() then return end
|
||||||
|
|
||||||
local gm = net.ReadString()
|
local gm = string.lower(net.ReadString())
|
||||||
|
|
||||||
if gm == "datatheft" then
|
if gm == "datatheft" then
|
||||||
if not GetGlobalBool("GM_DATATHEFT") then
|
if not GetGlobalBool("GM_DATATHEFT") then
|
||||||
|
|
Loading…
Reference in a new issue