Author Topic: Temporarily add someone to a group  (Read 13126 times)

0 Members and 1 Guest are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Temporarily add someone to a group
« on: January 14, 2009, 05:22:49 AM »
This addon is unreasonably simple...

All it does is adds a player to a user group.. just like ulx adduser does.. however it does not save said player to the user.txt file. This means that when the server session ends, they will revert back to whatever rank they held before.

to use it, simply type
Code: [Select]
ulx tempadduser <user> <group>


Even if they log out.. unless the server has changed maps or restarted they will keep the temp group. However when the server restarts or starts a new map they will not have the temp group anymore and will be whatever they were before.



NOTE: In the request for this addon the person requested a timed group. I know how to make this, but it would require more time. I MIGHT do it later. for now, or until someone else decides to take up this task, this is the best substitute.

must be logged in to view attachments.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Temporarily add someone to a group
« Reply #1 on: January 14, 2009, 02:03:49 PM »
Excellent work Mr.Pres.
I'd considered adding/modding our adduser to do the same and just never did it.
As always, glad to see you contributing.
"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: Temporarily add someone to a group
« Reply #2 on: January 14, 2009, 02:38:20 PM »
Sweet, good job. :)
Experiencing God's grace one day at a time.

Offline bph192

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • World Of Nukes
Re: Temporarily add someone to a group
« Reply #3 on: February 08, 2009, 10:18:04 AM »
could you posibly make it can save and keep the user in that group to a set date
somthing like.

ulx dateadduser <user> <group> <date>

ulx dateadduser raptor admin 10/08/2009

and thay would stay in that group untill the date has passed

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: Temporarily add someone to a group
« Reply #4 on: February 08, 2009, 01:30:42 PM »
i think time (hr/min) would just be better, if you want them to be temp group till that day all u need is some math skills and add them for that many hrs/min

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Temporarily add someone to a group
« Reply #5 on: February 08, 2009, 02:34:50 PM »
could you posibly make it can save and keep the user in that group to a set date
<clip>

bph, he plans to. He just didn't have time to do it yet.

<clip>
NOTE: In the request for this addon the person requested a timed group. I know how to make this, but it would require more time. I MIGHT do it later. for now, or until someone else decides to take up this task, this is the best substitute.
<clip>
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline wilkisam

  • Newbie
  • *
  • Posts: 30
  • Karma: 0
Re: Temporarily add someone to a group
« Reply #6 on: February 15, 2009, 01:59:56 PM »
This works very well im hoping for a saved version and a timed version to come out and that will go straight onto my server.

Offline bph192

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • World Of Nukes
Re: Temporarily add someone to a group
« Reply #7 on: February 19, 2009, 08:55:29 AM »
same this will have a very good use for me

1 - timed

change users groups for forwars r.g. blue/red that will reset when server restarts

2 - saved

give admin to people for a month or so and not have to go back in the txt file to change it back after the time is over

Offline ETTTETT

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Administrator Problem :\ Recommend
« Reply #8 on: February 19, 2009, 11:45:21 AM »
Well i get it work.

I tried allways put ulx_tempadduser it is ulx tempadduser
« Last Edit: February 19, 2009, 12:02:11 PM by ETTTETT »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Temporarily add someone to a group
« Reply #9 on: February 19, 2009, 05:57:34 PM »
ulx tempadduser

there is no _

Offline bph192

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • World Of Nukes
Re: Temporarily add someone to a group
« Reply #10 on: June 11, 2009, 11:31:10 AM »
any news on the date feature if there is going to be one post seems to be inactive and i been afk alot so i dunno if this post died or anything

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Temporarily add someone to a group
« Reply #11 on: June 11, 2009, 06:34:00 PM »
bph, MrPresident is in the military. He may not be able to update it for a few more years.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline delagious

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: Temporarily add someone to a group
« Reply #12 on: January 11, 2013, 05:58:58 PM »
Ok so I've been looking around and can't find a solution to temporarily adding a user to a group.
Every topic I checked links me here and tells me to reply here so here you go.

It would be really awesome if this could be updated to work for the latest ULX.
I need a way to place my admins on probation for a certain amount of time for minor abuse.
This seems to be my solution minus it not working yet.

Code: [Select]
ulx tempadduser <user> <group> <time> would be very useful for me and it seems many others.
Also if it could return the user in question back to their original group after said time that would be great.
ie.
Code: [Select]
ulx tempadduser <user> <group> <time> <return: y/n>

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Temporarily add someone to a group
« Reply #13 on: January 12, 2013, 02:13:31 AM »
I completely forgot all about this!

Give me a little time and I will have this done.. (yes, with time support)





**UPDATE**
http://forums.ulyssesmod.net/index.php/topic,5953.0.html
« Last Edit: January 12, 2013, 04:23:58 AM by MrPresident »