Just wondering can I add a code to my lua script like:
if ply:IsModerator() then
Or does it work only for IsAdmin?
It depends on how you determine whether someone is a moderator.
The easiest way to do it is with [url=http://wiki.garrysmod.com/?title=Player.SetUserGroup]UserGroups[/url].
[b][url=wiki.garrysmod.com/?title=Player.IsUserGroup]Player.IsUserGroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] is what you're looking for.
Sorry, you need to Log In to post a reply to this thread.