aaron113 / urs Goto Github PK
View Code? Open in Web Editor NEWAn advanced Garry's Mod restriction system for ULX.
Home Page: http://forums.ulyssesmod.net/index.php/topic,5269.0.html
License: MIT License
An advanced Garry's Mod restriction system for ULX.
Home Page: http://forums.ulyssesmod.net/index.php/topic,5269.0.html
License: MIT License
The wiki needs more information. 'nough said.
If you're still taking suggestions, I would be nice to be able to restrict a group from either a certain set of items or a whole addon. For example, I would like to restrict gbombs from the users group but not the admins using the target "gb5_*".
When you try and restrict an item that is already restricted it will print like this: "grandmaster is already restricted from this rank." Instead of the item, it prints the rank name.
Not a huge priority as it is avoidable. Make sure you have ulx_urs_overwrite_sbox set to 0 in your cfg file(s) to fix it. You can just set sbox limit higher and limit every rank for now.
Users can spawn npc's when sbox_maxnpcs is 0, the only way to prevent this is by setting the limit for their rank to 0. I would like at times for everyone to spawn npcs but not never or always. This seems like a fairly recent bug.
I hate the current GUI. It needs to be revamped and likely independent from others.
Hi
im using your URS and its pretty good, however im finding it hard to set it up so that the easy bodygroup tool from robotboy655 is unrestricted from user but all other tools are restricted.. any ideas?
If you're still open to suggestions, I think it might be useful to be able to restrict playermodels through URS as well. It certainly might prove useful to be able to prevent certain ranks from using certain playermodels (Donor models, admin-only models, etc.).
Sound like something you might consider?
Not much else to say, I have the latest urs.
For whatever reason, this plugin will not work on Linux if cloned into addons/URS/ (as is the default, if a destination directory is not specified). I suspect this is a Garry's Mod or ULX bug rather than your fault, but it would be a good idea to plop a reminder in the README.md.
cd /path/to/garrysmod/garrysmod/addons
# Works: (Makes urs/)
git clone https://github.com/Aaron113/URS.git urs
# Does NOT work: (makes URS/, which is NOT mounted)
git clone https://github.com/Aaron113/URS.git
i have restricted props that people are spamming, probably related to the other restriction bug from my clueless opinion
Add support for more sbox limits.
I got this error whilst trying to print all
[ERROR] lua/includes/modules/net.lua:66: bad argument #1 to 'pairs' (table expected, got nil)
With the b62db66 and latest ulib/ulx (from github) folowing error in console:
[ERROR] addons/urs/lua/ulx/modules/urs_server.lua:43: attempt to index a nil value
Check - addons/urs/lua/ulx/modules/urs_server.lua:43
fn - addons/urs/lua/ulx/modules/urs_server.lua:146
unknown - addons/ulib/lua/ulib/shared/hook.lua:179
Give - [C]:-1
RunClass - gamemodes/sandbox/gamemode/player_class/player_sandbox.lua:76
Call - gamemodes/base/gamemode/player.lua:317
PlayerSpawn - gamemodes/base/gamemode/player.lua:274
unknown - gamemodes/sandbox/gamemode/init.lua:41
I joined my server today to see people using the duplicator, which I have had restricted for over a year now.
Would you like my restrictions.txt again?
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned/used tool duplicator -=RESTRICTED=-
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned model models/props_vehicles/car003b_physics.mdl
"duplicator" is a restricted tool from your rank.
FPtje/DarkRP#1759
DarkRP's hooks aren't being run because you return true. This breaks DarkRP and likely other mods. Return no value instead of true.
Another suggestion that I have would be to implement some manner of constraint limit. As far as I can tell, there are no sbox limitations on, say, the number of ropes a player can create. This can be rather troublesome, as minges can easily spam hundreds of ropes to a prop or two and crash the server.
Think this might be useful to implement?
https://github.com/Aaron113/URS/blob/master/lua/ulx/modules/urs_server.lua#L114
There is a typo, it should be URS.Check
Acting as a reminder, would like to add version checking for future debugging problems.
Today they decided to randomly stop working. I have an example below
Giving ☣☢Bryantdl7☢☣ a m9k_davy_crockett
"m9k_davy_crockett" is a restricted swep from your rank.
Yet I still get the swep.
Here is my restrictions.txt
http://darkstorm.site.nfoservers.com/hosted/restrictions.txt
Your tool is awesome, congratulations.
I have an issue though, I can't seem to restrict users from pasting Wire Expression 2 chips (I think they're "entities", no?).
I block it with name "wire_expression2" and even "gmod_wire_expression2" (that's the name of the class of the chip) on advdupe, prop, sent - it doesn't block the paste.
The tool is blocked just fine.
The paste with Advanced Duplicator 2 (mind the 2!) doesn't get blocked.
Thanks in advance!
Let restrictions/loadouts/limits have the possibility to inherit through ranks.
Hello,
This isn't really a issue but I didn't really know how to ask anywhere else.
The current HUD that I am using has a prop counter and it shows the max props that you are allowed to spawn but that grabs the sbox_maxprops limit. I was wondering if there is anyway to grab the prop limit defined by URS for that rank so that I can display it on the HUD.
If you can even understand what I mean aha.
Thanks in advanced,
Main Fighter.
Hello,
This is more of a suggestion rather than an issue. I would love to see you create a tool limit, so you can limit the stuff the tools place down e.g. only allowing 5 balloons to be placed down with the "Balloons" tool. Another suggestion would be being able to target all or certain directories. For example for vehicles, instead of typing out the directory of the vehicle "models/tdmcars/emergency/lex_is300_jamesmay.mdl" you could do "models/tdmcars/*" - which would just restrict all the cars in the specified directory by using *.
At the moment, I'm having to use URS and FPP, just because I can't limit tools etc..
Thanks!
Basically patchprotect is an antispam and prop protection addon.
Link here: http://steamcommunity.com/sharedfiles/filedetails/?id=183047564
Ever since i installed URS the antispam system would fail to detect a prop spawn.
I had a discussion with the patchprotect dev and this came up:
The last thing what you can do is, to remove parts of the code of URS.
You need to remove following lines from the following file:
https://github.com/Aaron113/URS/blob/537d6ab45faf725796c65dc27976c7e0eb5456cf/lua/ulx/modules/urs_server.lua
88 till 96
106 till 119
125
137 - 140
I know, this is a very crappy solution, but nothing else can help. The thing is, that I can't do anything against that.
Last edited by Ted894.
Here is the full discussion of it (The discussion starts on page 3)
http://steamcommunity.com/workshop/filedetails/discussion/183047564/43099721684542778/#p1
I need to know how to make all sents not spawnable by group "User" except gmod_playx, is this possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.