add admins check

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-02 20:51:26 +05:00
parent 0060d6fd02
commit 2c051bf4a2

View file

@ -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