Ulysses Stuff > Ulysses Release Archives
URestrict [Depreciated-author no longer supports]
jay209015:
Agree 100% with you on this on Jamm
Lazy_Frostyfrog:
I think I have found a few bugs with this script.
* Groups list doesn't contain all of the ulib groups
* groups that have 3 or less letters in the name (ex. vip) don't workother-wise, great script. although those fixes would help alot. Also, could you make it so the "allow admin" would do something like if (player:IsAdmin and [players' group == allowed]) ect.?
jay209015:
--- Quote ---Groups list doesn't contain all of the ulib groups
--- End quote ---
- You can only see the groups that ULib passes to clients on connect through ULib.ucl.groups
--- Quote ---groups that have 3 or less letters in the name (ex. vip) don't work
--- End quote ---
- Strange, I'll look into this further.
--- Quote ---other-wise, great script. although those fixes would help alot. Also, could you make it so the "allow admin" would do something like if (player:IsAdmin and [players' group == allowed]) ect.?
--- End quote ---
- Thanks for the compliment, but I don't understand your reasoninge behind:
--- Code: ---if (player:IsAdmin and [players' group == allowed])
--- End code ---
Seems kind of pointless.
Frostyfrog:
--- Quote ---
--- Quote ---Groups list doesn't contain all of the ulib groups
--- End quote ---
- You can only see the groups that ULib passes to clients on connect through ULib.ucl.groups
--- End quote ---
Well, let me explain a little bit of what was happening...
The owner (Paws) was in the group Paws (I was doing it that way, since I'm the "extras" lua coder, for UTeams) and he was on the server before I was. Then I joined and brought up the URestrict menu. (I only needed the STOOL restriction) The group Paws wasn't on there yet the groups Frosty, Admin, superadmin, ect. were there.
--- Quote ---
--- Quote ---groups that have 3 or less letters in the name (ex. vip) don't work
--- End quote ---
- Strange, I'll look into this further.
--- End quote ---
vip wouldn't work so I changed it to vips and it worked.
--- Quote ---
--- Quote ---other-wise, great script. although those fixes would help alot. Also, could you make it so the "allow admin" would do something like if (player:IsAdmin and [players' group == allowed]) ect.?
--- End quote ---
- Thanks for the compliment, but I don't understand your reasoninge behind:
--- Code: ---if (player:IsAdmin and [players' group == allowed])
--- End code ---
Seems kind of pointless.
--- End quote ---
something like this (different though since you did it with files):
--- Code: ---local adminAllowed = 1
local sadminAllowed = 1
local vipAllowed = 1
if (player:IsAdmin and adminAllowed == 1 or player:IsSuperAdmin and sadminAllowed == 1 or player:IsUserGroup("vip") and vipAllowed == 1 ) then
(code here)
end
--- End code ---
jay209015:
something like this (different though since you did it with files):
--- Code: ---local adminAllowed = 1
local sadminAllowed = 1
local vipAllowed = 1
if (player:IsAdmin and adminAllowed == 1 or player:IsSuperAdmin and sadminAllowed == 1 or player:IsUserGroup("vip") and vipAllowed == 1 ) then
(code here)
end
--- End code ---
I still don't see the purpose of this, because the script determines whether or not to allow the use of a tool by seeing if the players group is in the allowed list a the tool at question:
--- Code: ---if not(table.HasValue( URestrict[ v ], URestrict.GetUserGroup( ply ))) and ( #URestrict[ v ] > 0 ) then
--- End code ---
Why do you want me to change this, perhaps that way I can better understand what your want.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version