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:
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
...\garrysmod\data\URestrict\Loadouts\trusted.txt:
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
"weapon_crowbar"
"weapon_pistol"
"weapon_357"
"weapon_pistol"
...\garrysmod\data\URestrict\Loadouts\default_spawn.txt:
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
"weapon_crowbar"
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