Ulysses Stuff > Ulysses Release Archives
URestrict [Depreciated-author no longer supports]
Jethro:
--- Quote from: jay209015 on July 16, 2009, 10:49:06 AM --- - Yes, I am planning on implementing this very soon, but atm the moment the easiest way o find the correct name of a tool is to select the tool, and go into the console and type gmod_tool, and it'll autocomplete the actual name.
--- End quote ---
Thanks. That worked but urestrict is incompatible at blocking tools which have a name 3 characters long.
JamminR:
I spent ~5 minutes looking around code.garrysmod.com to see if there was an easy way (already created table, etc) of grabbing a list of tools on the server.
Surely there's a way (The Q menu isn't hardcoded with tools). I just couldn't find it in the time I took.
[EDIT] - Hmm. Might find this handy.
jay209015:
This line sparks a lot of interest
--- Code: ---local toolmodes = file.FindInLua( SWEP.Folder.."/stools/*.lua" )
--- End code ---
==EDIT==
Success!!!!
--- Code: ---lua_run PrintTable(file.FindInLua( "weapons/gmod_tool/stools/*.lua" ))
> PrintTable(file.FindInLua( "weapons/gmod_tool/stools/*.lua" ))...
1 = adv_duplicator.lua
2 = colmat.lua
3 = weld_ez2.lua
4 = axis.lua
5 = balloon.lua
6 = ballsocket.lua
7 = ballsocket_adv.lua
8 = ballsocket_ez.lua
9 = button.lua
10 = camera.lua
11 = colour.lua
12 = duplicator.lua
13 = dynamite.lua
14 = elastic.lua
15 = emitter.lua
16 = example.lua
17 = eyeposer.lua
18 = faceposer.lua
19 = finger.lua
20 = hoverball.lua
21 = hydraulic.lua
22 = ignite.lua
23 = inflator.lua
24 = keepupright.lua
25 = lamp.lua
26 = leafblower.lua
27 = light.lua
28 = magnetise.lua
29 = material.lua
30 = motor.lua
31 = muscle.lua
32 = nail.lua
33 = nocollide.lua
34 = paint.lua
35 = physprop.lua
36 = pulley.lua
37 = remover.lua
38 = rope.lua
39 = rtcamera.lua
40 = slider.lua
41 = spawner.lua
42 = statue.lua
43 = thruster.lua
44 = trails.lua
45 = turret.lua
46 = weld.lua
47 = weld_ez.lua
48 = wheel.lua
49 = winch.lua
--- End code ---
jay209015:
Revision: 28
Author: jay
Date: 2:01:14 AM, Friday, July 17, 2009
Message:
Added Tool Verification
Removed Text Box To Add Tools, Now You Select From A Drop Down
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua
Modified : /lua/ULib/modules/server/URestrict.lua
Let me know what you think.
bennie900:
Good work Jay love it! Love the drop down menu, much more easier but it needs to be scrollable because I have allot of tools and I cant see them all.
Good work though! ;D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version