General > Developers Corner

Group Restrict Autorun script

<< < (2/2)

JamminR:
Whenever looking through G-lua files/addons/whatever you're trying to edit for further checks, use text searches for the following three most common.
(You may already know all three, but just in case)
Player.IsSuperAdmin
Player.IsAdmin
Player.IsUserGroup

According to the wiki article for IsAdmin, it will return 'true' if the player is a SuperAdmin, so, the code given to you for PAC in your original post shouldn't need the ending IsSuperAdmin check to work. (Optimization of code. .000001ms faster execution perhaps :D)
When searching files for adding additional group checks, I'd stick to IsAdmin.

Edit - BTW, don't actually search for the word 'player'. Use 'IsAdmin'. Player will usually be a variable.

Navigation

[0] Message Index

[*] Previous page

Go to full version