From 2c051bf4a26272a3f98decb9b3ba2a71c87f4782 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 2 Sep 2023 20:51:26 +0500 Subject: [PATCH] add admins check --- beatrun/gamemodes/beatrun/gamemode/sv/Menu_Gamemodes.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beatrun/gamemodes/beatrun/gamemode/sv/Menu_Gamemodes.lua b/beatrun/gamemodes/beatrun/gamemode/sv/Menu_Gamemodes.lua index 3e93421..3e043e7 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sv/Menu_Gamemodes.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sv/Menu_Gamemodes.lua @@ -1,6 +1,8 @@ util.AddNetworkString("Beatrun_ToggleGamemode") net.Receive("Beatrun_ToggleGamemode", function(_, ply) + if not ply:IsAdmin() then return end + local gm = net.ReadString() if gm == "datatheft" then