ULX

Author Topic: How to enable admin gun damage  (Read 2183 times)

0 Members and 2 Guests are viewing this topic.

Offline ULXGmodFan

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
How to enable admin gun damage
« on: December 07, 2013, 01:30:35 PM »
Hi,

I run ulx with some plugins such as ulib and my server has godmode since it is a building server.

However: admins can only use guns (for administrating and authority) but they can't damage players. Even when godmode is revoked from them.

Is there any way to have people protected against fall damage or heavy props on their heads, but do make them able to get hurt by guns (that only admins have access to)?

Thanks!

P.s. I'm not such a code king, so if I need to edit files please be specific :D

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to enable admin gun damage
« Reply #1 on: December 07, 2013, 04:07:27 PM »
Give the standard "user" group "ulx god ^" and "ulx ungod ^" (that allows them to god only themselves), disable server godmode.
Players would have to enable godmode on themselves using ulx god if/when they needed it, but would allow what you're asking, overall.
I'm pretty sure Admin weapons wouldn't hurt them still if they have god enabled, however, admins could ulx ungod <player> before shooting them.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: How to enable admin gun damage
« Reply #2 on: December 07, 2013, 06:46:58 PM »
He could make a script that checks if player IsAdmin or IsSuperadmin.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to enable admin gun damage
« Reply #3 on: December 07, 2013, 09:27:48 PM »
He could make a script that checks if player IsAdmin or IsSuperadmin.
I'm not such a code king
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to enable admin gun damage
« Reply #4 on: December 08, 2013, 06:35:26 AM »
Without being able to code it yourself, JamminR's solution is the best one.
Experiencing God's grace one day at a time.

Offline ULXGmodFan

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: How to enable admin gun damage
« Reply #5 on: December 09, 2013, 04:18:50 AM »
Thanks, I added !god and !ungod