Author Topic: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn  (Read 5316 times)

0 Members and 1 Guest are viewing this topic.

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Well If I try to spawn an affect I get an error with URestrict.
An as for the admin only guns not being admin only I have no idea why...
Ive had many uses abusing this an spamming the manhack gun.
An Many players Complaining about not be able to spawn effects.

My effect limit is two.
But it doesn't make a difference.


Im Not A
*  Fanboy
Im An
*  Artist.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #1 on: July 10, 2010, 09:22:35 AM »
What's the error you're getting from URestrict?
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #2 on: July 10, 2010, 08:47:19 PM »
Sorry Fell asleep yesterday.
Um Ill go get it soon will post it below.
Im Not A
*  Fanboy
Im An
*  Artist.

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #3 on: July 16, 2010, 01:33:08 PM »
Wow im so sorry I kinda went outta town.

If you could look into the admin only gun thing that help alot.


ERROR: GAMEMODE:'PlayerSpawnEffect' Failed: addons\urestrict\lua\ulib\modules\base\props.lua:25: attempt to index field '?' (a nil value)
Im Not A
*  Fanboy
Im An
*  Artist.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #4 on: July 16, 2010, 01:52:01 PM »
Not 100% sure, but this "should" fix it. I would test it, but I'm at work.

URestrict/lua/ULib/modules/URestrict.lua Line:12
Code: [Select]
ur.limit = { ["props"] = {}, ["npcs"] = {}, ["vehicles"] = {}, ["ragdolls"] = {}, ['sents'] = {} }Change the above line to read:
Code: [Select]
ur.limit = { ["props"] = {}, ["npcs"] = {}, ["vehicles"] = {}, ["ragdolls"] = {}, ['sents'] = {}, ['effects'] = {} }
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #5 on: July 16, 2010, 02:18:19 PM »
Heres what console gives me.

[ULIB] Loading SHARED module: URestrict.lua
addons\urestrict\lua\ulib\modules\urestrict.lua:145: '<name>' expected near 'end'
[ULIB] Loading CLIENT module: urestrict_cl.lua


Well when you get home or tomorrow look into the Urestrict problem.
For now im gonna waste time on Tf2 an take a shower.
« Last Edit: July 16, 2010, 03:28:09 PM by SK83RJOSH »
Im Not A
*  Fanboy
Im An
*  Artist.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #6 on: July 16, 2010, 06:21:54 PM »
Post your URestrict.lua file to jay209015.pastebin.com
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #7 on: July 16, 2010, 06:49:53 PM »
The if not ur then part is right in the lua I just copied it wrong an noticed after I posted it :3
Im Not A
*  Fanboy
Im An
*  Artist.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #8 on: July 17, 2010, 12:18:51 AM »
Did you get it working?
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #9 on: July 17, 2010, 12:22:55 AM »
Nevermind, found your error, you overwrote the wrong line.

Here you go.
http://jay209015.pastebin.com/tejGi5xW

An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #10 on: July 17, 2010, 02:53:35 PM »
No I had it right like I said I pasted it wrong on paste bin.
Its giving me the same error as I said in the last post.
I.E.
[ULIB] Loading SHARED module: URestrict.lua
addons\urestrict\lua\ulib\modules\urestrict.lua:145: '<name>' expected near 'end'
[ULIB] Loading CLIENT module: urestrict_cl.lua

Now I have a urestrict thats not working and minges spawning manhacks lol.
Im Not A
*  Fanboy
Im An
*  Artist.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #11 on: July 17, 2010, 04:11:52 PM »
Please do an svn checkout to the latest revision: 32
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline SK83RJOSH

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
  • Im not A fanboy Im an Artist
Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
« Reply #12 on: July 17, 2010, 04:30:30 PM »
Will do
Im Not A
*  Fanboy
Im An
*  Artist.