ULX

Author Topic: Disallow a usergroup spawning permissions  (Read 2595 times)

0 Members and 2 Guests are viewing this topic.

Offline Ninjadude101

  • Newbie
  • *
  • Posts: 38
  • Karma: 4
Disallow a usergroup spawning permissions
« on: December 21, 2008, 08:47:13 AM »
Is there a way i can stop a certain usergroup from spawning anything (weapons, props, entities, vehicles etc)?
I have a usergroup on my servers called minge. Obviously certain people who minge about get an hour or two in the minge group where they cant do but watch, although some have realised that they can still spam explosives.

Anyway yeah i'm not asking for a full-blown mod for this, just a piece of code i can put somewhere to stop the ULX group "minge" from spawning anything at all, thanks.

I am using URestrict to stop the group from spawning with anything of use however might make them spawn with only a gravgun. (Anyone think of a more useless tool? - Camera does not work as you cannot type or anything, heh.)

Offline Ninjadude101

  • Newbie
  • *
  • Posts: 38
  • Karma: 4
Re: Disallow a usergroup spawning permissions
« Reply #1 on: December 22, 2008, 12:01:56 PM »
Anyone?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Disallow a usergroup spawning permissions
« Reply #2 on: December 22, 2008, 01:12:20 PM »
See this discussion. http://forums.ulyssesmod.net/index.php/topic,858.0.html
Spbogie's code could easily be modified to allow any _but_ minge group.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ninjadude101

  • Newbie
  • *
  • Posts: 38
  • Karma: 4
Re: Disallow a usergroup spawning permissions
« Reply #3 on: December 22, 2008, 08:22:45 PM »
Thanks man, that helped a lot. I just changed it slightly so that if group is NOT in the table, they CAN spawn :)
Anyway, cheers.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Disallow a usergroup spawning permissions
« Reply #4 on: December 22, 2008, 09:01:24 PM »
Welcome. Good to see ya around ninjadude.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming