Author Topic: Groups can noclip  (Read 2369 times)

0 Members and 1 Guest are viewing this topic.

Offline killforfun

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 1
Groups can noclip
« on: June 15, 2011, 09:39:13 PM »
OK i wanted to make a group not able to no-clip so i disabled ulx no-clip on that group but they could still no-clip(yes i killed them and they could still no-clip) so what should i do
(I have ulx SVN latest version) 

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Groups can noclip
« Reply #1 on: June 15, 2011, 10:51:30 PM »
ulx noclip only gives them access to use the command ulx noclip.  You'd have to make something custom to block certain groups from using noclip, or you could disable noclip completely and use ulx noclip to noclip yourself.

Offline killforfun

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 1
Re: Groups can noclip
« Reply #2 on: June 16, 2011, 12:55:57 AM »
Ok i found a way
mady by: JusticeInACa

Code: [Select]
local function AntiNoclip(ply)
    if ply:IsUserGroup("group name here") then return false end
end
hook.Add("PlayerNoClip","AntiNoclip",AntiNoclip)
save as antinoclip.lua put in lua\autorun\server for it to work
dont forget to replace  if ply:IsUserGroup("group name here")
« Last Edit: June 16, 2011, 09:32:12 AM by killforfun »