mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
add admins check
This commit is contained in:
parent
0060d6fd02
commit
2c051bf4a2
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
util.AddNetworkString("Beatrun_ToggleGamemode")
|
util.AddNetworkString("Beatrun_ToggleGamemode")
|
||||||
|
|
||||||
net.Receive("Beatrun_ToggleGamemode", function(_, ply)
|
net.Receive("Beatrun_ToggleGamemode", function(_, ply)
|
||||||
|
if not ply:IsAdmin() then return end
|
||||||
|
|
||||||
local gm = net.ReadString()
|
local gm = net.ReadString()
|
||||||
|
|
||||||
if gm == "datatheft" then
|
if gm == "datatheft" then
|
||||||
|
|
Loading…
Reference in a new issue