Poll

Do You Like The New GUI Better?

Yes, Much Better!
71 (59.7%)
Yeah
22 (18.5%)
I Don't Care, I Use The Console
14 (11.8%)
No
4 (3.4%)
I Prefer The Old GUI
8 (6.7%)

Total Members Voted: 116

Author Topic: URestrict [Depreciated-author no longer supports]  (Read 483870 times)

0 Members and 1 Guest are viewing this topic.

Offline edk141

  • Newbie
  • *
  • Posts: 23
  • Karma: 5
Re: URestrict
« Reply #720 on: April 11, 2011, 10:10:18 AM »
Hey guys,

I'm trying to restrict the use of some vehicles so users cant use them but whatever i add in urestrict they are still able to spawn them...

........
What gamemode and addons are you using, and is ULib up to date? If it's not sandbox, have you tried sandbox? Do other restrictions work (props etc)?

Offline Tommo1590

  • Newbie
  • *
  • Posts: 37
  • Karma: 1
Re: URestrict
« Reply #721 on: April 13, 2011, 08:05:42 AM »
Yea server is running sandbox, ULib is the latest version and it seems its not working for any props/entities BUT is working for weapons...

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: URestrict
« Reply #722 on: April 13, 2011, 08:39:33 AM »
This addon has been broken for a while, currently it only effectively works for restricting/ crating player weapon loadouts. There is someone who may be taking up the job of re-writing it in the future.
To stop props from being spawned, you can use this code:
Code: [Select]
local models = { "models/Effects/splode.mdl", "crane_frame.mdl" } --All or part of model name.
local function blockPropsEffects( ply, mdl )
for _, v in pairs( models ) do
if string.find( mdl, v ) then
return false
end
end
end
hook.Add( "PlayerSpawnProp", "blockProps", blockPropsEffects )
hook.Add( "PlayerSpawnEffect", "blockEffects", blockPropsEffects )
(SOURCE THREAD)

Put it in a new text file, name it whatever_you_want.lua and place in ../garrysmod/lua/autorun/server
« Last Edit: April 13, 2011, 08:45:31 AM by krooks »
My TTT server. Join the fun!

Offline killforfun

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 1
Re: URestrict
« Reply #723 on: June 10, 2011, 06:16:54 PM »
OK i added this svn file to server
i restarted my server
i joined and typed URestrict in to console
Unknown Command: 'URestrict'!?!?!?!?!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #724 on: June 10, 2011, 10:05:23 PM »
OK i added this svn file to server
i restarted my server
i joined and typed URestrict in to console
Unknown Command: 'URestrict'!?!?!?!?!
Perhaps read the thread a bit before posting?

One page back, perhaps understandable you missed it.

I'm am sorry to inform you, but I will not be supporting this plugin.
I encourage that anyone capable pick this project up.

I do not have to time or resources to continue developing for Ulysses for the time being.
I'm not sure if I'll ever be able to .

I sincerely apologize for leaving everyone in the dark and being absent on the forums.

I had big plans for this project, but life got in the way. I would like to see someone be able to make something of it.

However, this one, the last post before yours, shouldn't have been missed.

This addon has been broken for a while, currently it only effectively works for restricting/ crating player weapon loadouts.

Now, on to help you find your way back to the light.
You may wish to see URS BETA
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict [Depreciated-author no longer supports]
« Reply #725 on: June 10, 2011, 10:06:03 PM »
-Locked.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming