Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: MrPresident on January 14, 2009, 05:22:49 AM

Title: Temporarily add someone to a group
Post by: MrPresident 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.
Title: Re: Temporarily add someone to a group
Post by: JamminR 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.
Title: Re: Temporarily add someone to a group
Post by: Megiddo on January 14, 2009, 02:38:20 PM
Sweet, good job. :)
Title: Re: Temporarily add someone to a group
Post by: bph192 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
Title: Re: Temporarily add someone to a group
Post by: Dv2236 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
Title: Re: Temporarily add someone to a group
Post by: JamminR 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>
Title: Re: Temporarily add someone to a group
Post by: wilkisam 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.
Title: Re: Temporarily add someone to a group
Post by: bph192 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
Title: Administrator Problem :\ Recommend
Post by: ETTTETT on February 19, 2009, 11:45:21 AM
Well i get it work.

I tried allways put ulx_tempadduser it is ulx tempadduser
Title: Re: Temporarily add someone to a group
Post by: MrPresident on February 19, 2009, 05:57:34 PM
ulx tempadduser

there is no _
Title: Re: Temporarily add someone to a group
Post by: bph192 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
Title: Re: Temporarily add someone to a group
Post by: JamminR 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.
Title: Re: Temporarily add someone to a group
Post by: delagious 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>
Title: Re: Temporarily add someone to a group
Post by: MrPresident 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