Ulysses Stuff > Ulysses Release Archives

URestrict [Depreciated-author no longer supports]

<< < (25/146) > >>

Jethro:
I love this script but have had a lot of problems with it so far.
One probelm I have encountered:

* When I added gmod_wire_turret and restared the server it would not load the Urestrict menu
* One of my groups "resmember" is not showing up in the tool restrict menu when you click on an tool
--- Code: ---All groups sspecified in loadout Menu
"owner" <exempt>
"superadmin" <exempt>
"admin" <exempt>
"moderator"
"resmember"
"member"
"respected"
"regular"

--- End code ---

* Another problem is that the newest version (21) does not give you the option to turn on or off Weather or not "weapons are given to the player/group on spawn"I fixed this by editing all the <toolname>.txt to include "resmember" but needs to be done with each new tool.

Version being used: Sticking to Version 20 as you are unable to define what each group spawns with in 21.

jay209015:

--- Quote ---Another problem is that the newest version (21) does not give you the option to turn on or off Weather or not "weapons are given to the player/group on spawn"
--- End quote ---
     - Loadouts have to be configured to determine what each groups allow to use; then you apply a loadout to a group in game from the menu
     - As far as choosing what they spawn with I'm working on adding that feature now, currently everyone except excluded groups spawn with:
          "weapon_physgun", "weapon_physcannon", "gmod_tool", "gmod_camera", "weapon_crowbar"  as defined by URestrict.DefaultLoadout at
           the top of URestrict.lua    ::EDIT WITH CAUTION::

jay209015:
Revision: 22
Author: jay
Date: 12:39:33 PM, Monday, July 06, 2009
Message:
Added A Configuration For Choosing What Weapons Users Are Allowed To Spawn With EX: You have the default loadout set to allow the user group to use with pistol, crowbar, physgun, tool gun, and camera.   And you have the trusted loadout set to allow admins to use pistol, crowbar, physgun, tool gun, and camera, glock, rpg, ... ect and you only have the pistol allowed in the default_spawn.txt both the user group and admin group will only spawn with the pistol, but the admin group would still be able to use the rpg, glock,..ect if they spawn it or pick one up somewhere while the user group will still have to follow the restrictions.
----
Modified : /lua/ULib/modules/server/URestrict.lua

Example of new configuration:

...\garrysmod\data\URestrict\Loadouts\default.txt:

--- Code: ---"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
--- End code ---

...\garrysmod\data\URestrict\Loadouts\trusted.txt:

--- Code: ---"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
"weapon_crowbar"
"weapon_pistol"
"weapon_357"
"weapon_pistol"

--- End code ---

...\garrysmod\data\URestrict\Loadouts\default_spawn.txt:

--- Code: ---"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
"weapon_crowbar"

--- End code ---

With this configuration, both groups will spawn with:
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"

But the group using the trusted loadout would spawn with a crowbar too. Even though they're allowed to use the pistol, and 357, they won't spawn with it.



Revision: 23
Author: jay
Date: 12:41:30 PM, Monday, July 06, 2009
Message:
Updated the URestrict Title Bar To Show The Current Revision
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua

JamminR:

--- Quote from: jay209015 on July 05, 2009, 05:40:58 PM ---because all mine are unique.

--- End quote ---

I forget what, but we've seen some versions Gcombat break a few things in ULX, unique names or not.
I think it was somehow allowing players to pick up each other, even if not admin.
Unless Garry has improved his hook system, if any script shares a hook type (playerloadout for instance), and for any reason returns anything (true false or otherwise)  instead of just returning... that hook stops for all other scripts.

Jethro:
Thankyou so much for adding that feature. Loadouts seem to work
One problem still remaining like i said before is whenever I seem to add a tool it breaks the in game menu.
I deleted the /urestrict/tools folder but this had little effect.
When In game and go to access the in game menu i get this error:

--- Code: ---] urestrict
Timer Error: ULib/modules/client/URestrict_cl.lua:228: attempt to concatenate field '?' (a nil value)

--- End code ---
Note: I have not edited any files in the Addon folder and have Revision 22 now.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version