mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
fix: pottential trigger from server side
This commit is contained in:
parent
bc3fae20c2
commit
43a567750e
|
@ -1,5 +1,6 @@
|
||||||
concommand.Add("gmi_test_error", function(ply, cmd, args)
|
concommand.Add("gmi_test_error", function(ply, cmd, args)
|
||||||
if !SERVER && !LocalPlayer():gmIntIsAdmin() then
|
if ply && !ply:gmIntIsAdmin() then
|
||||||
|
if SERVER then return end
|
||||||
print("[Gmod Integration] Missing permissions to run this command")
|
print("[Gmod Integration] Missing permissions to run this command")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user