Author Topic: Editting Admin Priviliages...  (Read 4115 times)

0 Members and 1 Guest are viewing this topic.

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Editting Admin Priviliages...
« on: May 18, 2008, 03:49:06 AM »
How can I edit what an Admin & Operator can do?

For instance, I want Admins to only be able to temporally ban people, only SuperAdmin can permenantly ban people.

Is it possible to do this by editing .txt files? Or download some sort of Admin Manager?


I hope this is possible... ???

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Editting Admin Priviliages...
« Reply #1 on: May 18, 2008, 07:06:06 AM »
Read the FAQs
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Editting Admin Priviliages...
« Reply #2 on: May 18, 2008, 07:42:13 AM »
want Admins to only be able to temporally ban people, only SuperAdmin can permenantly ban people.

Is it possible to do this by editing .txt files?

ULX has no way to only allow 'temporary' bans for those who have ban access.
You either have ban permission, or you don't.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Editting Admin Priviliages...
« Reply #3 on: May 18, 2008, 10:24:25 AM »
Ah ok thats cool. Could someone kindly link/write me an explanation as to what all the commands are in the Allow/Deny sections of Groups.txt?

Id greatly apprechiate it :)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Editting Admin Priviliages...
« Reply #4 on: May 18, 2008, 10:28:54 AM »
Most should be fairly obvious, but if you have specific questions I'd love to answer them.
Experiencing God's grace one day at a time.

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Editting Admin Priviliages...
« Reply #5 on: May 18, 2008, 04:27:16 PM »
These are the ones Im not quite sure on:

"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx chattime"
"ulx welcomemessage"
"ulx playsound"                              (play sound of some sort?)
"ulx hp"
"ulx armor"
"ulx ghost"                                    (sounds like Cloak)
"ulx unghost"
"ulx exec"
"ulx rslotsmode"                             (I know these mean reserved slots, but how do I use this command in console?)
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"                                      (Like votemap?)
"ulx mingekick"                              (auto-kick someone pratting around?)
"ulx vote"                                     (vote for something?)



Sorry there's quite a few....I probably sounds stupid :/


But id be greatful if someone could explain these to me and how I would used them :)


thanks











Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Editting Admin Priviliages...
« Reply #6 on: May 18, 2008, 04:38:58 PM »
In your game console, please type "ulx help" and then read the display.
99% of your questions should be answered there.

As for the other 1%, see server.ini

(If you have trouble finding it, please READ YOUR ULX_README.TXT, which makes direct reference to both of the above)
"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: Editting Admin Priviliages...
« Reply #7 on: May 18, 2008, 04:54:15 PM »
In your game console, please type "ulx help" and then read the display.
99% of your questions should be answered there.

As for the other 1%, see server.ini

(If you have trouble finding it, please READ YOUR ULX_README.TXT, which makes direct reference to both of the above)


Jam he's wondering about permissions not what the commands do. :)

All the ones that look like commands are the permission to use the command. Look at help to know what the commands do. If it's not a command look in server.ini

Don't worry about or use the ulib_ stuff
Spawn echo is who will see the model spawns in their console ("Player blah spawned blah").

That answers your whole list as far as I can see.
Experiencing God's grace one day at a time.

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Editting Admin Priviliages...
« Reply #8 on: May 18, 2008, 05:13:40 PM »
Thanks a lot guys :)

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Editting Admin Priviliages...
« Reply #9 on: May 18, 2008, 05:33:53 PM »
floating around here somewhere is some module I wrote for someone a while back that is a seperate command that is like ban... but wont allow you to do perma. Let me see if I can find it.

found it!

Code: [Select]
function ulx.cc_ban2( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

local target, err = ULib.getUser( argv[ 1 ], _, ply )
if not target then
ULib.tsay( ply, err, true )
return
end

local bantime = tonumber( argv[ 2 ] ) or 0

if bantime == 0 then
ULib.tsay( ply, "This ban is not allowed to ban perminently", true )
return
end

local dummy, dummy, reason = args:find( "^\"*" .. ULib.makePatternSafe( argv[ 1 ] ) .. "\"*%s+" .. ULib.makePatternSafe( argv[ 2 ] ) .. "%s+(.*)$" )
reason = reason or "" -- Make sure it has a value

local time = "for " .. bantime .. " minute(s)"
if reason ~= "" then reason = "(" .. reason .. ")" end
ulx.logUserAct( ply, target, "#A banned #T " .. time .. " " .. reason )

ULib.kickban( target, bantime, reason, ply )
end
ulx.concommand( "ban2", ulx.cc_ban2, "<user> [<time>] [<reason>] - Bans a user for x minutes, Must be less than 4320 minutes(3 Days).", ULib.ACCESS_ADMIN, "!ban2", _, ulx.ID_PLAYER_HELP )

This is JUST like ulx ban.. excapet that it will not allow the use of 0 for the time.

ulx ban2 <name> <time> <Reason>
!ban2 <name> <time> <reason>
« Last Edit: May 18, 2008, 05:39:19 PM by MrPresident »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Editting Admin Priviliages...
« Reply #10 on: May 18, 2008, 05:38:14 PM »
Mr. Pres, you've done so many little additions to your server, you should find all the stuff floating around these parts and make a 'pack' release here. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Editting Admin Priviliages...
« Reply #11 on: May 19, 2008, 04:44:41 PM »
Only problem with that is that most of the addons are catered specifically to my groups/users layout and they wouldn't work out-of-box with most people. That is why I (instead) wait for people to request them and then do the necissary changes and throw code at them~ =)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Editting Admin Priviliages...
« Reply #12 on: May 19, 2008, 05:53:07 PM »
Only problem with that is that most of the addons are catered specifically to my groups/users layout and they wouldn't work out-of-box with most people. That is why I (instead) wait for people to request them and then do the necissary changes and throw code at them~ =)
Yeah, I know, but at least throw out a generic admin can tool, admin weapon spawn (which I KNOW you aren't the only one to have done code here), this 'temp' ban, and, darn, I forget the other two or three I've seen you discuss.

No worries, I know that time thing is hard to find when you've got other more important (or fun, in case of your bigger projects I've seen at your forums) going on. :D
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Editting Admin Priviliages...
« Reply #13 on: June 02, 2008, 03:02:53 PM »
Good god! You are a genius  :o

so where would i paste this coding?